Ejemplo n.º 1
0
        public void Activate()
        {
            NewPacientViewModel vm = new NewPacientViewModel(dbService);
            NewPacientDialog dialog = new NewPacientDialog(vm);
            dialog.ShowDialog();

        }
Ejemplo n.º 2
0
 public NewPacientDialog(NewPacientViewModel vm)
 {
     InitializeComponent();
     this.ShowInTaskbar = false;               // don't show the dialog on the taskbar
     this.Topmost = true;                      // ensure we're Always On Top
     this.ResizeMode = ResizeMode.NoResize;    // remove excess caption bar buttons
     this.Owner = Application.Current.MainWindow;
     this.vm = vm;
 }