private void BindAppointmentsGrid() { AgendaViewDataGenerator.SelectedInterval = SelectedInterval; InitializeGridControlAppointments(); GenerateAgndaViewCaption(); GridControlAppointments.ExpandAll(); }
private void GoToPreviousMonth() { SelectedInterval = new TimeInterval(SelectedInterval.Start.AddMonths(-1), SelectedInterval.Start); AgendaViewDataGenerator.SelectedInterval = SelectedInterval; InitializeGridControlAppointments(); GenerateAgndaViewCaption(); GridControlAppointments.ExpandAll(); }
private void GoToNextMonth() { SelectedInterval = new TimeInterval(SelectedInterval.End, SelectedInterval.End.AddMonths(1)); AgendaViewDataGenerator.SelectedInterval = SelectedInterval; InitializeGridControlAppointments(); GenerateAgndaViewCaption(); GridControlAppointments.ExpandAll(); }
private void GoToSpecificDate(DateTime date) { DateTime intervalStart = new DateTime(date.Year, date.Month, 1); TimeInterval interval = new TimeInterval(intervalStart, intervalStart.AddMonths(1)); SelectedInterval = interval; AgendaViewDataGenerator.SelectedInterval = SelectedInterval; InitializeGridControlAppointments(); GenerateAgndaViewCaption(); GridControlAppointments.ExpandAll(); }
void InitializeGridControlAppointments() { GridControlAppointments.DataSource = AgendaViewDataGenerator.GenerateAgendaAppointmentCollection(OwnerScheduler.Storage, SelectedResourceId); GridControlAppointments.DataBind(); }