public void Activate() { NewPacientViewModel vm = new NewPacientViewModel(dbService); NewPacientDialog dialog = new NewPacientDialog(vm); dialog.ShowDialog(); }
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; }