public static TodayTraderViewModels Instance() { if (_TodayTraderViewModels == null) { _TodayTraderViewModels = new TodayTraderViewModels(); } return(_TodayTraderViewModels); }
public TradePanelViewModel(MainViewModel mainVM) { _mainVM = mainVM; TransactionViewModel = TransactionViewModel.Instance(); TransactionPannel = new TransactionPannelViewModel(); ConditionBill = UCConditionBillViewModel.Instance(); PositionAll = PositionAllViewModel.Instance(); OrderCancel = OrderCancelViewModel.Instance(); TodayTrader = TodayTraderViewModels.Instance(); FundsViewModel = FundsViewModel.GetInstance(); }
public void ClearTradeList() { PositionAllViewModel.Instance().DetPMList.Clear(); PositionAllViewModel.Instance().PMList.Clear(); PositionViewModel.Instance().PMList.Clear(); OrderCancelViewModel.Instance().KCDelegations.Clear(); OrderCancelViewModel.Instance().Delegations.Clear(); UCConditionBillViewModel.Instance().ConditionBillList.Clear(); TodayTraderViewModels.Instance().TodayTraderList.Clear(); }
private void ToDayTrade(bool isClear = true) { //成交明细 ReqPotion rp = new ReqPotion(); rp.cmdcode = RequestCmdCode.ToDayTradeCode; rp.content = new ReqLoginName() { user_id = UserInfoHelper.UserId }; ScoketManager.GetInstance().SendTradeWSInfo(JsonConvert.SerializeObject(rp)); if (isClear) { TodayTraderViewModels.Instance().TodayTraderList.Clear(); } }