コード例 #1
0
        private void NewPatientMethod()
        {
            var app     = new NewPatientView();
            var context = ServiceLocator.Current.GetInstance <NewPatientViewModel>();

            context.lastWindow = this;
            app.DataContext    = context;
            app.Show();
        }
コード例 #2
0
 public void ShowNewPatientDialog()
 {
     _newPatientView = new NewPatientView();
     _newPatientView.ShowDialog();
 }