Пример #1
0
        private bool ShowDialog(BaseIOViewModel vm)
        {
            var v = new IOView(vm);

            v.Owner = Application.Current.MainWindow;
            return((bool)v.ShowDialog());
        }
Пример #2
0
 public IOView(BaseIOViewModel vm)
 {
     InitializeComponent();
     vm.Dlg      = this;
     DataContext = vm;
 }