static public void MOGGlobalToolsLaunchServerManager(MogMainForm mainForm) { string output = ""; string command = MOG.MOG_Main.GetExecutablePath() + "\\MOG_ServerManager.exe"; guiCommandLine.ShellSpawn(command, "", ProcessWindowStyle.Normal, ref output); }
static public void MOGGlobalToolsPermisions(MogMainForm mainForm) { // Encapsulate everything in a try-catch try { if (MOG_ControllerProject.GetPrivileges() != null) { MogControl_PrivilegesForm privilegesForm = new MogControl_PrivilegesForm(MOG_ControllerProject.GetPrivileges()); privilegesForm.StartPosition = FormStartPosition.CenterParent; DialogResult result = privilegesForm.ShowDialog(mainForm); result.ToString(); } else { MOG_Prompt.PromptMessage("Permissions Error!", "Unable to open Permissions Form. " + "Please make sure a valid project is selected.\r\n\r\nYou may try clicking Projects |" + " (The Current Project) to resolve this error, and/or close and re-open MOG.", Environment.StackTrace); } } // Catch any .NET-explainable exceptions. catch (Exception ex) { MOG_Report.ReportMessage("Error in Privileges Change Form!", ex.Message, ex.StackTrace, MOG.PROMPT.MOG_ALERT_LEVEL.ERROR); } }
static public void MOGGlobalViewRemoteMachineInit(MogMainForm mainForm) { // Reset our list to a virgin state for (int x = mainForm.remoteMachinesToolStripMenuItem.DropDownItems.Count; x > 1; x--) { ToolStripItem item = mainForm.remoteMachinesToolStripMenuItem.DropDownItems[x - 1]; if (string.Compare(item.Text, "&Add...", true) != 0) { mainForm.remoteMachinesToolStripMenuItem.DropDownItems.RemoveAt(x - 1); } } ArrayList machineNames = MOG_ControllerSystem.LocateTools("RemoteConnections", "*.RDP"); machineNames.Sort(); // Add a separator ToolStripSeparator separator = new ToolStripSeparator(); mainForm.remoteMachinesToolStripMenuItem.DropDownItems.Add(separator); // Add each machine name foreach (string machine in machineNames) { ToolStripMenuItem Item = new ToolStripMenuItem(Path.GetFileNameWithoutExtension(machine)); Item.Click += new System.EventHandler(MainMenuViewClass.MOGGlobalViewRemoteMachine_Click); mainForm.remoteMachinesToolStripMenuItem.DropDownItems.Add(Item); } }
internal static void SetMogLibraryMode(MogMainForm mogMainForm) { mogMainForm.aboutMOGToolStripMenuItem.Text = "About Mog Library..."; mogMainForm.issueTrackerToolStripMenuItem.Visible = false; mogMainForm.toolStripSeparator12.Visible = false; }
static public void MOGGlobalToolsPostBuild(MogMainForm mainForm) { if (mainForm.mAssetManager != null) { mainForm.mAssetManager.BuildPost(); } }
static public void MOGGlobalViewInvertAll(MogMainForm mainForm) { ListView activeView = null; if (mainForm.ActiveControl is ListView) { activeView = (ListView)mainForm.ActiveControl; } else if (mainForm.ActiveControl is MogControl_LocalWorkspaceTab) { MogControl_LocalWorkspaceTab tab = mainForm.ActiveControl as MogControl_LocalWorkspaceTab; activeView = tab.WorkSpaceListView; } else if (mainForm.ActiveControl is MogControl_LibraryExplorer) { MogControl_LibraryExplorer library = mainForm.ActiveControl as MogControl_LibraryExplorer; activeView = library.LibraryListView.LibraryListView; } if (activeView != null) { foreach (ListViewItem listViewItem in activeView.Items) { listViewItem.Selected = !listViewItem.Selected; } } }
public void InitializeMog_Projects(MogMainForm main) { // Initialize projects menu MainMenuProjectsClass.mainForm = mainForm; MainMenuProjectsClass.MOGGlobalProjectsInit(true); guiProject.mainForm = mainForm; }
/// <summary> /// Try to rebuild all of our user boxes based on what's on the HDD /// </summary> /// <param name="mainForm"></param> static public void MOGGlobalViewRebuildInbox(MogMainForm mainForm) { if (mainForm.mAssetManager != null) { // Initialize our variables... string boxDirectory = mainForm.mAssetManager.mInboxAssetsDirectory; string userPath = MOG_ControllerProject.GetActiveUser().GetUserPath(); // If we have a proper boxDirectory, add a "\\" to it if (boxDirectory.Length > 0) { boxDirectory += "\\"; } // Rebuild our contents.info and the database based on what's in the HDD UpdateBox(userPath, "Inbox", boxDirectory, false); UpdateBox(userPath, "Drafts", boxDirectory, false); UpdateBox(userPath, "Outbox", boxDirectory, false); UpdateBox(userPath, "Trash", boxDirectory, true); // Now rebuild local window if (mainForm.mAssetManager.mLocal != null && MOG_ControllerProject.GetCurrentSyncDataController() != null) { MOG_ControllerInbox.RebuildInboxView(String.Concat(MOG_ControllerProject.GetCurrentSyncDataController().GetSyncDirectory(), "\\MOG\\UpdatedTray"), false); mainForm.mAssetManager.mLocal.RefreshWindow(); } } }
public guiAssetCustomToolsMenu(MogMainForm main, string customToolsInfo, ListView view) { mView = view; mTree = null; mCustomToolsInfo = customToolsInfo; mainForm = main; }
public guiAssetCustomToolsMenu(MogMainForm main, string customToolsInfo, TreeView tree) { mView = null; mTree = tree; mCustomToolsInfo = customToolsInfo; mainForm = main; }
public guiAssetManagerProjectTools(BASE mog, MogMainForm main) { mMog = mog; mainForm = main; mButtons = new guiAssetManagerCustomButtons(mainForm); }
static public bool MOGGlobalRepositoryLogin(MogMainForm main, bool forceRestart) { SelectValidRepository: MogForm_RepositoryBrowser_Client browser = new MogForm_RepositoryBrowser_Client(forceRestart); DialogResult rc = DialogResult.Cancel; if (!MOG_Main.IsShutdown()) { rc = browser.ShowDialog(); } if (rc == DialogResult.OK) { if (forceRestart) { main.Close(); } return(true); } else if (rc == DialogResult.Retry) { goto SelectValidRepository; } return(false); }
internal static void SetMogLibraryMode(MogMainForm mogMainForm) { mogMainForm.ProjectTreeClassificationViewToolStripButton.Visible = false; mogMainForm.ProjectTreePackageViewToolStripButton.Visible = false; mogMainForm.ProjectTreeSyncViewToolStripButton.Visible = false; mogMainForm.ProjectTreeArchiveViewtoolStripButton.Visible = false; mogMainForm.toolStripSeparator2.Visible = false; }
public MogControl_LocalWorkspaceTab(MogMainForm parent, MOG_ControllerSyncData workspace) { InitializeComponent(); mWorkspace = workspace; mainForm = parent; InitializeWorkspace(); }
public Report(MogMainForm main) { // // Required for Windows Form Designer support // InitializeComponent(); mainForm = main; }
static public void MOGGlobalQuit(MogMainForm main) { // Save user prefs main.mUserPrefs.SaveStaticForm_LayoutPrefs(); guiUserPrefs.SaveDynamic_LayoutPrefs("AssetManager", main); guiUserPrefs.SaveStatic_ProjectPrefs(); main.mUserPrefs.Save(); main.Shutdown(); }
public PhotoshopImportForm(string targetDir, MogMainForm main) { // // Required for Windows Form Designer support // InitializeComponent(); mainForm = main; mTargetDir = targetDir; }
public guiProjectManager(MogMainForm main) { mainForm = main; ProjectTreeSetFilter(MogUtils_Settings.LoadSetting_default("ProjectTreeFilter", "current", "Classification")); Initialize(); mLoaded = true; }
public MessageForm(MogMainForm main) { // // Required for Windows Form Designer support // InitializeComponent(); mMog = main.gMog; mMessage = new MOG_ControllerMessage(mMog); }
public guiProjectManagerTasks(MogMainForm main) { mainForm = main; mListViewSort_Manager = new ArrayList(); // InitializeDataBase(); // LoadDepartments(); // // InitializeAssignUsers(); // InitializeAssignDepartments(); }
static public void MOGGlobalViewRefresh(MogMainForm mainForm, string tabName) { switch (tabName) { case "MainTabStartupTabPage": mainForm.MOGWelcomeWebBrowser.Refresh(); break; case "MainTabProjectManagerTabPage": mainForm.mProjectManager.BuildRepositoryTrees(true); //mainForm.ProjectManagerTaskWindow.InitializeForProject(); break; case "MainTabAssetManagerTabPage": mainForm.RefreshClientAssetWindow(); mainForm.mAssetManager.mLocal.RefreshWindow(); //mainForm.AssetManagerTaskWindow.InitializeForUser(); break; case "MainTabConnectionManagerTabPage": if (connectionRefreshTimer == null) //mainForm.AllowConnectionsRefresh) { mainForm.mConnectionManager.Refresh(); connectionRefreshTimer = new System.Windows.Forms.Timer(); connectionRefreshTimer.Interval = 1000; connectionRefreshTimer.Tick += new EventHandler(connectionRefreshTimer_Tick); connectionRefreshTimer.Start(); } break; case "MainTabLockManagerTabPage": if (mainForm.mLockManager != null) { mainForm.mLockManager.Initialize(); } break; case "MainTabLibraryTabPage": if (mainForm.mLibraryManager != null) { mainForm.mLibraryManager.Refresh(); } break; default: MOG_Report.ReportSilent("Error In MOG_Client.Client_Mog_Utilities.MainMenuViewClass.MOGGlobalViewRefresh", "Error finding tab page to refresh: \r\n\r\n" + mainForm.MOGTabControl.SelectedTab.Name, Environment.StackTrace); break; } }
internal static void LoadVisibleTab(MogMainForm main, ToolStripMenuItem toolStripMenuItem, bool state) { switch (state) { case true: ShowTabPage(main, toolStripMenuItem); break; case false: HideTabPage(main, toolStripMenuItem); break; } }
internal static void ToggleVisibleTab(MogMainForm main, ToolStripMenuItem toolStripMenuItem) { switch (toolStripMenuItem.Checked) { case true: ShowTabPage(main, toolStripMenuItem); break; case false: HideTabPage(main, toolStripMenuItem); break; } }
static public void MOGGlobalToolsRequestBuildForm(MogMainForm mainForm) { RequestBuildForm build = new RequestBuildForm(); if (build.ShowDialog() == DialogResult.OK) { // Launch the request foreach (string command in build.BuildRequests.Items) { LaunchBuild(mainForm, command, build.mOptions); } } }
static public void MOGGlobalViewMyToolbox(MogMainForm mainForm) { // Allow LocalBranchRightPanel to change its width MainMenuViewClass.bChangeLocalBranchRightPanelWidth = true; // Store our toggled width... int width = mainForm.mAssetManager.mTools.ToggleWidth(); // Change our Splitter width (which will immediately turn back to 125 for some reason) mainForm.AssetManagerLocalDataSplitter.SplitPosition = width; // Save our toggle width MainMenuViewClass.LocalBranchRightPanelSavedWidth = width; // Tell our LocalBranchRightPanel not to update its width to a different width MainMenuViewClass.bChangeLocalBranchRightPanelWidth = false; }
static public void PopupVerificationForRights(MogMainForm mainForm) { MOG_Privileges privilidges = new MOG_Privileges(); if (privilidges.GetUserPrivilege(MOG_ControllerProject.GetUser().GetUserName(), MOG_PRIVILEGE.AccessAdminTools)) { mainForm.serverManagerToolStripMenuItem.Enabled = true; mainForm.eventViewerToolStripMenuItem.Enabled = true; } else { mainForm.serverManagerToolStripMenuItem.Enabled = false; mainForm.eventViewerToolStripMenuItem.Enabled = false; } }
public ChatForm(MogMainForm main, guiChatManager parent, string invited, string handle) { // // Required for Windows Form Designer support // InitializeComponent(); mMog = main.gMog; mainForm = main; mInvite = invited; mHandle = handle; mParent = parent; Initialize(); }
internal static void SetMogLibraryMode(MogMainForm mogMainForm) { mogMainForm.VisibleStartToolStripMenuItem.Visible = false; mogMainForm.VisibleWorkspaceToolStripMenuItem.Visible = false; mogMainForm.VisibleConnectionsToolStripMenuItem.Visible = false; mogMainForm.myToolboxToolStripMenuItem.Visible = false; mogMainForm.myLocalExplorerToolStripMenuItem.Visible = false; mogMainForm.toolStripSeparator9.Visible = false; mogMainForm.rebuildInboxToolStripMenuItem.Visible = false; mogMainForm.remoteMachinesToolStripMenuItem.Visible = false; mogMainForm.toolStripMenuItem2.Visible = false; mogMainForm.toolStripSeparator10.Visible = false; mogMainForm.showGroupsToolStripMenuItem.Visible = false; }
static public void MOGGlobalViewRemoteMachine(MogMainForm mainForm, string MachineName) { string output = ""; // Get the tool listed on the startup page string command = MOG_ControllerSystem.LocateTool("RemoteConnections", MachineName + ".Rdp"); if (command == null || command.Length == 0) { MessageBox.Show(string.Concat("The target Rdp (", MachineName, ") does not exist in any of our valid tools directories!", "Warning!", MessageBoxButtons.OK)); return; } guiCommandLine.ShellSpawn(command, "", ProcessWindowStyle.Normal, ref output); }
public guiAssetManager(MogMainForm main) { mainForm = main; mInboxAssetsDirectory = ""; mOutboxAssetsDirectory = ""; mDefaultUpdateBuildType = ""; if (mAssetStatus == null) { mAssetStatus = new MOGAssetStatus(); } //InitializeAssetIcons(); mInitialized = false; }