/// <summary> /// Enabling objects of other forms on form closing /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void frmLedgerDetails_FormClosing(object sender, FormClosingEventArgs e) { try { if (frmAccountGroupwiseReportObj != null) { frmAccountGroupwiseReportObj.Enabled = true; frmAccountGroupwiseReportObj.Activate(); } if (frmAccountLedgerReportObj != null) { frmAccountLedgerReportObj.Enabled = true; } if (frmAgeingObj != null) { frmAgeingObj.Enabled = true; frmAgeingObj.FillGrid(); frmAgeingObj.Activate(); } } catch (Exception ex) { MessageBox.Show("LEDDET9:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Enabling objects of other forms on form closing /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void frmLedgerDetails_FormClosing(object sender, FormClosingEventArgs e) { try { if (frmAccountGroupwiseReportObj != null) { frmAccountGroupwiseReportObj.Enabled = true; frmAccountGroupwiseReportObj.Activate(); } if (frmAccountLedgerReportObj != null) { frmAccountLedgerReportObj.Enabled = true; } if (frmAgeingObj != null) { frmAgeingObj.Enabled = true; frmAgeingObj.FillGrid(); frmAgeingObj.Activate(); } } catch (Exception ex) { formMDI.infoError.ErrorString = "LEDDET9:" + ex.Message; } }