/// <summary> /// 清理战斗 /// </summary> public void ClearFight() { CurLandlordUid = string.Empty; if (curWinerIds != null) { curWinerIds.Clear(); } if (callLandlordsList != null) { callLandlordsList.Clear(); } if (doubelList != null) { doubelList.Clear(); } popCardCountDic = null; if (resultModel != null) { resultModel.Clear(); resultModel = null; } isTuoGuan = false; //清理桌面缓存 DeskCardsCache.Instance.Clear(); TipsModel.Clear(); TimeOutAudioPopCount = 0; }
public LoadingViewModel() { InfoTip = new TipsModel(); onVerify(); onLoad(); onWait(); }
public void SetTips(TipsModel model) { if (m_currentEffect == null) { return; } m_currentEffect.SetTips(model); }
private TipsModel ToModel(DataRow row) { TipsModel mdl = new TipsModel { Id = int.Parse(row["Tips_Id"].ToString()), Message = row["Tips_Message"].ToString() }; return(mdl); }
public TipsViewModel() { InfoTip = new TipsModel(); GoToNext = new Command(async() => await OnReadyGoToNext()); GoToDisplayTips = new Command(async() => await OnReadyGoToDisplayTips()); GoToMainPage = new Command(async() => await OnReadyGoToMainPage()); GoToYouTube = new Command(async() => await OnReadyGoToYouTube()); var urlStore = Device.OnPlatform("https://www.youtube.com/watch?v=SNrAqVZ6BxE", "https://www.youtube.com/watch?v=SNrAqVZ6BxE", "https://www.youtube.com/watch?v=SNrAqVZ6BxE"); onLoad(); }
public override void Init() { tipsPanel = new TipsPanel(); tipsModel = new TipsModel(); tipsPanel.m_prefab = prefabPanel; SetModelAndView(tipsPanel, tipsModel); tipsPanel.m_confirm = OnConfirmClick; tipsPanel.m_cancel = OnCancelClick; }
public TipsView SetModel(TipsModel model) { m_model = model; m_model.OnUpdated += () => { SetTip(); }; SetTip(); return(this); }
private async void onVerify() //metodo { try { var a = DependencyService.Get <IFile>().Exist("InfoTip"); if (DependencyService.Get <IFile>().Exist("InfoTip")) { var jsonUser = DependencyService.Get <IFile>().LoadText("InfoTip"); InfoTip = JsonConvert.DeserializeObject <TipsModel>(jsonUser); onLoad(); } else { onLoad(); } } catch (Exception ex) { throw; } }
virtual public void SetTips(TipsModel model) { }
override public void SetTips(TipsModel model) { m_tipsModel = model; TipsView.Attach(m_TipsRoot).SetModel(m_tipsModel); }