Пример #1
0
 public NewPatientViewModel(NewPatientWindow parent)
 {
     _parent        = parent;
     ConfirmCommand = new MyICommand(Confirm_Click);
     CancelCommand  = new MyICommand(Cancel_Click);
 }
Пример #2
0
        private void createNewPat_Click(object sender, RoutedEventArgs e)
        {
            NewPatientWindow newPatientWindow = new NewPatientWindow(this.currentDoc, this.window);

            newPatientWindow.ShowDialog();
        }