예제 #1
0
 public Node(string nameOrIp, HostValidator validator)
 {
     IPAddresses = new List<uint>();
     PingReplies = new List<NodePingReply>();
     Name = nameOrIp;
     validator.Nodes.Add(this);
 }
예제 #2
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     validator = new HostValidator();
     var node = new Node("google.com", validator);
     validator.DataTable.RowChanged += DataTable_RowChanged;
     validator.DataTable.TableNewRow += DataTable_TableNewRow;
     validator.DataTable.TableCleared += DataTable_TableCleared;
     validator.DataTable.RowDeleted += DataTable_RowDeleted;
     new Node("192.168.1.1", validator);
     new Node("yahoo.com", validator);
     new Node("microsoft.com", validator);
 }