private void OptBreakLineUpAttributes_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     using (DecoupledStorage storage = ea.Storage)
     {
         this.UpdateControls(FormatXamlAttributesOptions.LoadFrom(storage));
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Set things up on our page.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="ea"></param>
 /// <developer>Paul Mrozowski</developer>
 /// <created>08/07/2006</created>
 private void OptInitials_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     this.txtDevName.Text     = ea.Storage.ReadString(CR_Initials.STR_Preferences, CR_Initials.STR_DevName);
     this.txtDevInitials.Text = ea.Storage.ReadString(CR_Initials.STR_Preferences, CR_Initials.STR_DevInitials);
     this.chkFullname.Checked = ea.Storage.ReadBoolean(CR_Initials.STR_Preferences, CR_Initials.STR_FullNameComment);
     this.txtDateFormat.Text  = ea.Storage.ReadString(CR_Initials.STR_Preferences, CR_Initials.STR_DateFormat);
 }
 private void OptXkeysLayout_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     xkeyLayout.Load();
     if (xkeyLayout.Keys.Count == 0)
     {
         RestoreDefaultLayout();
     }
 }
 private void SmartGenericsOptions_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     this.cbSmartGenerics.Checked                 = ea.Storage.ReadBoolean("Settings", "UseSmartGenerics", true);
     this.cbGenericsAutoComplete.Checked          = ea.Storage.ReadBoolean("Settings", "SmartGenericsAutoComplete", true);
     this.cbGenericsUseTextFields.Checked         = ea.Storage.ReadBoolean("Settings", "SmartGenericsUseTextFields", true);
     this.cbGenericsAddSpaces.Checked             = ea.Storage.ReadBoolean("Settings", "SmartGenericsAddSpace", false);
     this.cbGenericsEasyDelete.Checked            = ea.Storage.ReadBoolean("Settings", "SmartGenericsEasyDelete", true);
     this.cbGenericsIgnoreClosingOperator.Checked = ea.Storage.ReadBoolean("Settings", "SmartGenericsIgnoreClosingOperator", true);
 }
        private void OptBreakLineUpAttributes_CommitChanges(object sender, OptionsPageStorageEventArgs ea)
        {
            var options = this.ControlToOptions();

            using (DecoupledStorage storage = ea.Storage)
            {
                options.Save(storage);
            }
        }
 private void SmartGenericsOptions_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     this.cbSmartGenerics.Checked = ea.Storage.ReadBoolean("Settings", "UseSmartGenerics", true);
     this.cbGenericsAutoComplete.Checked = ea.Storage.ReadBoolean("Settings", "SmartGenericsAutoComplete", true);
     this.cbGenericsUseTextFields.Checked = ea.Storage.ReadBoolean("Settings", "SmartGenericsUseTextFields", true);
     this.cbGenericsAddSpaces.Checked = ea.Storage.ReadBoolean("Settings", "SmartGenericsAddSpace", false);
     this.cbGenericsEasyDelete.Checked = ea.Storage.ReadBoolean("Settings", "SmartGenericsEasyDelete", true);
     this.cbGenericsIgnoreClosingOperator.Checked = ea.Storage.ReadBoolean("Settings", "SmartGenericsIgnoreClosingOperator", true);
 }
 private void OptUpperCaseMenuItems_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     Microsoft.Win32.RegistryKey baseKey = Microsoft.Win32.Registry.CurrentUser;
     Microsoft.Win32.RegistryKey key = baseKey.OpenSubKey("Software\\Microsoft\\VisualStudio\\11.0\\General");
     object value = key.GetValue("SuppressUppercaseConversion");
     if (value == null || !(value is int) || (int)value != 1)
         rbnALLCAPS.Checked = true;
     else
         chkNormalCase.Checked = true;
 }
