コード例 #1
0
 /// <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);
         }
     }
 }
コード例 #2
0
 /// <summary>
 /// Opens the create server dialog
 /// </summary>
 private void CreateServer()
 {
     using (CreateServerForm form = new CreateServerForm())
     {
         if (form.ShowDialog() == DialogResult.OK)
         {
             LoadServers();
         }
     }
 }