/// <summary> /// On form closing /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void frmRack_FormClosing(object sender, FormClosingEventArgs e) { try { if (frmProductCreationObj != null) { frmProductCreationObj.ReturnFromRackForm(decIdForOtherForms); groupBox2.Enabled = true; cmbGodown.Enabled = true; frmProductCreationObj.Enabled = true; } if (frmMultipleProductCreationObj != null) //Coded by shihab { frmMultipleProductCreationObj.ReturnFromRackForm(decIdForOtherForms); } } catch (Exception ex) { MessageBox.Show("R11:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// On form closing /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void frmRack_FormClosing(object sender, FormClosingEventArgs e) { try { if (frmProductCreationObj != null) { frmProductCreationObj.ReturnFromRackForm(decIdForOtherForms); groupBox2.Enabled = true; cmbGodown.Enabled = true; frmProductCreationObj.Enabled = true; } if (frmMultipleProductCreationObj != null) //Coded by shihab { frmMultipleProductCreationObj.ReturnFromRackForm(decIdForOtherForms); } } catch (Exception ex) { formMDI.infoError.ErrorString = "R24:" + ex.Message; } }