/// <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; }
public static SendDetailViewModel CreateInstance() { if (_instance == null) { _instance = new SendDetailViewModel(); } _instance.Init(); return(_instance); }