Esempio n. 1
0
        private void dgvMemberSelect_DoubleClick(object sender, EventArgs e)
        {
            long         PKID = long.Parse(dgvMemberSelect[0, dgvMemberSelect.CurrentCell.RowIndex].Value.ToString());
            frmNewRental frm  = new frmNewRental(PKID);

            frm.ShowDialog();
            this.Close();
        }
Esempio n. 2
0
        private void btnSelectMember_Click(object sender, EventArgs e)
        {
            if (dgvMemberSelect.CurrentCell == null)
            {
                return;
            }

            long         PKID = long.Parse(dgvMemberSelect[0, dgvMemberSelect.CurrentCell.RowIndex].Value.ToString());
            frmNewRental frm  = new frmNewRental(PKID);

            frm.ShowDialog();
            this.Close();
        }