Exemplo n.º 1
0
 /// <summary>
 /// On form closing
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frmRoute_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         if (frmCustomerobj != null)  //Coded by Fahad
         {
             frmCustomerobj.ReturnFromRouteForm(decRoute);
         }
         if (frmSupplierobj != null)  //Coded by Neiluffer Shama
         {
             frmSupplierobj.ReturnFromRoutForm(decRoute);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("RT26" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// On form closing
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frmRoute_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         if (frmCustomerobj != null)  //Coded by Fahad
         {
             frmCustomerobj.ReturnFromRouteForm(decRoute);
         }
         if (frmSupplierobj != null)  //Coded by Neiluffer Shama
         {
             frmSupplierobj.ReturnFromRoutForm(decRoute);
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "RT23" + ex.Message;
     }
 }