Beispiel #1
0
        private void mnuPacAdd_Click(object sender, EventArgs e)
        {
            global.devItem.edit      = false;
            global.devItem.devIdx    = -1;
            global.devItem.packetIdx = -1;

            formPacket = new frmPacket();
            if (formPacket.ShowDialog() == DialogResult.OK)
            {
                showDev();
            }
        }
Beispiel #2
0
        private void mnuPacDuplicate_Click(object sender, EventArgs e)
        {
            global.devItem.edit = false;
            tRegLocation index = global.findPacket(((packet_t)olvPacket.SelectedItem.RowObject).GUID);

            global.devItem.devIdx    = index.devIdx;
            global.devItem.packetIdx = index.pacIdx;
            global.devItem.regIdx    = index.regIdx;

            formPacket = new frmPacket();
            if (formPacket.ShowDialog() == DialogResult.OK)
            {
                showDev();
            }
        }