Exemple #1
0
        // Install DSC modules on selected server
        private void installModulesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DscServerNode serverNode = (treeLibrary.SelectedNode.Tag as DscServerNode);

            ModuleWorker.InstallModules(_repository, serverNode);

            MessageBoxWorker.Done(this, Strings.UI_Text_ModuleInstallComplete);
        }
Exemple #2
0
        // Load DscRepository from specific path and fill UI
        private void LoadRepository(string path)
        {
            _repository       = new DscRepository(path);
            _repositoryWorker = new RepositoryWorker(_repository);

            treeLibrary.Nodes["tviResources"].Nodes.Clear();
            treeLibrary.Nodes["tviRoles"].Nodes.Clear();
            treeLibrary.Nodes["tviServers"].Nodes.Clear();

            FillResourceTree();
            FillRoleTree(_repository.Roles, treeLibrary.Nodes["tviRoles"]);
            FillServerTree(_repository.Servers, treeLibrary.Nodes["tviServers"]);

            UnblockModules();
            ModuleWorker.InstallLocalModules(_repository);
        }