Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
 public static GiveDetailViewModel CreateInstance()
 {
     if (_instance == null)
     {
         _instance = new GiveDetailViewModel();
     }
     _instance.Init();
     return(_instance);
 }