private void ReadFromFile(string filename) { proxylistAll.AddRange(ProxyParser.ReadFile(filename)); textInput.Buffer.Text = proxylistAll.ToString(); labelTotal.Text = proxylistAll.Count.ToString(); }
private void ParseInput(object sender, EventArgs args) { proxylistAll.AddRange(ProxyParser.ParseString(textInput.Buffer.Text)); Application.Invoke(delegate { labelTotal.Text = proxylistAll.Count.ToString(); }); }
private async void ParseFreeProxyList(object sender, EventArgs args) { Application.Invoke(delegate { buttonParseFreeProxyList.Sensitive = false; }); proxylistAll.AddRange(await ProxyParser.ParseFreeProxyListAsync()); Application.Invoke(delegate { labelTotal.Text = proxylistAll.Count.ToString(); textInput.Buffer.Text = proxylistAll.ToString(); buttonParseFreeProxyList.Sensitive = true; }); }
private void WriteToFile(string filename) { ProxyParser.WriteFile(filename, ProxyParser.ParseString(textInput.Buffer.Text)); }