/// <summary> /// Return notification by the specified template name. /// </summary> /// <param name="template">Template name.</param> static public Notify Template(string template) { return(Templates.Instance(template)); }
/// <summary> /// Deletes the template by name. /// </summary> /// <param name="template">Template.</param> static public void DeleteTemplate(string template) { Templates.Delete(template); }
/// <summary> /// Adds the template. /// </summary> /// <param name="template">Template name.</param> /// <param name="notifyTemplate">Notify template object.</param> /// <param name="replace">If set to <c>true</c> replace.</param> static public void AddTemplate(string template, Notify notifyTemplate, bool replace = true) { Templates.Add(template, notifyTemplate, replace); }
/// <summary> /// Clears the cached instance of specified template. /// </summary> /// <param name="templateName">Template name.</param> static public void ClearCache(string templateName) { Templates.ClearCache(templateName); }
/// <summary> /// Gets the template by name. /// </summary> /// <returns>The template.</returns> /// <param name="template">Template name.</param> static public Notify GetTemplate(string template) { return(Templates.Get(template)); }
/// <summary> /// Clears the cached instance of templates. /// </summary> static public void ClearCache() { Templates.ClearCache(); }
/// <summary> /// Finds the templates. /// </summary> static void FindTemplates() { Templates.FindTemplates(); }
/// <summary> /// Return notification by the specified template name. /// </summary> /// <param name="templateName">Template name.</param> static public Notify Clone(string templateName) { return(Templates.Instance(templateName)); }
/// <summary> /// Finds the templates. /// </summary> static protected void FindTemplates() { Templates.FindTemplates(); }
static void StaticInit() { Templates = new Templates <ModalHelper>(); used.Clear(); key = "ModalTemplate"; }