Example #1
0
 /// <summary>
 /// Registers the specified attribute.
 /// </summary>
 /// <param name="attribute">The attribute.</param>
 public static void Register(AlertAttrib attribute)
 {
     Alert alert = new Alert(attribute);
     alert.Register();
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Alert"/> class.
 /// </summary>
 /// <param name="attribute">The alert attribute.</param>
 public Alert(AlertAttrib attribute)
 {
     this.alertAttrib = attribute;
 }