public void Login() { StartPatientWindow patientWindow = new StartPatientWindow(_patient); Application.Current.MainWindow = patientWindow; patientWindow.startWindow.Content = new StartPatientPage(patientWindow); patientWindow.Show(); }
public StartPatientPageViewModel(StartPatientWindow p) { _parent = p; ShowAppointments = new MyICommand(ShowAppointments_Click); ShowFeedback = new MyICommand(ShowFeedback_Click); ShowRatingAppointments = new MyICommand(ShowRatingAppointments_Click); ShowMedicalRecord = new MyICommand(ShowMedicalRecord_Click); ShowNotifications = new MyICommand(ShowNotifications_Click); }
public NotificationPatientViewModel(StartPatientWindow pp) { parent = pp; loggedInPatient = pp.Patient; BackCommand = new MyICommand(Back_Click); updateVisibility(); LoadRemindersForAppointment(); LoadNotifications(); LoadReminders(); NotificationListView = new ObservableCollection <string>(notifications); }
public PatientRatesViewModel(RatingPage ap, StartPatientWindow pp, Appointment t) { parentp = ap; selektovan = t; parent = pp; InitializeComponent(); submit.IsEnabled = false; if (parentp._kojiJePritisnut == parentp.rate) { parent.imeLjekara.Text = "dr. " + t.Doctor.Name + " " + t.Doctor.Surname; } else { parent.imeLjekara.Text = null; } InitializeComboBox(); parent.UpdateVisibilityOfComponents(); }