public void HandleMenu(SCOPE_MENU mi, bool state) { switch (mi) { case SCOPE_MENU.MAX_SCALE: MaxScale(); break; case SCOPE_MENU.MANUAL_SCALE: LockScale = state; break; case SCOPE_MENU.SHOW_VOLTAGE: mShowVoltage = state; break; case SCOPE_MENU.SHOW_SCALE: ShowScale = state; break; case SCOPE_MENU.SHOW_PEAK: ShowMax = state; break; case SCOPE_MENU.SHOW_NEG_PEAK: ShowMin = state; break; case SCOPE_MENU.SHOW_FREQ: ShowFreq = state; break; case SCOPE_MENU.SHOW_FFT: mShowFFT = state; break; case SCOPE_MENU.LOG_SPECTRUM: LogSpectrum = state; break; case SCOPE_MENU.SHOW_RMS: ShowRMS = state; break; case SCOPE_MENU.SHOW_VBE: _setValue(VAL.VBE); break; case SCOPE_MENU.SHOW_VBC: _setValue(VAL.VBC); break; case SCOPE_MENU.SHOW_VCE: _setValue(VAL.VCE); break; } }
public ScopeRadioButton(string text, SCOPE_MENU menu) : base() { AutoSize = true; Text = text; Menu = menu; }
public ScopeCheckBox(string text, SCOPE_MENU menu) : base() { AutoSize = true; Text = text; Menu = menu; }