Beispiel #1
0
 /// <summary>
 /// On form closing
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frmPricingLevel_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         if (frmCustomerObj != null)
         {
             frmCustomerObj.ReturnFromPricingLevelForm(decPricingLevelId);
         }
         if (frmDeliveryNoteObj != null)
         {
             frmDeliveryNoteObj.ReturnFromPricingLevelForm(decPricingLevelId);
         }
         if (frmSalesReturnObj != null)
         {
             frmSalesReturnObj.ReturnFromPricingLevel(decIdforOtherForms);
         }
         if (frmSalesInvoiceObj != null)
         {
             frmSalesInvoiceObj.ReturnFromPricingLevel(decIdforOtherForms);
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "PL20" + ex.Message;
     }
 }
Beispiel #2
0
 /// <summary>
 /// On form closing
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frmPricingLevel_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         if (frmCustomerObj != null)
         {
             frmCustomerObj.ReturnFromPricingLevelForm(decPricingLevelId);
         }
         if (frmDeliveryNoteObj != null)
         {
             frmDeliveryNoteObj.ReturnFromPricingLevelForm(decPricingLevelId);
         }
         if (frmSalesReturnObj != null)
         {
             frmSalesReturnObj.ReturnFromPricingLevel(decIdforOtherForms);
         }
         if (frmSalesInvoiceObj != null)
         {
             frmSalesInvoiceObj.ReturnFromPricingLevel(decIdforOtherForms);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("PL23" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }