/// <summary> /// calls corresponding SalesQuotationvoucher on cell double click for updation /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dgvSalesQuotationReport_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { if (e.ColumnIndex > -1 && e.RowIndex > -1) { frmSalesQuotation frmSalesQuotationObj = new frmSalesQuotation(); frmSalesQuotationObj.MdiParent = formMDI.MDIObj; frmSalesQuotation frmSalesQuotationOpen = Application.OpenForms["frmSalesQuotation"] as frmSalesQuotation; if (frmSalesQuotationOpen == null) { frmSalesQuotationObj.WindowState = FormWindowState.Normal; frmSalesQuotationObj.CallFRomSalesQuotationReport(this, Convert.ToDecimal(dgvSalesQuotationReport.CurrentRow.Cells["dgvtxtQuotationMasterId"].Value)); } else { frmSalesQuotationOpen.CallFRomSalesQuotationReport(this, Convert.ToDecimal(dgvSalesQuotationReport.CurrentRow.Cells["dgvtxtQuotationMasterId"].Value)); frmSalesQuotationOpen.BringToFront(); if (frmSalesQuotationOpen.WindowState == FormWindowState.Minimized) { frmSalesQuotationOpen.WindowState = FormWindowState.Normal; } } } } catch (Exception ex) { MessageBox.Show("SQRP:13" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }