Example #1
0
        internal void ToggleFilter(bool enabled)
        {
            // Refresh our list
            Initialize();

            // Save our settings
            MogUtils_Settings.SaveSetting("LockManager", "Filtered", enabled.ToString());
        }
        private void SetImageAndTextDisplayStyle()
        {
            TopPanel.Height = 37;
            foreach (ToolStripItem item in WorkspaceToolStrip.Items)
            {
                item.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;
            }

            MogUtils_Settings.SaveSetting(WorkspaceName, "DisplayStyle", "ImageAndText");
        }
Example #3
0
        private void XboxPropertiesForm_Closed(object sender, System.EventArgs e)
        {
            string prefsString = MOG_ControllerProject.GetProjectName() + "." + MOG_ControllerProject.GetCurrentSyncDataController().GetPlatformName();

            mUserMap    = SyncUserMapComboBox.Text;
            mProjectMap = SyncProjectMapComboBox.Text;

            // Set the full filename of the selected user syncfile
            MogUtils_Settings.SaveSetting(prefsString, "UserSyncFile", mUserMap);
            MogUtils_Settings.SaveSetting(prefsString, "ProjectSyncFile", mProjectMap);
        }
        void TagMenuItem_CheckChanged(object sender, EventArgs e)
        {
            ToolStripMenuItem item = sender as ToolStripMenuItem;

            if (item != null && item.OwnerItem != null)
            {
                item.OwnerItem.Tag = item.Text;
                ResetToolTip(item.OwnerItem.OwnerItem as ToolStripSplitButton);

                MogUtils_Settings.SaveSetting(WorkspaceName, "GetLatestTag", item.Text);
            }
        }
Example #5
0
        internal void AdjustFilter(string filterString)
        {
            // Are we currently filtering?
            if (mainForm.LockManagerToggleFilterToolStripButton.Checked)
            {
                // Then refresh our list
                Initialize();
            }

            // Save our settings
            MogUtils_Settings.SaveSetting("LockManager", "FilterString", filterString);
        }
Example #6
0
        void view_ColumnClick(object sender, ColumnClickEventArgs e)
        {
            ListView view = sender as ListView;

            if (view != null)
            {
                string group = view.Columns[e.Column].Text;

                if (mSaveSettings)
                {
                    MogUtils_Settings.SaveSetting(view.Name, "SortedGroup", group);
                }

                SetGroup(view, group);
                UpdateGroups(view);
            }
        }
Example #7
0
        private void SaveLastSettings()
        {
            string builds = "";

            foreach (string build in BuildRequests.Items)
            {
                if (builds.Length > 0)
                {
                    builds = builds + "," + build;
                }
                else
                {
                    builds = build;
                }
            }

            MogUtils_Settings.SaveSetting("RequestBuild", "Builds", builds);
        }
        private void MOG_EventViewerMainForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (WindowState == FormWindowState.Maximized)
            {
                MogUtils_Settings.Settings.PutPropertyString("GuiLayout", "Gui", "Width", Convert.ToString(Width - 8));
                MogUtils_Settings.Settings.PutPropertyString("GuiLayout", "Gui", "Height", Convert.ToString(Height - 8));
            }
            // Else save normally...
            else
            {
                MogUtils_Settings.SaveSetting("GuiLayout", "Gui", "Width", Convert.ToString(Width));
                MogUtils_Settings.SaveSetting("GuiLayout", "Gui", "Height", Convert.ToString(Height));
            }

            MogUtils_Settings.SaveSetting("GuiLayout", "Gui", "top", Convert.ToString(Top));
            MogUtils_Settings.SaveSetting("GuiLayout", "Gui", "left", Convert.ToString(Left));

            MogUtils_Settings.Save();
        }
Example #9
0
 internal void ProjectTreeSaveFilter(string filter)
 {
     MogUtils_Settings.SaveSetting("ProjectTreeFilter", "current", filter);
 }
 private void WorkspaceAlwaysActiveToolStripMenuItem_CheckedChanged(object sender, EventArgs e)
 {
     MogUtils_Settings.SaveSetting(WorkspaceName, "AlwaysActive", alwaysActiveToolStripMenuItem.Checked.ToString());
     UpdateAutoUpdateToolStripMenuItemVisuals();
 }
 private void GetLatestCleanUnknownFilesToolStripMenuItem_CheckedChanged(object sender, EventArgs e)
 {
     MogUtils_Settings.SaveSetting(WorkspaceName, "CleanUnknownFiles", GetLatestCleanUnknownFilesToolStripMenuItem.Checked.ToString());
 }
 private void GetLatestUpdateModifiedMissingToolStripMenuItem_CheckedChanged(object sender, EventArgs e)
 {
     MogUtils_Settings.SaveSetting(WorkspaceName, "GetLatestForce", GetLatestUpdateModifiedMissingToolStripMenuItem.Checked.ToString());
     UpdateGetLatestUpdateModifiedMissingToolStripMenuItemVisuals();
 }
 private void autoPackageToolStripMenuItem_CheckedChanged(object sender, EventArgs e)
 {
     MogUtils_Settings.SaveSetting(WorkspaceName, "AutoPackage", autoPackageToolStripMenuItem.Checked.ToString());
     mWorkspace.EnableAutoPackaging(autoPackageToolStripMenuItem.Checked);
     UpdateAutoPackageToolStripMenuItemVisuals();
 }
 private void RemoteEnableCheckBox_CheckedChanged(object sender, EventArgs e)
 {
     RemoteSettingsGroupBox.Enabled = RemoteEnableCheckBox.Checked;
     MogUtils_Settings.SaveSetting("RemoteServer", "RemoteEnabled", "Enabled", RemoteEnableCheckBox.Checked.ToString());
 }
Example #15
0
 static public void MOGGlobalToolsSoundEnable(MogMainForm mainForm, bool enabled)
 {
     mainForm.mSoundManager.Enabled = enabled;
     MogUtils_Settings.SaveSetting("Gui", "Sounds", mainForm.mSoundManager.Enabled.ToString());
     MogUtils_Settings.Save();
 }