コード例 #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;
 }
コード例 #2
0
 public ToolAlert(string name, string command, AlertIdent[] alertIdent)
     : this(name, alertIdent)
 {
     this.command = command;
 }