Пример #1
0
        protected bool mcc_chgRecSetting(ExecutedRoutedEventArgs e)
        {
            List <RecSettingData> infoList = dataList.OfType <IRecSetttingData>().RecSettingList();

            if (e.Command == EpgCmds.ChgOnPreset)
            {
                return(MenuUtil.ChangeOnPreset(infoList, (uint)CmdExeUtil.ReadIdData(e, 0, 0xFE)));
            }
            else if (e.Command == EpgCmds.ChgRecmode)
            {
                return(MenuUtil.ChangeRecmode(infoList, (byte)CmdExeUtil.ReadIdData(e, 0, 5)));
            }
            else if (e.Command == EpgCmds.ChgPriority)
            {
                return(MenuUtil.ChangePriority(infoList, (byte)CmdExeUtil.ReadIdData(e, 1, 5)));
            }
            else if (e.Command == EpgCmds.ChgRelay)
            {
                return(MenuUtil.ChangeRelay(infoList, (byte)CmdExeUtil.ReadIdData(e, 0, 1)));
            }
            else if (e.Command == EpgCmds.ChgPittari)
            {
                return(MenuUtil.ChangePittari(infoList, (byte)CmdExeUtil.ReadIdData(e, 0, 1)));
            }
            else if (e.Command == EpgCmds.ChgTuner)
            {
                return(MenuUtil.ChangeTuner(infoList, (uint)CmdExeUtil.ReadIdData(e, 0, int.MaxValue - 1)));
            }
            else if (e.Command == EpgCmds.ChgMarginStart)
            {
                return(MenuUtil.ChangeMargin(infoList, CmdExeUtil.ReadIdData(e), true));
            }
            else if (e.Command == EpgCmds.ChgMarginStartValue)
            {
                return(MenuUtil.ChangeMarginValue(infoList, true, this.Owner));
            }
            else if (e.Command == EpgCmds.ChgMarginEnd)
            {
                return(MenuUtil.ChangeMargin(infoList, CmdExeUtil.ReadIdData(e), false));
            }
            else if (e.Command == EpgCmds.ChgMarginEndValue)
            {
                return(MenuUtil.ChangeMarginValue(infoList, false, this.Owner));
            }
            return(false);
        }