Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
 public ScopeRadioButton(string text, SCOPE_MENU menu) : base()
 {
     AutoSize = true;
     Text     = text;
     Menu     = menu;
 }
Beispiel #3
0
 public ScopeCheckBox(string text, SCOPE_MENU menu) : base()
 {
     AutoSize = true;
     Text     = text;
     Menu     = menu;
 }