예제 #1
0
        public void ChangeImportOption()
        {
            ImportOptionWindowVM vm     = new ImportOptionWindowVM(importOption);
            ImportOptionWindow   window = new ImportOptionWindow(vm);

            window.Owner = Window;
            if (window.ShowDialog() == true)
            {
                importOption.UpdateValidMenuElems(vm.CheckMenuElems);
            }
        }
예제 #2
0
 public ImportOptionWindow(ImportOptionWindowVM viewModel)
 {
     InitializeComponent();
     this.viewModel = viewModel;
     DataContext    = viewModel;
 }
 public void ChangeImportOption()
 {
     ImportOptionWindowVM vm = new ImportOptionWindowVM(importOption);
     ImportOptionWindow window = new ImportOptionWindow(vm);
     window.Owner = Window;
     if (window.ShowDialog() == true)
     {
         importOption.UpdateValidMenuElems(vm.CheckMenuElems);
     }
 }
 public ImportOptionWindow(ImportOptionWindowVM viewModel)
 {
     InitializeComponent();
     this.viewModel = viewModel;
     DataContext = viewModel;
 }