Ejemplo n.º 1
0
 /// <summary>
 /// When Form closing Checking the other forms objects and return the id of created Size
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frmSize_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         if (frmProductCreationObj != null)
         {
             frmProductCreationObj.ReturnFromSizeForm(decIdForOtherForms);
             dgvSize.Enabled = false;
             frmProductCreationObj.Enabled = true;
         }
         if (frmMultipleProductCreationObj != null)
         {
             frmMultipleProductCreationObj.ReturnFromSizeForm(decIdForOtherForms);
             dgvSize.Enabled = false;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("SZ17:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }