Example #1
0
        /// <summary>
        /// Get the list of SessionID's that are between the start and end
        /// dates and put them in the drop-down list control.
        /// </summary>
        private void LoadSessionInfo()
        {
            if (_sessionInfo != null)
            {
                _sessionInfo.Clear();
            }

            using (TriageDbContext tdc = new TriageDbContext(tbDbServer.Text, tbDbName.Text))
            {
                _sessionInfo = tdc.GetSessionInfoByDateRange(dtpStartDate.Value.ToUniversalTime(), dtpEndDate.Value.ToUniversalTime());
            }

            cbSessionId.DataSource = _sessionInfo.Keys.ToList();
        }