Exemple #1
0
 public void CloseForm()
 {
     if (controlForm == null || !controlForm.Visible)
     {
         return;
     }
     controlForm.Hide();
     controlForm.Dispose();
     controlForm = null;
 }
Exemple #2
0
        public void ShowForm()
        {
            if (controlForm != null && controlForm.Visible)
            {
                controlForm.WindowState = System.Windows.Forms.FormWindowState.Normal;
                controlForm.Focus();
                return;
            }

            controlForm = new FanControlForm(sensors, this, settings);
            controlForm.Show();
        }