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