public EachDealHistoryDetailViewModel(EachDealHistoryModel dataModel, FuturesTickViewModel tick)
 {
     _dataModel         = dataModel;
     _tick              = tick;
     EachDealKeepDigits = tick.KeepDigits;
     EachDealColor      = dataModel.lastPrice >= tick.PreClosePrice ? "Red" : "#00ff00";
     EachDealSizeColor  = dataModel.lastPrice <= tick.BidP1 ? "#00ff00" : "Red";
 }
Beispiel #2
0
        //0最新 1上翻 2下翻
        //private int type = 0;
        public EachDealHistoryWindowViewModel(FuturesTickViewModel tick)
        {
            _tick = tick;
            Action EachDealHistoryHandle = EachDealHistoryHandleAction;

            EachDealHistoryHandle.BeginInvoke(null, null);
            QueryIsEnabled    = true;
            PreviousIsEnabled = true;
            NextIsEnabled     = true;
        }