//click new patient private void NewPatient_Click(object sender, RoutedEventArgs e) { NewPatientsWindow patientWindow = new NewPatientsWindow(false); //patientWindow.Owner = this.Owner; //TODO idk if i should remove this this.Close(); patientWindow.Show(); }
private void NewPatient_Click(object sender, RoutedEventArgs e) { NewPatientsWindow patientWindow = new NewPatientsWindow(true); //patientWindow.Owner = this.Owner; //TODO not sure if i should do this owner stuff patientWindow.Show(); this.Close(); }
//initialize new patient window depending on if its from a new appointment window public NewPatientsWindow(bool fromAppointment) { NewPatientsWindow.newWindowOpened += handleNewWindow; MainWindow.mainClosed += handleMainClose; NewPatientsWindow.newWindowOpened(this, null); InitializeComponent(); this.fromAppointment = fromAppointment; }