コード例 #1
0
 private void button27_Click(object sender, System.EventArgs e)
 {
     VrpForm vrpForm = new VrpForm();
     if (vrpForm.ShowDialog() == DialogResult.OK)
     {
         Protocol protocol = vrpForm.Vrp.ToProtocol();
         _baseWorker.AddVrp(protocol, "Routing_Protocols");
         RefreshProtocols();
     }
 }
コード例 #2
0
 private void button24_Click(object sender, System.EventArgs e)
 {
     VrpForm vrpForm = new VrpForm();
     if (vrpForm.ShowDialog() == DialogResult.OK)
     {
         Vlan vlan = vrpForm.Vrp.ToVlan();
         _baseWorker.AddVrp(vlan, "Vlan");
         RefreshVlan();
     }
 }
コード例 #3
0
 private void button26_Click(object sender, System.EventArgs e)
 {
     Protocol old = protocolListBox.SelectedItem as Protocol;
     if (old == null)
     {
         return;
     }
     VrpForm vrpForm = new VrpForm(old);
     if (vrpForm.ShowDialog() == DialogResult.OK)
     {
         Protocol newVrp = vrpForm.Vrp.ToProtocol();
         _baseWorker.ChangeVrp(old, newVrp, "Routing_Protocols");
         RefreshProtocols();
     }
 }
コード例 #4
0
 private void button23_Click(object sender, System.EventArgs e)
 {
     Vlan old = vlanListBox.SelectedItem as Vlan;
     if (old == null)
     {
         return;
     }
     VrpForm vrpForm = new VrpForm(old);
     if (vrpForm.ShowDialog() == DialogResult.OK)
     {
         Vlan newVrp = vrpForm.Vrp.ToVlan();
         _baseWorker.ChangeVrp(old, newVrp, "Vlan");
         RefreshVlan();
     }
 }