コード例 #1
0
        private void ServiceConfiguration()
        {
            var wnd = new View.ConfigWindows.ServiceConfigWindow();

            wnd.Owner = Helpers.MVVM.MVVMHelper.GetActiveWindow();
            var vm = new ViewModel.ServiceConfigViewModel(_scenario);

            wnd.DataContext = vm;
            wnd.ShowDialog();
            if (vm.DialogResult == true)
            {
                _scenario.Services = vm.ServicesOnMap.ToList();
            }
        }
コード例 #2
0
 private void ServiceConfiguration()
 {
     var wnd = new View.ConfigWindows.ServiceConfigWindow();
     wnd.Owner = Helpers.MVVM.MVVMHelper.GetActiveWindow();
     var vm = new ViewModel.ServiceConfigViewModel(_scenario);
     wnd.DataContext = vm;
     wnd.ShowDialog();
     if (vm.DialogResult == true)
     {
         _scenario.Services = vm.ServicesOnMap.ToList();
     }
 }