コード例 #1
0
        private void grdFreqs_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            double nfreq = (double)grdFreqs[2, e.RowIndex].Value;

            telive.receiver rx   = telive.rxs.FirstOrDefault(w => w.mode == telive.rx_mode.OFF);
            ushort          rxid = (rx != null ? rx.id : (ushort)0);
            frmTune         ft   = new frmTune(rxid, nfreq);

            ft.Show();
        }
コード例 #2
0
        private void grdRXs_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            ushort rxid = 0;

            if (e.RowIndex != -1)
            {
                rxid = (ushort)grdRXs[0, e.RowIndex].Value;
            }
            switch (e.ColumnIndex)
            {
            case 2:
                frmTune ft = new frmTune(rxid, 0);
                ft.Show();
                break;

            case 5:
                frmMode fm = new frmMode(rxid);
                fm.Show();
                break;
            }
        }