コード例 #1
0
ファイル: FormGroupList.cs プロジェクト: ArseneLupinhb/CSharp
        private void btnModify_Click(object sender, EventArgs e)
        {
            int id = 0;

            try
            {
                id = (int)dgvGroupList.CurrentRow.Cells[0].Value;
            }
            catch (System.Exception ex)
            {
                MessageBox.Show("请选择有效数据行!");
                return;
            }
            FormGroupDetail f = new FormGroupDetail(id);

            f.ShowDialog();
            Fill();
        }
コード例 #2
0
ファイル: FormGroupList.cs プロジェクト: ArseneLupinhb/CSharp
        private void dgvGroupList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int id = 0;

            try
            {
                id = (int)dgvGroupList.CurrentRow.Cells[0].Value;
            }
            catch (System.Exception ex)
            {
                MessageBox.Show("请双击有效数据行!");
                return;
            }
            FormGroupDetail f = new FormGroupDetail(id);

            f.ShowDialog();
            Fill();
        }