private void ProcessDate()
        {
            IProcessDateTime process = new ProcessDate(_data);

            _dateStatus = process.FindDateTimeColumn(out _dateIndex);

            //overwrite date col name
            _data.Columns[_dateIndex].ColumnName = Settings.Default.TimeStampName;
            _columns[_dateIndex].ColName         = Settings.Default.TimeStampName;

            IDateTimeSequence sequence = new DateTimeSequence(_data, _dateIndex);

            if (_dateStatus == DataSetDateStatus.Found)
            {
                List <DateTime> datesequence = sequence.GetExistingSequence();
                DataSetStart = datesequence.Min();
                DataSetEnd   = datesequence.Max();
                //MessageBox.Show(DataSetStart + " " + DataSetEnd );
                try
                {
                    DataPrep prep = new DataPrep(_data, _dateIndex);
                    prep.FillMissingdates(sequence.GetMissingTimeStamps());
                }
                catch (OutOfMemoryException)
                {
                    MessageBox.Show("ran out of memory processing dates. the file is too large.");
                }
            }
        }
Beispiel #2
0
        private void ProcessDate()
        {
            IProcessDateTime process = new ProcessDate(_data);

            _dateStatus = process.FindDateTimeColumn(out _dateIndex);

            //overwrite date col name
            _data.Columns[_dateIndex].ColumnName = Settings.Default.TimeStampName;
            _columns[_dateIndex].ColName         = Settings.Default.TimeStampName;
            IDateTimeSequence sequence = new DateTimeSequence(_data, _dateIndex);

            if (_dateStatus == DataSetDateStatus.Found)
            {
                List <DateTime> datesequence = sequence.GetExistingSequence();
                DataSetStart = datesequence.Min();
                DataSetEnd   = datesequence.Max();
            }
        }