public Calibration(MainForm form, CalibrationMain cb)
 {
     mainForm = form;
     cabMain  = cb;
     InitializeComponent();
     this.Icon = Properties.Resources.appicon;
 }
示例#2
0
 public CalibrationManual(MainForm form, CalibrationMain mfc)
 {
     InitializeComponent();
     InNumeric();
     mainForm  = form;
     cbMain    = mfc;
     this.Icon = Properties.Resources.appicon;
 }
 private void Form1_Load(object sender, EventArgs e)
 {
     if (mustCalibrate)
     {
         MessageBox.Show("You must calibrate a program");
         CalibrationMain cbMaain = new CalibrationMain(this, true);
         cbMaain.ShowDialog();
     }
 }
        private void btn_calibrate_Click(object sender, EventArgs e)
        {
            bool isOpen = false;

            foreach (var item in Application.OpenForms)
            {
                if (item is CalibrationMain)
                {
                    isOpen = true;
                }
            }

            if (!isOpen)
            {
                CalibrationMain calibration = new CalibrationMain(this);
                calibration.Show();
            }
        }