private void loadToolStrip_Click(object sender, EventArgs e)
 {
     using (FormCommPicker form = new FormCommPicker(this))
     {
         if (form.ShowDialog(this) == DialogResult.OK)
         {
             Application.Exit();
         }
     }
 }
Beispiel #2
0
 private void toolStripMenuItem2_Click(object sender, EventArgs e)
 {
     //Load new settings
     using (var form = new FormCommPicker(this))
     {
         form.ShowDialog(this);
         if (form.DialogResult == DialogResult.OK)
         {
             Application.Restart();
             Environment.Exit(0);
         }
     }
 }