예제 #1
0
 /// <summary>
 /// On form closing
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frmAccountGroupwiseReport_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         if (frmAccountGroupReportObj != null)
         {
             frmAccountGroupReportObj.Enabled = true;
             frmAccountGroupReportObj.BringToFront();
         }
         if (ObjfrmProfitAndLoss != null)
         {
             ObjfrmProfitAndLoss.Enabled = true;
             ObjfrmProfitAndLoss.BringToFront();
         }
         if (frmCashFlowObj != null)
         {
             frmCashFlowObj.Enabled = true;
             frmCashFlowObj.BringToFront();
         }
         if (objfrmBalancesheet != null)
         {
             objfrmBalancesheet.Enabled = true;
             objfrmBalancesheet.BringToFront();
             objfrmBalancesheet.FillGrid();
         }
         if (objfrmFundFlow != null)
         {
             objfrmFundFlow.Enabled = true;
             objfrmFundFlow.BringToFront();
         }
         if (frmTrialBalanceObj != null)
         {
             frmTrialBalanceObj.Enabled = true;
             frmTrialBalanceObj.GridFill();
             frmTrialBalanceObj.BringToFront();
         }
         if (objCashBankBookReport != null)
         {
             objCashBankBookReport.Enabled = true;
             objCashBankBookReport.BringToFront();
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "AGWREP23:" + ex.Message;
     }
 }
 /// <summary>
 /// On form closing
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frmAccountGroupwiseReport_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         if (frmAccountGroupReportObj != null)
         {
             frmAccountGroupReportObj.Enabled = true;
             frmAccountGroupReportObj.BringToFront();
         }
         if (ObjfrmProfitAndLoss != null)
         {
             ObjfrmProfitAndLoss.Enabled = true;
             ObjfrmProfitAndLoss.BringToFront();
         }
         if (frmCashFlowObj != null)
         {
             frmCashFlowObj.Enabled = true;
             frmCashFlowObj.BringToFront();
         }
         if (objfrmBalancesheet != null)
         {
             objfrmBalancesheet.Enabled = true;
             objfrmBalancesheet.BringToFront();
             objfrmBalancesheet.FillGrid();
         }
         if (objfrmFundFlow != null)
         {
             objfrmFundFlow.Enabled = true;
             objfrmFundFlow.BringToFront();
         }
         if (frmTrialBalanceObj != null)
         {
             frmTrialBalanceObj.Enabled = true;
             frmTrialBalanceObj.GridFill();
             frmTrialBalanceObj.BringToFront();
         }
         if (objCashBankBookReport != null)
         {
             objCashBankBookReport.Enabled = true;
             objCashBankBookReport.BringToFront();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("AGWREP23:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }