private void ProcessTableWeekly() { RecMktDay day = (RecMktDay)null; _result = new MsMktList(); int num1 = -1; double num2 = 0.0; if (_dlyList.Reset()) { do { RecMktDay get = _dlyList.Get; RecDay dtd = get.dtd; DateTime dateTime = DateTime.FromOADate((double)get.dtd.d); if (day == null) { day = new RecMktDay(dtd); day.dtd.v = 0.0f; day.dtd.i = 0.0f; num1 = -1; num2 = (double)get.dtd.d; } if (dateTime.DayOfWeek <= (DayOfWeek)num1 || (double)get.dtd.d - num2 > 6.0) { _result.Add(ref day); day = new RecMktDay(dtd); day.dtd.v = 0.0f; day.dtd.i = 0.0f; } if ((double)dtd.h > (double)day.dtd.h) { day.dtd.h = dtd.h; } if ((double)dtd.l < (double)day.dtd.l) { day.dtd.l = dtd.l; } day.dtd.c = dtd.c; day.dtd.d = dtd.d; day.dtd.v += dtd.v; day.dtd.i = dtd.i; num1 = (int)dateTime.DayOfWeek; num2 = (double)dtd.d; } while (_dlyList.Next()); } if (day == null) { return; } _result.Add(ref day); }
public bool Next() { return(_result.Next()); }