Beispiel #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            //if (this.dgvList.SelectedRows.Count == 0) return;
            //string strBlh = this.dgvList.SelectedRows[0].Cells["BLM"].Value.ToString();
            //if (string.IsNullOrEmpty(strBlh)) return;
            if (this.dgvList.SelectedRows.Count == 0)
            {
                MessageBox.Show("ÇëÏȲéѯÈÕÖ¾¼Ç¼£¡", "Ìáʾ", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            DataRowView drv       = this.dgvList.SelectedRows[0].DataBoundItem as DataRowView;
            MZ_RZ       frmAction = new MZ_RZ(_chineseName, _menuTag, drv.Row);

            frmAction.ShowDialog();
            btnFind_Click(null, null);
        }
Beispiel #2
0
        private void dgvList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            string strBlh = this.dgvList.SelectedRows[0].Cells["BLM"].Value.ToString();

            if (string.IsNullOrEmpty(strBlh))
            {
                return;
            }
            if (this.dgvList.SelectedRows.Count == 0)
            {
                return;
            }

            DataRowView drv       = this.dgvList.SelectedRows[0].DataBoundItem as DataRowView;
            MZ_RZ       frmAction = new MZ_RZ(_chineseName, _menuTag, strBlh);

            frmAction.ShowDialog();
            btnFind_Click(null, null);
        }