private void btnEditSPAlt_Click(object sender, EventArgs e) { SparePartsInventoryfrm frm = new SparePartsInventoryfrm("EDIT", _vehicleBookingId, lstSPaltid); frm.ShowDialog(); txtSPAltInventoryId.Text = frm.Controls["lblSPInventoryId"].Text; if (txtSPAltInventoryId.Text != "" && txtSPAltInventoryId.Text != "lblSPInventoryId") { EnableEditForSPAllotment(); } }
private void sparePartsInventoryToolStripMenuItem1_Click(object sender, EventArgs e) { SparePartsInventoryfrm frm = new SparePartsInventoryfrm(); frm.ShowDialog(); }