Ejemplo n.º 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            Form         frm = new EditSwitchForm();
            DialogResult dr  = frm.ShowDialog(this);

            if (dr == DialogResult.OK)
            {
                update = true;
                populateListData();
            }
        }
Ejemplo n.º 2
0
        private void editSwitchNode()
        {
            SwitchInfo sw = getSwitch(treeView1.SelectedNode.Name);

            Form         frm = new EditSwitchForm(sw);
            DialogResult dr  = frm.ShowDialog(this);

            if (dr == DialogResult.OK)
            {
                populateTabData();
                switchUpdated = true;
            }
        }
Ejemplo n.º 3
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedItems == null || listView1.SelectedItems.Count < 1)
            {
                return;
            }

            SwitchInfo sw = MainForm.getSwitch(listView1.SelectedItems[0].SubItems[0].Text);

            Form         frm = new EditSwitchForm(sw);
            DialogResult dr  = frm.ShowDialog(this);

            if (dr == DialogResult.OK)
            {
                update = true;
                populateListData();
            }
        }