Exemple #1
0
 /// <summary>
 /// On Form closing activates the frmProductSearch
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frmProductDetails_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         if (frmProductSearchObj != null)
         {
             frmProductSearchObj.Enabled = true;
             frmProductSearchObj.ProductSearchGridFill();
             frmProductSearchObj.Activate();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("PD :03" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Exemple #2
0
 /// <summary>
 /// On Form closing activates the frmProductSearch
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frmProductDetails_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         if (frmProductSearchObj != null)
         {
             frmProductSearchObj.Enabled = true;
             frmProductSearchObj.ProductSearchGridFill();
             frmProductSearchObj.Activate();
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "PD :03" + ex.Message;
     }
 }