Exemplo n.º 1
0
        private void btnAddBrand_Click(object sender, EventArgs e)
        {
            frmAddBrand frm = new frmAddBrand();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                PopulateGrid();
            }
        }
Exemplo n.º 2
0
        private void dgvBrands_DoubleClick(object sender, EventArgs e)
        {
            if (dgvBrands.CurrentCell == null)
            {
                return;
            }

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

            if (frm.ShowDialog() == DialogResult.OK)
            {
                PopulateGrid();
            }
        }