private void mcSelect_DateChanged(object sender, DateRangeEventArgs e) { if (_IsInitializingCalendar == false) { ListViewItemHelper.LoadCalendarInstances(_CurrentService, _SelectedFolder, ref lvItems, e.Start, e.End); } }
private void CalendarMonthView_Load(object sender, EventArgs e) { mcSelect.ShowToday = true; mcSelect.ShowTodayCircle = true; mcSelect.MaxSelectionCount = 1; // Set the default displayed meetings to todays. DateTime oDateTime = new DateTime(); oDateTime = DateTime.Now; DateTime oDateTimeStart = TimeHelper.StartTimeOfDate(oDateTime); DateTime oDateTimeEnd = TimeHelper.EndTimeOfDate(oDateTime); _IsInitializingCalendar = true; mcSelect.SelectionStart = oDateTimeStart; mcSelect.SelectionEnd = oDateTimeEnd; _IsInitializingCalendar = false; ListViewItemHelper.LoadCalendarInstances(_CurrentService, _SelectedFolder, ref lvItems, mcSelect.SelectionStart, mcSelect.SelectionEnd); }