static void TemplateFoldersChanged(object sender, EventArgs e)
 {
     try {
         TemplatingOutputPad.Clear();
         templatingEngine.ReloadTemplates();
     } catch (Exception ex) {
         LogError("Unable to reset template cache.", ex);
     }
 }
 public static void LogInfo(string message)
 {
     TemplatingOutputPad.WriteText(message);
 }
 public static void LogError(string message, Exception ex)
 {
     LoggingService.LogError(message, ex);
     TemplatingOutputPad.WriteError(message + " " + ex);
 }