/// <summary>
 /// Enables the objects of other forms on form closing
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frmStock_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         if (frmReminderPopupObj != null)
         {
             frmReminderPopupObj.Enabled = true;
             frmReminderPopupObj.Activate();
             frmReminderPopupObj.BringToFront();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("ST:21" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Enables objects of other forms on form closing
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frmPersonalReminder_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         if (frmReminderPopupObj != null)
         {
             frmReminderPopupObj.Enabled = true;
             frmReminderPopupObj.Activate();
             frmReminderPopupObj.BringToFront();
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "PREM23:" + ex.Message;
     }
 }
 /// <summary>
 /// Enable sobject of other forms on form closing
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frmOverduePurchaseOrder_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         if (frmReminderPopupObj != null)
         {
             frmReminderPopupObj.Enabled = true;
             frmReminderPopupObj.Activate();
             frmReminderPopupObj.BringToFront();
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "ODPO:7" + ex.Message;
     }
 }