private void ChangeButton_Click(object sender, RoutedEventArgs e) { Notification newNotification = new Notification(notificationTextBox.Text, GetTimeFromComboBoxes(), (DateTime)startDatePicker.SelectedDate, (DateTime)endDatePicker.SelectedDate, (bool)notificationCheckBox.IsChecked); NotificationController.GetInstance().ChangeNotification((Notification)notificationComboBox.SelectedItem, newNotification); PatientMainWindow.GetInstance(_loggedInPatient).Notify(); }
private void Button_Click(object sender, RoutedEventArgs e) { ResetNumberOfFinishedAppointments(); _loggedInPatient.Activity.HospitalReviewTime = DateTime.Now; this.Close(); PatientMainWindow.GetInstance(_loggedInPatient).Show(); }
private void CreateNotification() { Notification newNotification = FormNotification(); NotificationController.GetInstance().AddNotification(newNotification); LoadNotificationComboBox(); PatientMainWindow.GetInstance(_loggedInPatient).Notify(); }
private void Button_Click(object sender, RoutedEventArgs e) { if (PrescriptionIsNotSelected()) { Notification prescriptionNotification = CreateNotification(); AddCreatedNotification(prescriptionNotification); PatientMainWindow.GetInstance(_loggedInPatient).Notify(); } else { MessageBox.Show("Niste selektovali terapiju.", "Notifikacija", MessageBoxButton.OK, MessageBoxImage.Error); } }
private void DeleteNotificationButton_Click(object sender, RoutedEventArgs e) { NotificationController.GetInstance().RemoveNotification((Notification)notificationComboBox.SelectedItem); PatientMainWindow.GetInstance(_loggedInPatient).Notify(); }
private void HomeButton_Click(object sender, RoutedEventArgs e) { this.Close(); PatientMainWindow.GetInstance(_loggedInPatient).Show(); }
private void HomeButton_Click(object sender, RoutedEventArgs e) { this.Close(); PatientMainWindow.GetInstance(appointmentForEditing.Patient).Show(); }