Esempio n. 8
0
        private void UnitTestVisualizer_PreparePage(object sender, OptionsPageStorageEventArgs ea)
        {
            shadeAttribute.Checked     = ReadShadeAttribute(ea.Storage);
            arrowToFailed.Checked      = ReadDrawArrow(ea.Storage);
            shortenLongStrings.Checked = ReadShortenLongStrings(ea.Storage);
            maxContextLength.Text      = ReadMaxContextLength(ea.Storage);
            convertEscape.Checked      = ReadConvertEscapeCharacters(ea.Storage);

            //Not going to put up the color options yet. Later maybe.
        }
 private void CCStatus_Options_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     tbBuildServer.Text = CCStatusConfig.Server;
     var projects = CCStatusConfig.ProjectList;
     var selected = CCStatusConfig.SelectedProjects;
     foreach (var proj in projects)
     {
         clbProjects.Items.Add(proj, selected.Contains(proj));
     }
     nudUpdateInterval.Value = CCStatusConfig.UpdateInterval;
     cbNotifyOnFailure.Checked = CCStatusConfig.NotifyOnFailure;
 }
 private void Colorizer_Options_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     using (var storage = ea.Storage)
     {
         this.checkBox1.Checked = storage.ReadBoolean("Settings", "Enabled", false);
         foreach (string element in SupportedElements)
         {
             _colors[element].Color = storage.ReadColor("Settings", element, _DefaultColor);
             ((CheckBox)_colors[element].Tag).Checked = storage.ReadBoolean("Settings", element + "Enabled", true);
         }
     }
 }
 private void Colorizer_Options_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     using (var storage = ea.Storage)
     {
         this.checkBox1.Checked = storage.ReadBoolean("Settings", "Enabled", false);
         foreach (string element in SupportedElements)
         {
             _colors[element].Color = storage.ReadColor("Settings", element, _DefaultColor);
             ((CheckBox)_colors[element].Tag).Checked = storage.ReadBoolean("Settings", element + "Enabled", true);
         }
     }
 }
        private void CCStatus_Options_PreparePage(object sender, OptionsPageStorageEventArgs ea)
        {
            tbBuildServer.Text = CCStatusConfig.Server;
            var projects = CCStatusConfig.ProjectList;
            var selected = CCStatusConfig.SelectedProjects;

            foreach (var proj in projects)
            {
                clbProjects.Items.Add(proj, selected.Contains(proj));
            }
            nudUpdateInterval.Value   = CCStatusConfig.UpdateInterval;
            cbNotifyOnFailure.Checked = CCStatusConfig.NotifyOnFailure;
        }
 private void SmartQuoteOptionsPreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     this.cbSmartDoubleQuotes.Checked = ea.Storage.ReadBoolean("Settings", "UseSmartDoubleQuotes", true);
     this.cbDoubleQuotesAutoComplete.Checked = ea.Storage.ReadBoolean("Settings", "DoubleQuotesAutoComplete", true);
     this.cbDoubleQuotesUseTextFields.Checked = ea.Storage.ReadBoolean("Settings", "DoubleQuotesUseTextFields", true);
     this.cbDoubleQuotesEasyDelete.Checked = ea.Storage.ReadBoolean("Settings", "DoubleQuotesEasyDelete", true);
     this.cbDoubleQuotesIgnoreClosingQuote.Checked = ea.Storage.ReadBoolean("Settings", "DoubleQuotesIgnoreClosingQuote", true);
     this.cbSmartQuotes.Checked = ea.Storage.ReadBoolean("Settings", "UseSmartQuotes", true);
     this.cbQuotesAutoComplete.Checked = ea.Storage.ReadBoolean("Settings", "QuotesAutoComplete", true);
     this.cbQuotesUseTextFields.Checked = ea.Storage.ReadBoolean("Settings", "QuotesUseTextFields", true);
     this.cbQuotesEasyDelete.Checked = ea.Storage.ReadBoolean("Settings", "QuotesEasyDelete", true);
     this.cbQuotesIgnoreClosingQuote.Checked = ea.Storage.ReadBoolean("Settings", "QuotesIgnoreClosingQuote", true);
 }
 private void SmartQuoteOptionsPreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     this.cbSmartDoubleQuotes.Checked              = ea.Storage.ReadBoolean("Settings", "UseSmartDoubleQuotes", true);
     this.cbDoubleQuotesAutoComplete.Checked       = ea.Storage.ReadBoolean("Settings", "DoubleQuotesAutoComplete", true);
     this.cbDoubleQuotesUseTextFields.Checked      = ea.Storage.ReadBoolean("Settings", "DoubleQuotesUseTextFields", true);
     this.cbDoubleQuotesEasyDelete.Checked         = ea.Storage.ReadBoolean("Settings", "DoubleQuotesEasyDelete", true);
     this.cbDoubleQuotesIgnoreClosingQuote.Checked = ea.Storage.ReadBoolean("Settings", "DoubleQuotesIgnoreClosingQuote", true);
     this.cbSmartQuotes.Checked              = ea.Storage.ReadBoolean("Settings", "UseSmartQuotes", true);
     this.cbQuotesAutoComplete.Checked       = ea.Storage.ReadBoolean("Settings", "QuotesAutoComplete", true);
     this.cbQuotesUseTextFields.Checked      = ea.Storage.ReadBoolean("Settings", "QuotesUseTextFields", true);
     this.cbQuotesEasyDelete.Checked         = ea.Storage.ReadBoolean("Settings", "QuotesEasyDelete", true);
     this.cbQuotesIgnoreClosingQuote.Checked = ea.Storage.ReadBoolean("Settings", "QuotesIgnoreClosingQuote", true);
 }
