コード例 #1
0
ファイル: frmSize.cs プロジェクト: salmanmushtaq/openmiracle
 /// <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);
     }
 }
コード例 #2
0
ファイル: frmSize.cs プロジェクト: nwelsheimer/NBS
 /// <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)
     {
         formMDI.infoError.ErrorString = "SZ17" + ex.Message;
     }
 }