private void btnAddProxy_Click(object sender, EventArgs e) { AddProxyForm form = new AddProxyForm(); form.ShowDialog(); if (form.DialogResult == System.Windows.Forms.DialogResult.OK) { this.proxyDataModel.AddProxyList(form.GetData()); } }
private void btnAddProxy_Click(object sender, EventArgs e) { var form = new AddProxyForm(); form.ShowDialog(); if (form.DialogResult == DialogResult.OK) { _proxyDataModel.AddProxyList(form.GetData()); } }