Ejemplo n.º 1
0
 private void btnSettings_Click(object sender, EventArgs e)
 {
     if (gSettings == null)
     {
         gSettings = new GUI_Settings();
         gSettings.Show();
         gSettings.FormClosed += (S, E) =>
         {
             gSettings.Dispose();
             gSettings = null;
         };
     }
     else
     {
         gSettings.BringToFront();
     }
 }
Ejemplo n.º 2
0
 private void btnSettings_Click(object sender, EventArgs e)
 {
     if (gSettings == null)
     {
         gSettings = new GUI_Settings();
         gSettings.Show();
         gSettings.FormClosed += (S, E) =>
         {
             gSettings.Dispose();
             gSettings = null;
         };
     }
     else
         gSettings.BringToFront();
 }