Esempio n. 1
0
 /// <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;
 }
Esempio n. 2
0
 public LoadingViewModel()
 {
     InfoTip = new TipsModel();
     onVerify();
     onLoad();
     onWait();
 }
Esempio n. 3
0
    public void SetTips(TipsModel model)
    {
        if (m_currentEffect == null)
        {
            return;
        }

        m_currentEffect.SetTips(model);
    }
Esempio n. 4
0
    private TipsModel ToModel(DataRow row)
    {
        TipsModel mdl = new TipsModel
        {
            Id      = int.Parse(row["Tips_Id"].ToString()),
            Message = row["Tips_Message"].ToString()
        };

        return(mdl);
    }
Esempio n. 5
0
        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();
        }
Esempio n. 6
0
    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;
    }
Esempio n. 7
0
    public TipsView SetModel(TipsModel model)
    {
        m_model = model;

        m_model.OnUpdated += () =>
        {
            SetTip();
        };

        SetTip();

        return(this);
    }
Esempio n. 8
0
 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;
     }
 }
Esempio n. 9
0
 virtual public void SetTips(TipsModel model)
 {
 }
Esempio n. 10
0
 override public void SetTips(TipsModel model)
 {
     m_tipsModel = model;
     TipsView.Attach(m_TipsRoot).SetModel(m_tipsModel);
 }