/// <summary>
 /// Grid cell double click for View the selected details
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dgvProductSearch_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (e.RowIndex != -1)
         {
             if (e.RowIndex > -1 || e.ColumnIndex > -1)
             {
                 frmProductDetails frmProductDetailsObj = new frmProductDetails();
                 frmProductDetailsObj.MdiParent = formMDI.MDIObj;
                 decimal strId = decimal.Parse(dgvProductSearch.CurrentRow.Cells["productId"].Value.ToString());
                 frmProductDetailsObj.callFromProductSearchTo(strId, this);
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("PS :18" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Grid cell double click for View the selected details
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dgvProductSearch_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (e.RowIndex != -1)
         {
             if (e.RowIndex > -1 || e.ColumnIndex > -1)
             {
                 frmProductDetails frmProductDetailsObj = new frmProductDetails();
                 frmProductDetailsObj.MdiParent = formMDI.MDIObj;
                 decimal strId = decimal.Parse(dgvProductSearch.CurrentRow.Cells["productId"].Value.ToString());
                 frmProductDetailsObj.callFromProductSearchTo(strId, this);
             }
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "PS:18" + ex.Message;
     }
 }
 /// <summary>
 /// Grid cell double click for View the selected details
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dgvProductSearch_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (e.RowIndex != -1)
         {
             if (e.RowIndex > -1 || e.ColumnIndex > -1)
             {
                 frmProductDetails frmProductDetailsObj = new frmProductDetails();
                 frmProductDetailsObj.MdiParent = formMDI.MDIObj;
                 decimal strId = decimal.Parse(dgvProductSearch.CurrentRow.Cells["productId"].Value.ToString());
                 frmProductDetailsObj.callFromProductSearchTo(strId, this);
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("PS :18" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }