public ViewWorkstationSettings(WorkstationSearchPreferences searchPreferences, IApplicationController appController)
 {
     _searchPreferences = searchPreferences;
     _appController     = appController;
     InitializeComponent();
     AddGroupCheckBoxes();
     HideCheckBoxes();
     SetWorkstationGroups();
     InitializeUIFromPreferences();
 }
 public ViewSystemManagerPresenter(IViewSystemManager view, IApplicationController appController)
 {
     _view          = view;
     _appController = appController;
     _appController.SystemManagerPresenter = this;
     searchPreferences = appController.AppSearchPreferences.WorkstationPreferences;
     if (_appController.DemoModeOn)
     {
         _view.DisableFunctionality();
     }
 }
Beispiel #3
0
        public static List <Computer> GetComputers(string searchText, Category type, WorkstationSearchPreferences searchPrefs)
        {
            var selectedGroups = searchPrefs.SelectedGroups;

            if (searchPrefs.SearchEntireDirectory == true)
            {
                return(QueryAllMachinesAD(searchText, type));
            }
            var             ousToSearch   = GetGroupOUs(searchPrefs.SelectedGroups);
            List <Computer> searchResults = QueryADMachines(searchText, type, ousToSearch);

            return(searchResults);
        }