public override bool CanExecute() { return( AddIn.IsCurrentDocumentExtension("sql") && AddIn.CurrentSelection == "" && AddIn.CurrentWord != "" ); }
public override bool CanExecute() { try { return(AddIn.IsCurrentDocumentExtension("sql") && AddIn.CurrentSelection == String.Empty); } catch (Exception ex) { AddIn.Error(ex); return(false); } }
public override bool CanExecute() { return(AddIn.IsCurrentDocumentExtension("sql") && AddIn.AllText.Length > 0); }
public override bool CanExecute() { return(AddIn.IsCurrentDocumentExtension("sql")); }
public override bool CanExecute() { return(AddIn.IsCurrentDocumentExtension("sql") && AddIn.CurrentSelection == String.Empty); }