/// <summary> /// Opens the create server dialog and removes the old one on success /// </summary> /// <param name="server"></param> private void EditServer(Server server) { using (CreateServerForm form = new CreateServerForm(server)) { if (form.ShowDialog() == DialogResult.OK) { DeleteServer(server); } } }
/// <summary> /// Opens the create server dialog /// </summary> private void CreateServer() { using (CreateServerForm form = new CreateServerForm()) { if (form.ShowDialog() == DialogResult.OK) { LoadServers(); } } }