Esempio n. 1
0
        private void mnuRegAdd_Click(object sender, EventArgs e)
        {
            global.devItem.edit      = false;
            global.devItem.devIdx    = -1;
            global.devItem.packetIdx = -1;
            global.devItem.regIdx    = -1;

            formReg = new frmReg();
            if (formReg.ShowDialog() == DialogResult.OK)
            {
                showDev();
            }
        }
Esempio n. 2
0
        private void mnuRegCopy_Click(object sender, EventArgs e)
        {
            try
            {
                global.devItem.edit = false;
                tRegLocation index = global.findReg(((reg_t)olvRegisters.SelectedItem.RowObject).GUID);
                global.devItem.devIdx    = index.devIdx;
                global.devItem.packetIdx = index.pacIdx;
                global.devItem.regIdx    = index.regIdx;

                formReg = new frmReg();
                if (formReg.ShowDialog() == DialogResult.OK)
                {
                    showDev();
                }
            }
            catch (Exception) { }
        }