Ejemplo n.º 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmFoodDetails f2 = new frmFoodDetails();

            f2.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            int            rowIndex   = dgvFood.CurrentCell.RowIndex;
            int            primaryKey = Convert.ToInt32(dgvFood.Rows[rowIndex].Cells[2].Value);
            frmFoodDetails f2         = new frmFoodDetails(primaryKey);

            f2.Show();
            this.Hide();
        }