private void closeBtn_Click(object sender, EventArgs e) { add_Product = new add_product(); this.Close(); add_Product.Show(); }
private void button1_Click(object sender, EventArgs e) { add_Product = new add_product(); add_Product._ID = Convert.ToInt32(dgvProduct.CurrentRow.Cells[0].Value.ToString()); add_Product.saveBtn.Text = "Update"; add_Product.saveBtn.ImageKey = "update.png"; add_Product.Text = "Update Product"; add_Product.Show(); FillGrid(); this.Close(); }
public product_transactions() { InitializeComponent(); add_Product = new add_product(); }