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

        m_currentEffect.SetTips(model);
    }
示例#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);
    }
示例#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();
        }
示例#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;
    }
示例#7
0
    public TipsView SetModel(TipsModel model)
    {
        m_model = model;

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

        SetTip();

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