Exemple #1
0
        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();
        }
Exemple #2
0
        public static void createNSG(VSDSession session, Enterprise enterprise)
        {
            NSGView nv = new NSGView();

            nv.session    = session;
            nv.enterprise = enterprise;

            nv.ShowDialog();
        }
Exemple #3
0
        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();
        }
Exemple #4
0
 private void button6_Click(object sender, EventArgs e)
 {
     NSGView.createNSG(this.session, this.enterprise);
     this.updateNSGs();
 }