private bool ShowDialog(BaseIOViewModel vm) { var v = new IOView(vm); v.Owner = Application.Current.MainWindow; return((bool)v.ShowDialog()); }
public IOView(BaseIOViewModel vm) { InitializeComponent(); vm.Dlg = this; DataContext = vm; }