From 7848f0d3b0d7efd610bbcf3d3a92d56be3cd700e Mon Sep 17 00:00:00 2001 From: Vitalii Ganzha Date: Tue, 5 Jan 2016 23:13:14 -0800 Subject: [PATCH] finished issue #5 & #7 --- VsDingExtensionProject/SoundSelectControl.cs | 2 +- VsDingExtensionProject/SoundsSelectOptionsPage.cs | 2 ++ VsDingExtensionProject/VsDingExtensionProjectPackage.cs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/VsDingExtensionProject/SoundSelectControl.cs b/VsDingExtensionProject/SoundSelectControl.cs index 86a9085..41a3260 100644 --- a/VsDingExtensionProject/SoundSelectControl.cs +++ b/VsDingExtensionProject/SoundSelectControl.cs @@ -14,7 +14,7 @@ namespace VitaliiGanzha.VsDingExtension { private SoundsSelectOptionsPage optionsPage; - internal SoundsSelectOptionsPage OptionsPage + public SoundsSelectOptionsPage OptionsPage { get { return this.optionsPage; } set diff --git a/VsDingExtensionProject/SoundsSelectOptionsPage.cs b/VsDingExtensionProject/SoundsSelectOptionsPage.cs index 93be1e3..4e47084 100644 --- a/VsDingExtensionProject/SoundsSelectOptionsPage.cs +++ b/VsDingExtensionProject/SoundsSelectOptionsPage.cs @@ -63,6 +63,7 @@ namespace VitaliiGanzha.VsDingExtension { this.OnApplyHandler(); } + base.OnApply(e); } protected override void OnActivate(CancelEventArgs cancelEventArgs) @@ -71,6 +72,7 @@ namespace VitaliiGanzha.VsDingExtension { this.OnActivateHandler(); } + base.OnActivate(cancelEventArgs); } [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] diff --git a/VsDingExtensionProject/VsDingExtensionProjectPackage.cs b/VsDingExtensionProject/VsDingExtensionProjectPackage.cs index 31f9709..60bfb9e 100644 --- a/VsDingExtensionProject/VsDingExtensionProjectPackage.cs +++ b/VsDingExtensionProject/VsDingExtensionProjectPackage.cs @@ -19,7 +19,7 @@ namespace VitaliiGanzha.VsDingExtension [Guid(GuidList.guidVsDingExtensionProjectPkgString)] [ProvideAutoLoad("{f1536ef8-92ec-443c-9ed7-fdadf150da82}")] [ProvideOptionPage(typeof(OptionsDialog), "Ding", "General settings", 0, 0, true)] - [ProvideOptionPage(typeof(SoundsSelectOptionsPage), "Ding", "Overrride sounds", 100, 102, true, new string[] { "Change custom sounds" })] + [ProvideOptionPage(typeof(SoundsSelectOptionsPage), "Ding", "Overrride sounds", 0, 0, true)] public sealed class VsDingExtensionProjectPackage : Package, IDisposable { private DTE2 applicationObject;