Esempio n. 15
0
        private void OptRedGreenPlugIn_PreparePage(object sender, OptionsPageStorageEventArgs ea)
        {
            passColor.BackColor = ReadTestPassColor(ea.Storage);
            passAlpha.Maximum   = 100;
            passAlpha.Value     = passColor.BackColor.A;

            failColor.BackColor = ReadTestFailColor(ea.Storage);
            failAlpha.Maximum   = 100;
            failAlpha.Value     = failColor.BackColor.A;

            skipColor.BackColor = ReadTestSkipColor(ea.Storage);
            skipAlpha.Maximum   = 100;
            skipAlpha.Value     = skipColor.BackColor.A;
        }
Esempio n. 16
0
        private void OnPreparePage(object sender, OptionsPageStorageEventArgs ea)
        {
            DecoupledStorage storage = GetStorage();

            modelEditorPathButtonEdit.Text      = storage.ReadString(PageName, ModelEditorPath, modelEditorPathButtonEdit.Text);
            projectConverterPathButtonEdit.Text = storage.ReadString(PageName, ProjectConverterPath, projectConverterPathButtonEdit.Text);
            testExecutorButtonEdit.Text         = storage.ReadString(PageName, TestExecutorPath, testExecutorButtonEdit.Text);
            publicTokenTextEdit.Text            = storage.ReadString(PageName, Token, publicTokenTextEdit.Text);
            formatOnSaveCheckEdit.Checked       = storage.ReadBoolean(PageName, FormatOnSave, formatOnSaveCheckEdit.Checked);
            checkEditDebugME.Checked            = storage.ReadBoolean(PageName, DebugME, checkEditDebugME.Checked);

            gridControl1.DataSource = GetConnectionStrings();
            gridControl2.DataSource = GetSourceCodeInfos();
        }
 private void SplitStringOptions_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     this.cbUseAmpersand.Checked = ea.Storage.ReadBoolean("Settings", "UseAmpersandInVb", true);
     this.cbSmartEnterSplitString.Checked = ea.Storage.ReadBoolean("Settings", "SmartEnterSplitString", true);
     bool leaveOperatorAtTheEndOfFirstLine = ea.Storage.ReadBoolean("Settings", "LeaveConcatenationOperatorAtTheEndOfLine", false);
     if (leaveOperatorAtTheEndOfFirstLine)
     {
         this.rbLeaveOperator.Checked = true;
     }
     else
     {
         this.rbMoveOperatorToNextLine.Checked = true;
     }
     this.rbLeaveOperator.Enabled = this.cbSmartEnterSplitString.Checked;
     this.rbMoveOperatorToNextLine.Enabled = this.cbSmartEnterSplitString.Checked;
     this.label1.Enabled = this.cbSmartEnterSplitString.Checked;
 }
