private void buttonRemoveRouter_Click(object sender, EventArgs e)
 {
     try
     {
         Net.RemoveRouter(int.Parse(textBoxRouterId.Text));
         RouterForm rf = (RouterForm)RoutersForms.First(x => x.Text == textBoxRouterId.Text);
         rf.Close();
         RoutersForms.Remove(rf);
         RefreshRouters();
     }
     catch (Exception exc)
     {
         MessageBox.Show(exc.Message);
     }
 }
 private void buttonAddRouter_Click(object sender, EventArgs e)
 {
     try
     {
         int        id = int.Parse(textBoxRouterId.Text);
         RouterForm rf = new RouterForm(Net.AddRouter(id));
         RoutersForms.Add(rf);
         rf.Show();
         textBoxRouterId.Text = (id + 1).ToString();
     }
     catch (Exception exc)
     {
         MessageBox.Show(exc.Message);
     }
 }