Ejemplo n.º 1
0
 public ToolAlert(string name, AlertIdent[] alertIdent)
 {
     if (string.IsNullOrEmpty(name)) throw new ArgumentException("ToolAlert must have a name node.");
     if ((alertIdent == null) || (alertIdent.Length == 0))
         throw new ArgumentException("ToolAlert must have at least one alertident node.");
     this.name = name;
     this.alertIdent = alertIdent;
 }
Ejemplo n.º 2
0
 public ToolAlert(string name, string command, AlertIdent[] alertIdent)
     : this(name, alertIdent)
 {
     this.command = command;
 }