I'm trying to open a form from another form. This results in an ArgumentOutOfRangeException
.
I think the error is here because I added this lists and my program stopped working:
private static List<string> proxies = ps.proxies;
private static int proxyCounter = 1;
private static string currentProxy = proxies[proxyCounter];
public int TokenTimes = 0;
the lists go to:
class proScanner
{
public List<string> proxies = new List<string>();
public void ScanProxies()
{
var fileText = File.ReadAllLines(@"settings\proxies.txt");
foreach (var s in fileText) proxies.Add(s);
}
}