Esempio n. 18
0
        private void SplitStringOptions_PreparePage(object sender, OptionsPageStorageEventArgs ea)
        {
            this.cbUseAmpersand.Checked          = ea.Storage.ReadBoolean("Settings", "UseAmpersandInVb", true);
            this.cbSmartEnterSplitString.Checked = ea.Storage.ReadBoolean("Settings", "SmartEnterSplitString", true);
            bool leaveOperatorAtTheEndOfFirstLine = ea.Storage.ReadBoolean("Settings", "LeaveConcatenationOperatorAtTheEndOfLine", false);

            if (leaveOperatorAtTheEndOfFirstLine)
            {
                this.rbLeaveOperator.Checked = true;
            }
            else
            {
                this.rbMoveOperatorToNextLine.Checked = true;
            }
            this.rbLeaveOperator.Enabled          = this.cbSmartEnterSplitString.Checked;
            this.rbMoveOperatorToNextLine.Enabled = this.cbSmartEnterSplitString.Checked;
            this.label1.Enabled = this.cbSmartEnterSplitString.Checked;
        }
 private void OptBreakLineUpAttributes_CommitChanges(object sender, OptionsPageStorageEventArgs ea)
 {
     var options = this.ControlToOptions();
     using (DecoupledStorage storage = ea.Storage)
     {
         options.Save(storage);
     }
 }
        private void BlockPainterPlusOptions_CancelChanges(object sender, OptionsPageStorageEventArgs ea)
        {

        }
 private void BlockPainterPlusOptions_CancelChanges(object sender, OptionsPageStorageEventArgs ea)
 {
 }
		private void ImpromptuOptions_PreparePage(object sender, OptionsPageStorageEventArgs ea)
		{
			dispalyTile.Checked = ReadDisplayIcon(ea.Storage);
		}
 private void OptProjectDefaults_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     DecoupledStorage storage = ea.Storage;
     chkSpecificVersion.CheckState = storage.ReadEnum<CheckState>("ProjectDefaults", "SpecificVersion", CheckState.Indeterminate);
     chkCopyLocal.CheckState = storage.ReadEnum<CheckState>("ProjectDefaults", "CopyLocal", CheckState.Indeterminate);
 }
 private void OptNavigateToDefinition_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     loadSettings();
 }
Esempio n. 25
0
 private void Options1_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     var Settings = LoadSettings(ea.Storage);
     txtAttributeNames.Text = Settings.AttributeNames;
 }
Esempio n. 26
0
        private void Options1_PreparePage(object sender, OptionsPageStorageEventArgs ea)
        {
            var Settings = LoadSettings(ea.Storage);

            txtAttributeNames.Text = Settings.AttributeNames;
        }
 private void BlockPainterPlusOptions_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
 }
 private void ImpromptuOptions_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     dispalyTile.Checked = ReadDisplayIcon(ea.Storage);
 }
 private void OptExtractHqlNamedQuery_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
   loadSettings();
 }
Esempio n. 30
0
 private void OptNavigateToDefinition_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     loadSettings();
 }
 private void OptBreakLineUpAttributes_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     using (DecoupledStorage storage = ea.Storage)
     {
         this.UpdateControls(FormatXamlAttributesOptions.LoadFrom(storage));
     }
 }
		private void OptRedGreenPlugIn_PreparePage(object sender, OptionsPageStorageEventArgs ea)
		{
			passColor.BackColor = ReadTestPassColor(ea.Storage);
			passAlpha.Maximum = 100;
			passAlpha.Value = passColor.BackColor.A;
			
			failColor.BackColor = ReadTestFailColor(ea.Storage);
			failAlpha.Maximum = 100;
			failAlpha.Value = failColor.BackColor.A;
			
			skipColor.BackColor = ReadTestSkipColor(ea.Storage);
			skipAlpha.Maximum = 100;
			skipAlpha.Value = skipColor.BackColor.A;
		}
