private void btnStockEntryManual_Click(object sender, EventArgs e) { StockEntry frmStockEntry = new StockEntry(); frmStockEntry.OnClose += new Action(ShowDitails); frmStockEntry.ShowDialog(); }
private void btnAddServicesAndGoods_Click(object sender, EventArgs e) { if (CheckForStockUpdate()) { StockEntry frmStockEntry = new StockEntry(""); frmStockEntry.OnClose += new Action(ShowDitails); frmStockEntry.ShowDialog(); } else { MessageBox.Show("Purchase bill not found for stock update.", "Stock Update", MessageBoxButtons.OK, MessageBoxIcon.Information); } }