/// <summary>
 /// Calls frmPartyBalance form on datagridView cell double click
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dgvAgainstBillDetails_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (dgvAgainstBillDetails.Rows[e.RowIndex].Cells["dgvtxtVoucherTypeId"].Value != null && dgvAgainstBillDetails.Rows[e.RowIndex].Cells["dgvtxtVoucherTypeId"].Value.ToString() != string.Empty)
         {
             if (dgvAgainstBillDetails.Rows[e.RowIndex].Cells["dgvtxtVoucherNo"].Value != null && dgvAgainstBillDetails.Rows[e.RowIndex].Cells["dgvtxtVoucherNo"].Value.ToString() != string.Empty)
             {
                 frmPartyBalanceObj.MdiParent = formMDI.MDIObj;
                 string strId = dgvAgainstBillDetails.CurrentRow.Cells["dgvtxtVoucherTypeId"].Value.ToString() + '_' + dgvAgainstBillDetails.CurrentRow.Cells["dgvtxtVoucherNo"].Value.ToString();
                 frmPartyBalanceObj.CallFromAgainstBillDetails(this, strId);
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("AB:7" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Calls frmPartyBalance form on datagridView cell double click
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dgvAgainstBillDetails_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (dgvAgainstBillDetails.Rows[e.RowIndex].Cells["dgvtxtVoucherTypeId"].Value != null && dgvAgainstBillDetails.Rows[e.RowIndex].Cells["dgvtxtVoucherTypeId"].Value.ToString() != string.Empty)
         {
             if (dgvAgainstBillDetails.Rows[e.RowIndex].Cells["dgvtxtVoucherNo"].Value != null && dgvAgainstBillDetails.Rows[e.RowIndex].Cells["dgvtxtVoucherNo"].Value.ToString() != string.Empty)
             {
                 frmPartyBalanceObj.MdiParent = formMDI.MDIObj;
                 string strId = dgvAgainstBillDetails.CurrentRow.Cells["dgvtxtVoucherTypeId"].Value.ToString() + '_' + dgvAgainstBillDetails.CurrentRow.Cells["dgvtxtVoucherNo"].Value.ToString();
                 frmPartyBalanceObj.CallFromAgainstBillDetails(this, strId);
             }
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "AB8:" + ex.Message;
     }
 }