Exemple #1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count == 0)
            {
                MessageBox.Show("请先选中某一通道,或双击某一通道即可设定");
            }
            Form f = new NIChannelSetForm(dataGridView1.CurrentRow.Index + 1);

            if (f.ShowDialog() == DialogResult.OK)
            {
                DataTable dt = DAL.NIChannelSettingDataDBOption.DataTableSelect();
                dataGridView1.DataSource = dt;
            }
        }
Exemple #2
0
        private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.RowIndex < 0 || e.RowIndex > 63)
            {
                return;
            }
            Form f = new NIChannelSetForm(e.RowIndex + 1);

            if (f.ShowDialog() == DialogResult.OK)
            {
                DataTable dt = DAL.NIChannelSettingDataDBOption.DataTableSelect();
                dataGridView1.DataSource = dt;
            }
        }