Exemple #1
0
        public void Check(CheckArgs opt)
        {
            var exists = Processor.Hosts.ContainsKey(opt.Name);

            var existsMessage = exists ? "exists " : "does not exist ";

            opt.Result.Message = string.Format("host entry {0} for {1} @ {2}", existsMessage, opt.Name, opt.Address);
        }
Exemple #2
0
 public CustomCheckedItemInfo(CheckedItemInfo info)
     : this(info.Bounds, info.Item, info.Text, info.Index, info.CheckArgs.CheckState, info.Enabled)
 {
     CheckArgs.Assign(info.CheckArgs);
     TextRect = info.TextRect;
 }