public query_window create_query_window() { EnvDTE.TextDocument doc; VSI.ServiceCache.ScriptFactory.CreateNewBlankScript(VSI.Editors.ScriptType.Sql); doc = (EnvDTE.TextDocument)VSI.ServiceCache.ExtensibilityModel.Application.ActiveDocument.Object(null); doc.EndPoint.CreateEditPoint().Insert(""); query_window queryWindow = new query_window(); queryWindow.set_doc(VSI.ServiceCache.ExtensibilityModel.ActiveDocument); return(queryWindow); }
public query_window query_windows(int index) { return(_ssms.DTE2.Documents.Item(index) == null ? null : _working_query_window.set_doc(_ssms.DTE2.ActiveDocument)); }