예제 #1
0
 void SwitchAppMode(eWorkingMode mode)
 {
     if (App != null)
     {
         App.AddLog(string.Format("Chọn chế độ: {0}", EnumEx.GetEnumDescription(mode)));
         App.WorkingMode = mode;
     }
 }
예제 #2
0
        void SwitchWorkingMode(eWorkingMode mode)
        {
            SetSelectView(eConfigView.None);

            if (this.App != null)
            {
                this.App.WorkingMode = mode;
                ClearSelection();
            }
        }
예제 #3
0
        private void LoadConfig()
        {
            var setting = ClientSetting.Instance;

            ReleaseMediaPlayer();
            this.MediaPlayer = new ClientMediaPlayerViewModel(setting.LocalSoundId);
            this.ClientId    = setting.ClientId;
            _workingMode     = (eWorkingMode)setting.CurrentMode;
            this.POId        = setting.POId;
        }
예제 #4
0
        public static UnitPhoneViewModel Create(eWorkingMode mode, UnitPhone item)
        {
            UnitPhoneViewModel up = null;

            switch (mode)
            {
            case eWorkingMode.Alert:
                up = new AlertUnitPhoneViewModel(item);
                break;

            case eWorkingMode.MultiDest:
                up = new UnitPhoneViewModel(item);
                break;

            case eWorkingMode.CCPK_Alert:
                up = new CCPK_ALertUnitPhoneViewModel(item);
                break;

            case eWorkingMode.TSL_Alert:
                up = new TSL_ALertUnitPhoneViewModel(item);
                break;
            }
            return(up);
        }