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(); }
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(); }