public static void editNSG(VSDSession session, Enterprise enterprise, NSGateway nsg) { NSGView nv = new NSGView(); nv.session = session; nv.enterprise = enterprise; nv.nsg = nsg; nv.ShowDialog(); }
public static void createNSG(VSDSession session, Enterprise enterprise) { NSGView nv = new NSGView(); nv.session = session; nv.enterprise = enterprise; nv.ShowDialog(); }
private void button7_Click(object sender, EventArgs e) { if (listBox1.SelectedItem == null) { return; } NSGateway nsg = new NSGateway(); nsg.NUId = ((ComboboxItem)listBox1.SelectedItem).Id; nsg.fetch(this.session); NSGView.editNSG(this.session, this.enterprise, nsg); updateNSGs(); }
private void button6_Click(object sender, EventArgs e) { NSGView.createNSG(this.session, this.enterprise); this.updateNSGs(); }