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(); } }