Example #1
0
        private void dgvGeneral_DoubleClick(object sender, EventArgs e)
        {
            long lngPKID = 0;
            frmProducts frm;

            if (dgvGeneral["ProductsID", dgvGeneral.CurrentCell.RowIndex].Value.ToString() != "")
            {
                lngPKID = long.Parse(dgvGeneral["ProductsID",
                                    dgvGeneral.CurrentCell.RowIndex].Value.ToString());
                frm = new frmProducts(lngPKID);
            }
            else
                frm = new frmProducts();

            frm.ShowDialog();
        }
Example #2
0
        private void dgvGeneral_DoubleClick(object sender, EventArgs e)
        {
            long        lngPKID = 0;
            frmProducts frm;

            if (dgvGeneral["ProductsID", dgvGeneral.CurrentCell.RowIndex].Value.ToString() != "")
            {
                lngPKID = long.Parse(dgvGeneral["ProductsID",
                                                dgvGeneral.CurrentCell.RowIndex].Value.ToString());
                frm = new frmProducts(lngPKID);
            }
            else
            {
                frm = new frmProducts();
            }

            frm.ShowDialog();
        }
Example #3
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmProducts frm = new frmProducts();

            frm.ShowDialog();
        }
Example #4
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     frmProducts frm = new frmProducts();
     frm.ShowDialog();
 }