예제 #1
0
        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", "");
        }
예제 #2
0
        public guiConnectionManager(MogMainForm main)
        {
            mainForm = main;

            mListViewSort_Manager = new ArrayList();

            // Initialize the context menus
            mConnectionsMenu  = new MogControl_AssetContextMenu("MACHINE, IP, NETWORK, TYPE, INFO, FULLNAME", mainForm.ConnectionsListView);
            mCommandsMenu     = new MogControl_AssetContextMenu("COMMAND, ASSET, PLATFORM, SLAVE, LABEL, MACHINE, IP, NETWORKID, FULLNAME, COMMANDID", mainForm.ConnectionManagerCommandsListView);
            mPackageMenu      = new MogControl_AssetContextMenu("NAME, CLASSIFICATION, DATE, TARGET PACKAGE, USER, FULLNAME, COMMANDID, LABEL, VERSION", mainForm.ConnectionManagerMergingListView);
            mPostMenu         = new MogControl_AssetContextMenu("NAME, CLASSIFICATION, DATE, OWNER, FULLNAME, COMMANDID, LABEL, VERSION", mainForm.ConnectionManagerPostingListView);
            mLateResolverMenu = new MogControl_AssetContextMenu("BROKEN PACKAGE, CLASSIFICATION, DATE, DEPENDANT PACKAGE, OWNER, FULLNAME, COMMANDID, LABEL, VERSION", mainForm.ConnectionManagerLateResolversListView);

            mainForm.ConnectionsListView.ContextMenuStrip = mConnectionsMenu.InitializeContextMenu("{CONNECTIONS}");
            mainForm.ConnectionManagerCommandsListView.ContextMenuStrip      = mCommandsMenu.InitializeContextMenu("{COMMANDS}");
            mainForm.ConnectionManagerMergingListView.ContextMenuStrip       = mPackageMenu.InitializeContextMenu("{PACKAGECOMMANDS}");
            mainForm.ConnectionManagerPostingListView.ContextMenuStrip       = mPostMenu.InitializeContextMenu("{POSTCOMMANDS}");
            mainForm.ConnectionManagerLateResolversListView.ContextMenuStrip = mLateResolverMenu.InitializeContextMenu("{LATERESOLVERCOMMANDS}");

            mainForm.ConnectionsListView.ShowGroups = mainForm.showGroupsToolStripMenuItem.Checked;
            mGroups = new guiAssetManagerGroups();
            mGroups.Add(mainForm.ConnectionsListView, "Type");
        }
예제 #3
0
        public void Initialize()
        {
            mAssets = new guiAssetManagerAssets(this);
            mLocal  = new guiAssetManagerLocalData(this);
            mGroups = new guiAssetManagerGroups();
            mTrash  = new guiAssetManagerTrash(this);

            // Intialize inbox users combobox
            InitializeUsers();

            // Initialize and Load the user defined local branches
            mLocal.InitializePotentialLocalBranches();
            //mLocal.LoadUserLocalBranches();

            // Initialize control hiders
            mToDo                    = new MogUtil_ControlHide(168, 0, false);
            mLocalExplorer           = new MogUtil_ControlHide(168, 0, false);
            mLocalExplorer.mOpening += new MogUtil_ControlHide.ControlHideOpeningEvent(mLocalExplorer_mOpening);
            mTools                   = new MogUtil_ControlHide(250, 0, true);

            // Initialize context menus
            mInboxContextMenu  = new MogControl_AssetContextMenu("NAME, CLASS, TARGETPATH, DATE, SIZE, PLATFORM, STATE, CREATOR, RESPPARTY, OPTIONS, FULLNAME, BOX, GROUP", mainForm.AssetManagerInboxListView);
            mDraftsContextMenu = new MogControl_AssetContextMenu("NAME, CLASS, TARGETPATH, DATE, SIZE, PLATFORM, STATE, CREATOR, RESPPARTY, OPTIONS, FULLNAME, BOX, GROUP", mainForm.AssetManagerDraftsListView);
            mOutboxContextMenu = new MogControl_AssetContextMenu("NAME, CLASS, TARGETPATH, DATE, SIZE, PLATFORM, STATE, CREATOR, RESPPARTY, OPTIONS, FULLNAME, BOX, GROUP", mainForm.AssetManagerSentListView);
            mTrashContextMenu  = new MogControl_AssetContextMenu("NAME, CLASS, TARGETPATH, DATE, SIZE, PLATFORM, STATE, CREATOR, RESPPARTY, OPTIONS, FULLNAME, BOX, GROUP", mainForm.AssetManagerTrashListView);

            // Initialize the inbox icons
            mainForm.AssetManagerInboxListView.SmallImageList = MogUtil_AssetIcons.Images;
            mainForm.AssetManagerInboxListView.StateImageList = mAssetStatus.StateImageList;

            mainForm.AssetManagerDraftsListView.SmallImageList = MogUtil_AssetIcons.Images;
            mainForm.AssetManagerDraftsListView.StateImageList = mAssetStatus.StateImageList;

            // Initialize the outbox icons
            mainForm.AssetManagerSentListView.SmallImageList = MogUtil_AssetIcons.Images;
            mainForm.AssetManagerSentListView.StateImageList = mAssetStatus.StateImageList;

            mGroups.Add(mainForm.AssetManagerDraftsListView, "Group");
            mGroups.Add(mainForm.AssetManagerInboxListView, "Group");
            mGroups.Add(mainForm.AssetManagerSentListView, "Group");
            mGroups.Add(mainForm.AssetManagerTrashListView, "Group");

            // *****************
            // Setup the sort engine for the listView windows
            // *****************

            // Assets
            mDraftsSortManager = new ListViewSortManager(mainForm.AssetManagerDraftsListView, new Type[] {
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewDateSort),
                typeof(ListViewStringSizeSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort)
            });
            mInboxSortManager = new ListViewSortManager(mainForm.AssetManagerInboxListView, new Type[] {
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewDateSort),
                typeof(ListViewStringSizeSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort)
            });

            mOutboxSortManager = new ListViewSortManager(mainForm.AssetManagerSentListView, new Type[] {
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewDateSort),
                typeof(ListViewStringSizeSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort)
            });

            mTrashSortManager = new ListViewSortManager(mainForm.AssetManagerTrashListView, new Type[] {
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewDateSort),
                typeof(ListViewStringSizeSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort),
                typeof(ListViewTextCaseInsensitiveSort)
            });
        }