diff --git a/SSMSObjectExplorerMenu.cs b/SSMSObjectExplorerMenu.cs index 95ea7de..d65e80d 100644 --- a/SSMSObjectExplorerMenu.cs +++ b/SSMSObjectExplorerMenu.cs @@ -157,8 +157,7 @@ private void Add_Click(object sender, EventArgs e) } else if (d == DialogResult.Abort) //this is misleading. Abort is returned when the Options button is pressed { - DTE2 dte = (DTE2)this.GetService(typeof(DTE)); - dte?.ExecuteCommand("Tools.Options"); + this.ShowOptionPage(typeof(OptionsDialogPage)); } }