void SwitchAppMode(eWorkingMode mode) { if (App != null) { App.AddLog(string.Format("Chọn chế độ: {0}", EnumEx.GetEnumDescription(mode))); App.WorkingMode = mode; } }
void SwitchWorkingMode(eWorkingMode mode) { SetSelectView(eConfigView.None); if (this.App != null) { this.App.WorkingMode = mode; ClearSelection(); } }
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; }
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); }