public EditPatientWindow(Patient patient, PatientsPage parent) { this._parent = parent; _initialPatient = patient; InitializeComponent(); this.DataContext = this; InitializeStartingValuesForComponents(patient); }
public static PatientsPage GetPage(SecretaryMain parent) { if (_instance == null) { _instance = new PatientsPage(); } else { _instance.UpdateTable(); } parent.Title.Content = "Pacijenti"; return(_instance); }
private void Patients_Executed(object sender, ExecutedRoutedEventArgs e) { Main.Content = PatientsPage.GetPage(this); }
private void PatientsButton_Click(object sender, RoutedEventArgs e) { Main.Content = PatientsPage.GetPage(this); }
public NewPatientWindow(PatientsPage parent) { InitializeComponent(); this.DataContext = new NewPatientViewModel(this); }
public DetailedWindow(PatientsPage parent, string username) { InitializeComponent(); DataContext = new DetailedViewModel(this, username); }