예제 #1
0
        /// <summary>
        /// 初始化数据
        /// </summary>
        public override void Initialize()
        {
            if (!_result)
            {
                return;
            }
            _result     = false;
            IsBuyDetail = true;
            CommunicateManager.Invoke <IBusinessmanService>(p =>
            {
                var tuple = p.GetSystemInfo();
                if (tuple == null)
                {
                    return;
                }
                BuySmsPrice = tuple.Item3;
                RemainCount = tuple.Item1;
                SendCount   = tuple.Item2;
            }, UIManager.ShowErr);

            SendDetailViewModel = SendDetailViewModel.CreateInstance();
            BuyDetailViewModel  = BuyDetailViewModel.CreateInstance();
            GiveDetailViewModel = GiveDetailViewModel.CreateInstance();
            _result             = true;
        }
예제 #2
0
 public static SendDetailViewModel CreateInstance()
 {
     if (_instance == null)
     {
         _instance = new SendDetailViewModel();
     }
     _instance.Init();
     return(_instance);
 }