Ejemplo n.º 1
0
        private void AgentGroupConfig()
        {
            var wnd = new View.ConfigWindows.AgentGroupConfigWindow();
            var vm  = new ViewModel.AgentGroupConfigViewModel(_scenario.InputOutputPoints, _scenario.AgentGroups);

            wnd.DataContext = vm;
            wnd.ShowDialog();
            if (vm.DialogResult == true)
            {
                _scenario.AgentGroups = vm.AgentGroups.Select(agvm => agvm.Group).ToList();
            }
        }
 private void AgentGroupConfig()
 {
     var wnd = new View.ConfigWindows.AgentGroupConfigWindow();
     var vm = new ViewModel.AgentGroupConfigViewModel(_scenario.InputOutputPoints, _scenario.AgentGroups);
     wnd.DataContext = vm;
     wnd.ShowDialog();
     if (vm.DialogResult == true)
     {
         _scenario.AgentGroups = vm.AgentGroups.Select(agvm=>agvm.Group).ToList();
     }
 }