void CDirectoryEntryEdit(object sender, EventArgs e) { var oe = ((ServerEventRow)sender); var c = new FTPConfig {FTP = oe.Server}; if (c.ShowDialog(this)==DialogResult.OK) { Servers[oe.Index] = c.FTP; } c.Dispose(); RenderServerList(); }
private void button1_Click(object sender, EventArgs e) { var f = new FTPConfig { FTP = new configurationServer() }; if (f.ShowDialog(this) == DialogResult.OK) { var l = Servers.ToList(); l.Add(f.FTP); Servers = l.ToArray(); f.Dispose(); RenderServerList(); } }
private void CDirectoryEntryEdit(object sender, EventArgs e) { var oe = ((ServerEventRow)sender); var c = new FTPConfig { FTP = oe.Server }; if (c.ShowDialog(this) == DialogResult.OK) { Servers[oe.Index] = c.FTP; } c.Dispose(); RenderServerList(); }