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; }
public ToolAlert(string name, string command, AlertIdent[] alertIdent) : this(name, alertIdent) { this.command = command; }