public NewPatientViewModel(NewPatientWindow parent) { _parent = parent; ConfirmCommand = new MyICommand(Confirm_Click); CancelCommand = new MyICommand(Cancel_Click); }
private void createNewPat_Click(object sender, RoutedEventArgs e) { NewPatientWindow newPatientWindow = new NewPatientWindow(this.currentDoc, this.window); newPatientWindow.ShowDialog(); }