private void btnStockIn_Click(object sender, EventArgs e) { CloseAll(); frmStockIn fmstkin = new frmStockIn(); fmstkin.MdiParent = this; fmstkin.Show(); }
private void btnAdd_Click(object sender, EventArgs e) { frmStockIn fmAdd = new frmStockIn(); fmAdd.MdiParent = this.MdiParent; fmAdd.Show(); this.Close(); }
void EditData() { if (dgDisplayData.SelectedRows.Count > 0) { int ID = 0; int.TryParse(dgDisplayData.CurrentRow.Cells["T007_STOCKINMASTERID"].Value.ToString(), out ID); Datalayer.iT005_STOCKINID = ID; frmStockIn frmAddSTD = new frmStockIn(); frmAddSTD.MdiParent = this.MdiParent; frmAddSTD.Show(); this.Close(); } else { Datalayer.InformationMessageBox(Datalayer.sMeessgeSelection); } }