Ejemplo n.º 1
0
 /// <summary>
 /// when form closing check the other forms is opend then pass the created area's id
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frmArea_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         if (frmCustomerobj != null)
         {
             frmCustomerobj.ReturnFromAreaForm(decIdForOtherForms);
         }
         if (frmRouteObj != null)
         {
             frmRouteObj.ReturnFromAreaForm(decIdForOtherForms);
             frmRouteObj.Enabled = true;
         }
         if (frmSupplierobj != null)
         {
             frmSupplierobj.ReturnFromAreaForm(decIdForOtherForms);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("AR15:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// when form closing check the other forms is opend then pass the created area's id
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frmArea_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         if (frmCustomerobj != null)
         {
             frmCustomerobj.ReturnFromAreaForm(decIdForOtherForms);
         }
         if (frmRouteObj != null)
         {
             frmRouteObj.ReturnFromAreaForm(decIdForOtherForms);
             frmRouteObj.Enabled = true;
         }
         if (frmSupplierobj != null)
         {
             frmSupplierobj.ReturnFromAreaForm(decIdForOtherForms);
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "AR15:" + ex.Message;
     }
 }