예제 #1
0
        private void GetDateRange()
        {
            var dateRange = LogFileParser.GetDateRange(ofdFilename.FileNames);

            dtpFrom.Value = dateRange.GetMinDateTime();
            dtpTo.Value   = dateRange.GetMaxDateTime();
        }
예제 #2
0
        public Main()
        {
            InitializeComponent();

            _constraints = new Dictionary <int, Constraint>();
            _fields      = new List <LogFileField>();
            _fileParser  = new LogFileParser();

            _fileParser.FileLineProcessed += FileLineProcessed;

            dtpFrom.Value = DateTime.Today;
            dtpTo.Value   = DateTime.Now;
        }