private void AddProductButton_Click(object sender, EventArgs e) { AddProductForm formAddP = new AddProductForm(this); formAddP.GetContext = 1; formAddP.Show(); fillDGP(docID); }
private void UpdateAddProductButton_Click(object sender, EventArgs e) { AddProductForm formAddP = new AddProductForm(this); formAddP.GetContext = 2; formAddP.GetUpdateDocId = DocId; formAddP.Show(); }