Example #1
0
        private void dg1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            string rID = string.Empty;

            rID = dg1[colNum, dg1.SelectedRows[0].Index].Value.ToString();

            if (rID != string.Empty)
            {
                this.Hide();
                OCR.frmPastData frm = new OCR.frmPastData(Utility.StrtoInt(rID), Utility.StrtoInt(txtYear.Text), Utility.StrtoInt(txtMonth.Text));
                frm.ShowDialog();
                this.Show();
            }
        }
Example #2
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            string rID = string.Empty;

            rID = dataGridView1[ColID, dataGridView1.SelectedRows[0].Index].Value.ToString();

            if (rID != string.Empty)
            {
                this.Hide();
                OCR.frmPastData frm = new OCR.frmPastData(rID);
                frm.ShowDialog();
                this.Show();
            }
        }