예제 #1
0
 public DataBuilder()
 {
     Current    = new DataCurrent();                 // print processor
     TimeSeries = new Collection <DataTimeSeries>(); // timeseries used as controll for other data classes
     OHLC       = new Collection <DataTSOHLC>();     // open high low close
     Volume     = new Collection <DataTSVolume>();   // bid, ask, traded volume
 }
예제 #2
0
        public void AddUnitTestResultsPerDay(AccountDbContext context, Guid unitTestId)
        {
            CheckForNewCurrentDataRow(context);
            var unitTestData = DataCurrent.GetUnitTestData(unitTestId);

            lock (this)
            {
                unitTestData.ResultsCount++;
                DataCurrent.UnitTestsRequests++;
            }
        }
        /// <summary>
        /// ViewModel constructor.
        /// </summary>
        /// <param name="current">data source</param>
        public ViewModelQuotesText(DataCurrent current)
        {
            // init propreties
            DSCurrent = current;
            TextData  = new double[3, 2];
            TextStr   = new ObservableCollection <string>();

            // pre-allocate
            for (int i0 = 0; i0 < TextData.GetLength(0); ++i0)
            {
                TextData[i0, 0] = 0;
                TextData[i0, 1] = 0;
                TextStr.Add("");
            }
        }