Example #1
0
 /// <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));
 }
Example #2
0
 /// <summary>
 /// Deletes the template by name.
 /// </summary>
 /// <param name="template">Template.</param>
 static public void DeleteTemplate(string template)
 {
     Templates.Delete(template);
 }
Example #3
0
 /// <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);
 }
Example #4
0
 /// <summary>
 /// Clears the cached instance of specified template.
 /// </summary>
 /// <param name="templateName">Template name.</param>
 static public void ClearCache(string templateName)
 {
     Templates.ClearCache(templateName);
 }
Example #5
0
 /// <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));
 }
Example #6
0
 /// <summary>
 /// Clears the cached instance of templates.
 /// </summary>
 static public void ClearCache()
 {
     Templates.ClearCache();
 }
Example #7
0
 /// <summary>
 /// Finds the templates.
 /// </summary>
 static void FindTemplates()
 {
     Templates.FindTemplates();
 }
Example #8
0
 /// <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));
 }
Example #9
0
 /// <summary>
 /// Finds the templates.
 /// </summary>
 static protected void FindTemplates()
 {
     Templates.FindTemplates();
 }
Example #10
0
 static void StaticInit()
 {
     Templates = new Templates <ModalHelper>();
     used.Clear();
     key = "ModalTemplate";
 }