public void Exec(string commandName, vsCommandExecOption executeOption, ref object varIn, ref object varOut, ref bool handled) { handled = false; if (executeOption == vsCommandExecOption.vsCommandExecOptionDoDefault) { if (commandName.Equals("PoorMansTSqlFormatterSSMSAddIn.AddinConnector.FormatSelectionOrActiveWindow")) { _SSMSHelper.FormatSqlInTextDoc(_applicationObject); } else if (commandName.Equals("PoorMansTSqlFormatterSSMSAddIn.AddinConnector.FormattingOptions")) { _SSMSHelper.GetUpdatedFormattingOptionsFromUser(); } handled = true; } }
private void SqlOptionsCallback(object sender, EventArgs e) { _SSMSHelper.GetUpdatedFormattingOptionsFromUser(); }