Esempio n. 33
0
 private void OptMultiSelect_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     clrSelection.Color = ea.Storage.ReadColor(KEY_Appearance, KEY_SelectionColor, DefaultSelectionColor);
 }
 private void OptConvertSpacesToCamelCase_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     chkEnabled.Checked = ea.Storage.ReadBoolean("SpacesToCamelCase", "Enabled", true);
     chkEnableInParameters.Checked = ea.Storage.ReadBoolean("SpacesToCamelCase", "Parameters", false);
     chkEnableLocalVariables.Checked = ea.Storage.ReadBoolean("SpacesToCamelCase", "Locals", false);
 }
        /// <summary>
        /// Set things up on our page.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="ea"></param>
        /// <developer>Paul Mrozowski</developer>
        /// <created>08/07/2006</created>
        private void OptInitials_PreparePage(object sender, OptionsPageStorageEventArgs ea)
        {
            this.txtDevName.Text = ea.Storage.ReadString(CR_Initials.STR_Preferences, CR_Initials.STR_DevName);
            this.txtDevInitials.Text = ea.Storage.ReadString(CR_Initials.STR_Preferences, CR_Initials.STR_DevInitials);
            this.chkFullname.Checked = ea.Storage.ReadBoolean(CR_Initials.STR_Preferences, CR_Initials.STR_FullNameComment);
            this.txtDateFormat.Text = ea.Storage.ReadString(CR_Initials.STR_Preferences, CR_Initials.STR_DateFormat);

        }
 private void Opt_mdMarkerExtensions_CommitChanges( object sender, OptionsPageStorageEventArgs ea )
 {
   ControlsToSettings();
   _settings.Save( ea.Storage );
 }
		private void UnitTestVisualizer_PreparePage(object sender, OptionsPageStorageEventArgs ea)
		{
			shadeAttribute.Checked = ReadShadeAttribute(ea.Storage);
			arrowToFailed.Checked = ReadDrawArrow(ea.Storage);
			shortenLongStrings.Checked = ReadShortenLongStrings(ea.Storage);
			maxContextLength.Text = ReadMaxContextLength(ea.Storage);
			convertEscape.Checked = ReadConvertEscapeCharacters(ea.Storage);

			//Not going to put up the color options yet. Later maybe.
		}
 private void Opt_mdMarkerExtensions_CommitChanges(object sender, OptionsPageStorageEventArgs ea)
 {
     ControlsToSettings();
     _settings.Save(ea.Storage);
 }
        private void BlockPainterPlusOptions_PreparePage(object sender, OptionsPageStorageEventArgs ea)
        {

        }
Esempio n. 40
0
 private void OnPreparePage(Object sender, OptionsPageStorageEventArgs ea)
 {
     // Load options here
     chkEnableLogging.Checked = LoadOptions();
 }
Esempio n. 41
0
 private void Options1_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     // Load Options
     Settings Settings = LoadSettings(ea.Storage);
     txtPrefixes.Lines = Settings.Prefixes;
 }
 private void OptDrawLinesBetweenMethods_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     loadSettings();
 }
 private void Opt_mdMarkerExtensions_PreparePage( object sender, OptionsPageStorageEventArgs ea )
 {
   _settings.Load( ea.Storage );
   SettingsToControls();
 }
 private void OptDrawLinesBetweenMethods_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     loadSettings();
 }
 private void Opt_mdMarkerExtensions_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     _settings.Load(ea.Storage);
     SettingsToControls();
 }
Esempio n. 46
0
 private void OptExtractHqlNamedQuery_PreparePage(object sender, OptionsPageStorageEventArgs ea)
 {
     loadSettings();
 }