Exemplo n.º 1
0
 private void buttonOperationalStep_Click(object sender, EventArgs e)
 {
     try {
         StepController.Step();
     }
     catch (Exception ex) {
         MessageBox.Show("Error stepping:\n" + ex.Message);
     }
 }
Exemplo n.º 2
0
        private void menuRefreshStepMode_Click(object sender, EventArgs e)
        {
            try {
                StepController.RefreshStepMode();
            }
            catch (Exception ex) {
                MessageBox.Show(this, "Could not refresh step mode:\n" + ex.Message, "OperationalUI");
                return;
            }

            UpdateStepModeState();
        }
Exemplo n.º 3
0
        private void buttonStepMode_ButtonClick(object sender, EventArgs e)
        {
            // refresh the step mode
            try {
                StepController.RefreshStepMode();
            }
            catch (Exception ex) {
                MessageBox.Show(this, "Could not refresh step mode:\n" + ex.Message, "OperationalUI");
                return;
            }

            try {
                // swap the shits
                StepController.StepMode = !StepController.StepMode;
            }
            catch (Exception ex) {
                MessageBox.Show(this, "Could not set step mode:\n" + ex.Message, "OperationalUI");
            }

            UpdateStepModeState();
        }