示例#1
0
        public void SM_UIElementVisibilityUpdater(UIElementStateVariations uev)
        {
            switch (uev)
            {
            case UIElementStateVariations.PsuBeforeClickOn:

                SM_UIElementUpdaterHelper(true, false, false, false, false, false, false, false, false,
                                          false, false, false, false, false, false, false, false, false, false, false, false, false, false, false);
                break;

            case UIElementStateVariations.PsuAfterClickOn:
                SM_UIElementUpdaterHelper(false, true, true, false, true, true, false, true, false,
                                          false, false, true, false, false, false, false, false, false, false, true, false, false, false, false);
                break;

            case UIElementStateVariations.ResetAfterClickOn:
                SM_UIElementUpdaterHelper(false, true, false, true, true, true, false, true, false,
                                          false, false, true, false, false, false, false, false, false, false, true, false, false, false, false);
                break;

            case UIElementStateVariations.ResetAfterClickOff:
                SM_UIElementUpdaterHelper(false, true, true, false, true, true, false, true, false,
                                          false, false, true, false, false, false, false, false, false, false, true, false, false, false, false);
                break;

            case UIElementStateVariations.SbChannelSelected:
                SM_UIElementUpdaterHelper(false, true, true, false, true, true, true, true, false,
                                          false, false, true, false, false, false, false, false, false, false, true, false, false, false, false);
                break;

            case UIElementStateVariations.SmCardSelected:
                SM_UIElementUpdaterHelper(false, true, true, false, true, true, false, true, false,
                                          false, false, true, false, false, false, false, false, false, false, true, false, false, false, false);
                break;

            case UIElementStateVariations.SmFunctionSelected:
                SM_UIElementUpdaterHelper(false, true, true, false, true, false, false, true, false,
                                          false, false, true, false, false, false, false, false, false, false, true, false, false, false, false);
                break;

            case UIElementStateVariations.SmFreqAmpChannelsSelected:
                SM_UIElementUpdaterHelper(false, true, true, false, true, false, false, true, false,
                                          false, false, true, false, false, false, false, false, false, false, true, false, false, false, false);
                break;

            case UIElementStateVariations.AnalChannelsSelectedAfterOn:
                SM_UIElementUpdaterHelper(false, true, true, false, true, false, false, true, false,
                                          false, false, true, false, false, false, false, false, false, false, true, false, false, false, false);
                break;

            case UIElementStateVariations.AnalChannelsSelectedAfterOff:
                SM_UIElementUpdaterHelper(false, true, true, false, true, false, false, true, false,
                                          false, false, true, false, false, false, false, false, false, false, true, false, false, false, false);
                break;

            default:
                break;
            }
        }
示例#2
0
        public void UIElementVisibilityUpdater(UIElementStateVariations uev)
        {
            switch (uev)
            {
            case UIElementStateVariations.ConnectBeforeClick:
                //--------------------(Con,  Disc,  M_On,  M_Off, Run,   C&M,   Report, SM
                UIElementUpdaterHelper(true, false, false, false, false, false, false, false);
                break;

            case UIElementStateVariations.ConnectAfterClick:
                UIElementUpdaterHelper(false, true, false, false, false, true, false, true);
                break;

            case UIElementStateVariations.DisConnectBase:
                UIElementUpdaterHelper(false, true, false, false, false, false, false, true);
                break;

            case UIElementStateVariations.DisConnectClick:
                UIElementUpdaterHelper(true, false, false, false, false, false, false, false);
                break;

            case UIElementStateVariations.CardAndMeasureSelected:
                UIElementUpdaterHelper(false, true, true, false, false, true, true, false);
                break;

            case UIElementStateVariations.MeasureOffClick:
                UIElementUpdaterHelper(false, true, true, false, false, true, true, false);
                break;

            case UIElementStateVariations.MeasureOnAfterClick:
                UIElementUpdaterHelper(false, true, false, true, true, false, false, false);
                break;

            case UIElementStateVariations.MeasureOnAfterClickVoip:
                UIElementUpdaterHelper(false, true, false, true, false, false, false, false);
                break;

            default:
                break;
            }
        }