protected override void OnApply(DialogPage.PageApplyEventArgs e)
        {
            base.OnApply(e);

            if (SettingsUpdated != null)
            {
                SettingsUpdated(null, null);
            }
        }
        protected override void OnApply(DialogPage.PageApplyEventArgs e)
        {
            base.OnApply(e);

            if (Changed != null)
            {
                Changed();
            }
        }
        // When user clicks on Apply in Options window, get the path selected from control and set it to property of this class so         
        // that Visual Studio saves it.        
        protected override void OnApply(DialogPage.PageApplyEventArgs e)
        {
            if (e.ApplyBehavior == ApplyKind.Apply)
            {
                this.DefaultBody = _optionsControl.DefaultBody;
                this.CodeGenerationOptions = _optionsControl.CodeGenerationOptions;
            }

            base.OnApply(e);
        }
 public void Apply(DialogPage.ApplyKind applyKind)
 {
     if (applyKind != DialogPage.ApplyKind.Apply)
     {
         _buildGridView.CancelEdit();
         _debugGridView.CancelEdit();
     }
     else
     {
         _buildGridView.EndEdit();
         _debugGridView.EndEdit();
     }
 }
        internal override void Initialize(DialogPage optionPage)
        {
            base.Initialize(optionPage);

            // init the assembly list box
            if (this.CGOptionPage.CodeGeneratorAssemblyList != null)
            {
                foreach (string ass in this.CGOptionPage.CodeGeneratorAssemblyList)
                {
                    this.lstAssemblyList.Items.Add(Utility.PathHelper.GetAbsolutePath(ass));
                }
            }
        }
 protected override void OnApply(DialogPage.PageApplyEventArgs e)
 {
     try
     {
         if(Editor.SetIceHome(Editor.IceHome))
         {
             Package.Instance.SetIceHome(Editor.IceHome);
         }
         else
         {
             e.ApplyBehavior = ApplyKind.CancelNoNavigate;
         }
     }
     catch (Exception ex)
     {
         Package.UnexpectedExceptionWarning(ex);
         throw;
     }
 }
        // When user clicks on Apply in Options window, get the path selected from control and set it to property of this class so
        // that Visual Studio saves it.
        protected override void OnApply(DialogPage.PageApplyEventArgs e)
        {
            if (e.ApplyBehavior == ApplyKind.Apply)
            {
                XmlDocEnabled = _optionsControl.XmlDocEnabled;
                FormattingEnabled = _optionsControl.FormattingEnabled;

                if (NavBarEnabled != _optionsControl.NavBarEnabled && SetNavigationBarConfig(_optionsControl.NavBarEnabled))
                {
                    NavBarEnabled = _optionsControl.NavBarEnabled;
                    _navBarEnabledInAppConfig = _optionsControl.NavBarEnabled;
                }

                HighlightUsageEnabled = _optionsControl.HighlightUsageEnabled;
                RenameRefactoringEnabled = _optionsControl.RenameRefactoringEnabled;
                DepthColorizerEnabled = _optionsControl.DepthColorizerEnabled;
                NavigateToEnabled = _optionsControl.NavigateToEnabled;
                SyntaxColoringEnabled = _optionsControl.SyntaxColoringEnabled;
                InterfaceImplementationEnabled = _optionsControl.InterfaceImplementationEnabled;
                FolderOrganizationEnabled = _optionsControl.FolderOrganizationEnabled;
                FindAllReferencesEnabled = _optionsControl.FindAllReferencesEnabled;
                RecordStubGenerationEnabled = _optionsControl.RecordStubGenerationEnabled;
            }

            base.OnApply(e);
        }
        // When user clicks on Apply in Options window, get the path selected from control and set it to property of this class so
        // that Visual Studio saves it.
        protected override void OnApply(DialogPage.PageApplyEventArgs e)
        {
            if (e.ApplyBehavior == ApplyKind.Apply)
            {
                XmlDocEnabled = _optionsControl.XmlDocEnabled;
                FormattingEnabled = _optionsControl.FormattingEnabled;

                if (NavBarEnabled != _optionsControl.NavBarEnabled && SetNavigationBarConfig(_optionsControl.NavBarEnabled))
                {
                    NavBarEnabled = _optionsControl.NavBarEnabled;
                    _navBarEnabledInAppConfig = _optionsControl.NavBarEnabled;
                }

                HighlightUsageEnabled = _optionsControl.HighlightUsageEnabled;
                RenameRefactoringEnabled = _optionsControl.RenameRefactoringEnabled;
                DepthColorizerEnabled = _optionsControl.DepthColorizerEnabled;
                NavigateToEnabled = _optionsControl.NavigateToEnabled;
                SyntaxColoringEnabled = _optionsControl.SyntaxColoringEnabled;
                InterfaceImplementationEnabled = _optionsControl.InterfaceImplementationEnabled;
                FolderOrganizationEnabled = _optionsControl.FolderOrganizationEnabled;
                FindAllReferencesEnabled = _optionsControl.FindAllReferencesEnabled;
                GenerateRecordStubEnabled = _optionsControl.GenerateRecordStubEnabled;
                UnionPatternMatchCaseGenerationEnabled = _optionsControl.UnionPatternMatchCaseGenerationEnabled;
                ResolveUnopenedNamespacesEnabled = _optionsControl.ResolveUnopenedNamespacesEnabled;
                UnusedReferencesEnabled = _optionsControl.UnusedReferencesEnabled;
                UnusedOpensEnabled = _optionsControl.UnusedOpensEnabled;
                TaskListCommentsEnabled = _optionsControl.TaskListCommentsEnabled;
                GoToMetadataEnabled = _optionsControl.GoToMetadataEnabled;
                GenerateReferencesEnabled = _optionsControl.GenerateReferencesEnabled;
            }

            base.OnApply(e);
        }
 public void OnSettingsChanged(DialogPage dialogPageType)
 {
     if (SettingsChanged != null) SettingsChanged(this, dialogPageType);
 }
        protected override void OnApply(DialogPage.PageApplyEventArgs e)
        {
            var validationErrors = GetValidationErrors();

            if (validationErrors != null)
            {
                MessageBox.Show(validationErrors, "ConEmu Launcher", MessageBoxButtons.OK, MessageBoxIcon.Error);
                e.ApplyBehavior = ApplyKind.CancelNoNavigate;
            }
            else
                base.OnApply(e);
        }
 protected override void OnApply(DialogPage.PageApplyEventArgs e)
 {
     // increment the options version
     Utils.OptionsVersion++;
     base.OnApply(e);
 }
        // When user clicks on Apply in Options window, get the path selected from control and set it to property of this class so
        // that Visual Studio saves it.
        protected override void OnApply(DialogPage.PageApplyEventArgs e)
        {
            if (e.ApplyBehavior == ApplyKind.Apply)
            {
                XmlDocEnabled = _optionsControl.XmlDocEnabled;
                FormattingEnabled = _optionsControl.FormattingEnabled;

                if (NavBarEnabled != _optionsControl.NavBarEnabled && SetNavigationBarConfig(_optionsControl.NavBarEnabled))
                {
                    NavBarEnabled = _optionsControl.NavBarEnabled;
                    _navBarEnabledInAppConfig = _optionsControl.NavBarEnabled;
                }

                HighlightUsageEnabled = _optionsControl.HighlightUsageEnabled;
                RenameRefactoringEnabled = _optionsControl.RenameRefactoringEnabled;
                DepthColorizerEnabled = _optionsControl.DepthColorizerEnabled;
                NavigateToEnabled = _optionsControl.NavigateToEnabled;
                SyntaxColoringEnabled = _optionsControl.SyntaxColoringEnabled;
            }

            base.OnApply(e);
        }
        // When user clicks on Apply in Options window, get the path selected from control and set it to property of this class so
        // that Visual Studio saves it.
        protected override void OnApply(DialogPage.PageApplyEventArgs e)
        {
            if (e.ApplyBehavior == ApplyKind.Apply)
            {
                XMLDocEnabled = _optionsControl.XMLDocEnabled;
                FormattingEnabled = _optionsControl.FormattingEnabled;

                if (SetNavigationBarConfig(_optionsControl.NavBarEnabled))
                {
                    NavBarEnabled = _optionsControl.NavBarEnabled;
                };

                HighlightUsageEnabled = _optionsControl.HighlightUsageEnabled;
                RenameRefactoringEnabled = _optionsControl.RenameRefactoringEnabled;
                DepthColorizerEnabled = _optionsControl.DepthColorizerEnabled;
            }
            base.OnApply(e);
        }
        // When user clicks on Apply in Options window, get the path selected from control and set it to property of this class so
        // that Visual Studio saves it.
        protected override void OnApply(DialogPage.PageApplyEventArgs e)
        {
            if (e.ApplyBehavior == ApplyKind.Apply)
            {
                if (NavBarEnabled != _optionsControl.NavBarEnabled)
                {
                    if (!SetNavigationBarConfig(_optionsControl.NavBarEnabled))
                    {
                        // Keep the dialog open in the case of errors
                        e.ApplyBehavior = ApplyKind.CancelNoNavigate;
                        base.OnApply(e);
                        return;
                    }

                    NavBarEnabled = _optionsControl.NavBarEnabled;
                    _navBarEnabledInAppConfig = _optionsControl.NavBarEnabled;
                }

                XmlDocEnabled = _optionsControl.XmlDocEnabled;
                FormattingEnabled = _optionsControl.FormattingEnabled;

                HighlightUsageEnabled = _optionsControl.HighlightUsageEnabled;
                HighlightPrintfUsageEnabled = _optionsControl.HighlightPrintfUsageEnabled;
                RenameRefactoringEnabled = _optionsControl.RenameRefactoringEnabled;
                DepthColorizerEnabled = _optionsControl.DepthColorizerEnabled;
                NavigateToEnabled = _optionsControl.NavigateToEnabled;
                SyntaxColoringEnabled = _optionsControl.SyntaxColoringEnabled;
                InterfaceImplementationEnabled = _optionsControl.InterfaceImplementationEnabled;
                FolderOrganizationEnabled = _optionsControl.FolderOrganizationEnabled;
                FindAllReferencesEnabled = _optionsControl.FindAllReferencesEnabled;
                GenerateRecordStubEnabled = _optionsControl.GenerateRecordStubEnabled;
                UnionPatternMatchCaseGenerationEnabled = _optionsControl.UnionPatternMatchCaseGenerationEnabled;
                ResolveUnopenedNamespacesEnabled = _optionsControl.ResolveUnopenedNamespacesEnabled;
                UnusedReferencesEnabled = _optionsControl.UnusedReferencesEnabled;
                UnusedOpensEnabled = _optionsControl.UnusedOpensEnabled;
                TaskListCommentsEnabled = _optionsControl.TaskListCommentsEnabled;
                GoToMetadataEnabled = _optionsControl.GoToMetadataEnabled;
                GenerateReferencesEnabled = _optionsControl.GenerateReferencesEnabled;
                GoToSymbolSourceEnabled = _optionsControl.GoToSymbolSourceEnabled;
                QuickInfoPanelEnabled = _optionsControl.QuickInfoPanelEnabled;
                LinterEnabled = _optionsControl.LinterEnabled;
                OutliningEnabled = _optionsControl.OutliningEnabled;
                PeekDefinitionEnabled = _optionsControl.PeekDefinitionEnabled;
            }

            base.OnApply(e);
        }
