public void ExecuteFundInfoData(object para)
        {
            RestTodayFundsModel pm = para as RestTodayFundsModel;

            if (pm != null)
            {
                if (pm.errcode == 0)
                {
                    if (pm.content != null)
                    {
                        TradeInfoHelper.FundsDataModel = pm.content;
                        FundsViewModel.GetInstance().HandleViewModelData(pm.content);
                        if (DescriptViewModel.Instance().Funds.Count > 0)
                        {
                            DescriptViewModel.Instance().Funds[0].AbleFund        = pm.content.able_fund;
                            DescriptViewModel.Instance().Funds[0].CloseProfitLoss = pm.content.close_profit_loss;
                            DescriptViewModel.Instance().Funds[0].CurrentEquity   = pm.content.current_equity;
                            DescriptViewModel.Instance().Funds[0].Fee             = pm.content.fee;
                            DescriptViewModel.Instance().Funds[0].FloatProfitLoss = pm.content.float_profit_loss;
                            DescriptViewModel.Instance().Funds[0].InferiorFund    = pm.content.inferior_fund;
                            DescriptViewModel.Instance().Funds[0].InMoney         = pm.content.in_money;
                            DescriptViewModel.Instance().Funds[0].OutMoney        = pm.content.out_money;
                            DescriptViewModel.Instance().Funds[0].PriorityFund    = pm.content.priority_fund;
                            DescriptViewModel.Instance().Funds[0].RiskLevels      = pm.content.risk_levels;
                            DescriptViewModel.Instance().Funds[0].UseMargin       = pm.content.use_margin;
                            DescriptViewModel.Instance().Funds[0].YesterEquity    = pm.content.yester_equity;
                        }
                    }
                }
            }
        }
 public static DescriptViewModel Instance()
 {
     if (_DescriptViewModel == null)
     {
         _DescriptViewModel = new DescriptViewModel();
     }
     return(_DescriptViewModel);
 }
 public void ExecuteDelegationData(object para)
 {
     try
     {
         RtDescriptModel rdm = para as RtDescriptModel;
         DescriptViewModel.Instance().Connet = rdm.descript_text;
     }
     catch (Exception ex)
     {
         LogHelper.Info(ex.ToString());
     }
 }
        public void ExecuteRevcFunds(object para)
        {
            RestTodayFundsModel pm = para as RestTodayFundsModel;

            if (pm != null)
            {
                var loginvm = TradeLoginViewModel.GetInstance(null);
                if (!loginvm.LoginBtnIsEnabled)
                {
                    loginvm.LoginStatus = "正在查询资金信息...";
                }
                if (pm.errcode == 0)
                {
                    if (pm.content != null)
                    {
                        TradeInfoHelper.FundsDataModel = pm.content;
                        TradeLoginViewModel.GetInstance(null).HandleFunds();
                        DescriptViewModel.Instance().Funds.Clear();
                        DescriptViewModel.Instance().Funds.Add(new RestTodayFundsViewModel(pm.content));
                    }
                }
            }
        }