private void ScheduleViewOnAppointmentEditing(object sender, AppointmentEditingEventArgs e) { AppointmentCheck selectedCheck = (AppointmentCheck)e.Appointment; Check check = _checkRepository.GetCheckById(selectedCheck.Id); ViewChecks vc = new ViewChecks(check, _checkRepository); vc.ShowDialog(); if (vc.IsCancelled == false) { LoadChecks(ScheduleView.CurrentDate); HighlightNextAndPreviousMonth(ScheduleView.CurrentDate); SetRangeOfWeeks(); ComputeChecksAmountsPerWeek(); } }