Beispiel #15
0
 protected override void OnApply(DialogPage.PageApplyEventArgs e)
 {
     base.OnApply(e);
     raisePropertyChanged();
 }
Beispiel #16
0
 /// <devdoc>
 ///     Create a new DialogSubclass
 /// </devdoc>
 internal DialogSubclass(DialogPage page)
 {
     _page = page;
     _closeCalled = false;
 }
Beispiel #17
0
 /// <devdoc>
 ///     Create a new DialogSubclass
 /// </devdoc>
 internal DialogSubclass(DialogPage page)
 {
     _page        = page;
     _closeCalled = false;
 }
        // When user clicks on Apply in Options window, get the path selected from control and set it to property of this class so         
        // that Visual Studio saves it.        
        protected override void OnApply(DialogPage.PageApplyEventArgs e)
        {
            if (e.ApplyBehavior == ApplyKind.Apply)
            {
                if (InterfaceMemberIdentifier != _optionsControl.InterfaceMemberIdentifier)
                {
                    if (!isValidIdentifier(_optionsControl.InterfaceMemberIdentifier))
                    {
                        // Keep the dialog open in the case of errors
                        e.ApplyBehavior = ApplyKind.CancelNoNavigate;
                        base.OnApply(e);
                        return;
                    }
                    InterfaceMemberIdentifier = _optionsControl.InterfaceMemberIdentifier;
                }

                DefaultBody = _optionsControl.DefaultBody;
                CodeGenerationOptions = _optionsControl.CodeGenerationOptions;
            }

            base.OnApply(e);
        }