Пример #1
0
        private void btnTargets_Click(object sender, EventArgs e)
        {
            Byte[] PageID = new Byte[4];
            if (dgvKey.SelectedRows != null && dgvKey.SelectedRows.Count > 0)
            {
                PageID[0] = (Byte)dgvKey.SelectedRows[0].Index;
            }
            frmCmdSetup CmdSetup = new frmCmdSetup(MyMHIC, myDevName, MyDeviceType, PageID);

            CmdSetup.Show();
        }
Пример #2
0
        private void btnCMD_Click(object sender, EventArgs e)
        {
            Byte[] PageID = new Byte[4];
            if (dgvRfbuttons.SelectedRows != null && dgvRfbuttons.SelectedRows.Count != 0)
            {
                PageID[0] = (Byte)dgvRfbuttons.SelectedRows[0].Index;
            }
            PageID[1] = (Byte)cboPages.SelectedIndex;
            PageID[2] = (Byte)cboController.SelectedIndex;
            PageID[3] = 6;

            frmCmdSetup CmdSetup = new frmCmdSetup(myIPModule, myDevName, mywdDevicerType, PageID);

            CmdSetup.ShowDialog();
        }