public void Initialize() { // Load server nodes TreeNode root = LoadServerNodes(); // Load all the projects of that server LoadProjects(root); RemoteEnableCheckBox.Checked = MogUtils_Settings.LoadBoolSetting("RemoteServer", "RemoteEnabled", "Enabled", false); LoadSettings(); }
public guiLockManager(MogMainForm main) { mainForm = main; // Initialize context menus mLocksContextMenu = new MogControl_AssetContextMenu("LABEL, CLASSIFICATION, USER, DESCRIPTION, MACHINE, IP, ID, TIME, FULLNAME, TYPE", mainForm.LockManagerLocksListView); mainForm.LockManagerLocksListView.ContextMenuStrip = mLocksContextMenu.InitializeContextMenu("{LockManager}"); mListViewSort_Manager = new ArrayList(); mGroups = new guiAssetManagerGroups(); mGroups.Add(mainForm.LockManagerLocksListView, "User"); mainForm.LockManagerLocksListView.ShowGroups = mainForm.showGroupsToolStripMenuItem.Checked; mainForm.LockManagerToggleFilterToolStripButton.Checked = MogUtils_Settings.LoadBoolSetting("LockManager", "Filtered", false); mainForm.LockManagerFilterToolStripTextBox.Text = MogUtils_Settings.LoadSetting_default("LockManager", "FilterString", ""); }
public void RefreshWorkspaceToolbar() { // Update the 'ActiveTag' UpdateGetActiveButton(); string displayStyle = MogUtils_Settings.LoadSetting_default(WorkspaceName, "DisplayStyle", "ImageAndText"); switch (displayStyle.ToLower()) { case "image": SetImageOnlyDisplayStyle(); break; case "imageandtext": SetImageAndTextDisplayStyle(); break; } GetLatestFiltersToolStripMenuItem.Tag = MogUtils_Settings.LoadSetting_default(WorkspaceName, "GetLatestFilter", ""); GetLatestTagsToolStripMenuItem.Tag = MogUtils_Settings.LoadSetting_default(WorkspaceName, "GetLatestTag", ""); GetLatestUpdateModifiedMissingToolStripMenuItem.Checked = MogUtils_Settings.LoadBoolSetting(WorkspaceName, "GetLatestForce", false); GetLatestCleanUnknownFilesToolStripMenuItem.Checked = MogUtils_Settings.LoadBoolSetting(WorkspaceName, "CleanUnknownFiles", false); autoPackageToolStripMenuItem.Checked = MogUtils_Settings.LoadBoolSetting(WorkspaceName, "AutoPackage", true); alwaysActiveToolStripMenuItem.Checked = MogUtils_Settings.LoadBoolSetting(WorkspaceName, "AlwaysActive", false); autoUpdateToolStripMenuItem.Checked = MogUtils_Settings.LoadBoolSetting(WorkspaceName, "AutoUpdate", true); if (mWorkspace != null) { mWorkspace.SetAlwaysActive(alwaysActiveToolStripMenuItem.Checked); mWorkspace.EnableAutoPackaging(autoPackageToolStripMenuItem.Checked); mWorkspace.EnableAutoUpdating(autoUpdateToolStripMenuItem.Checked); } UpdateAutoPackageToolStripMenuItemVisuals(); UpdateAutoUpdateToolStripMenuItemVisuals(); UpdateGetLatestUpdateModifiedMissingToolStripMenuItemVisuals(); UpdateGetActiveButton(); ResetToolTip(GetLatestToolStripButton); }