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

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

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