private void ProxySaveButton_Click(object sender, EventArgs e) { int currentProxyCount = Convert.ToInt32(ProxyAmountLabel.Text); for (int i = currentProxyCount; i < ProxyTextBox.Lines.Length; i++) { if (ProxyTextBox.Lines[i] != "") { Proxy proxy = new Proxy(); string[] proxyInfoArray = ProxyTextBox.Lines[i].Split(':'); proxy.Ip = proxyInfoArray[0]; proxy.Port = proxyInfoArray[1]; proxy.UserId = proxyInfoArray[2]; proxy.Password = proxyInfoArray[3]; _NikeCore.SaveProxy(proxy); } } ProxyTextBox.Refresh(); ProxyAmountLabel.Text = ProxyTextBox.Lines.Length.ToString(); }
private void SelectAllProxyToolStripMenuItem_Click(object sender, EventArgs e) { ProxyTextBox.SelectAll(); }