Exemplo n.º 1
0
 private void sureBtn_Click(object sender, EventArgs e)
 {
     if (tacticalCheck.Checked && !maintenanceCheck.Checked)
     {
         this.Hide();
         var frm = new TacticalScenarios();
         frm.Show();
     }
     else if (!tacticalCheck.Checked && maintenanceCheck.Checked)
     {
         this.Hide();
         var frm = new MaintenanceControlSystem();
         frm.Show();
     }
     else if (!tacticalCheck.Checked && !maintenanceCheck.Checked)
     {
         {
             this.checkMsg.Text    = "Please check . . . ";
             this.checkMsg.Visible = true;
         }
     }
     else
     {
         this.checkMsg.Text    = "check ONLY ONE. . . ";
         this.checkMsg.Visible = true;
     }
 }
        // Restart (New Scenario)
        private void button1_Click(object sender, EventArgs e)
        {
            var frmMCS = new MaintenanceControlSystem();

            this.Hide();
            frmMCS.Show();
        }
 public SystemAdjustments(MainScen mS)
 {
     InitializeComponent();
     adjTimer.Start();
     adjTimer.Enabled = true;
     mainScen         = mS;
     frmMCS           = new MaintenanceControlSystem(mainScen);
     c          = 0;
     adjControl = new Label();
     rAP        = rand1.Next(0, 5);  //random adjustment problem
 }
 public ConfigurationManagement(MainScen mS)
 {
     InitializeComponent();
     mainScen = mS;
     frmMCS   = new MaintenanceControlSystem(mainScen);
 }