private void btn_Show_Click(object sender, EventArgs e) { r.AsonDate = dtpAsonDate.Value.Date; r.ProductID = Convert.ToInt32(cmbProductName.SelectedValue); DateTime AsonDate = dtpAsonDate.Value.Date; int ProductID = Convert.ToInt32(cmbProductName.SelectedValue); bool isCheckedProductName = cbProductName.Checked; frm_StockLedgerReportView f = new frm_StockLedgerReportView(AsonDate, ProductID, isCheckedProductName); f.Show(); this.Hide(); }
private void dgvStockReport_MouseDoubleClick(object sender, MouseEventArgs e) { if (dgvStockReport.CurrentRow.Cells["ProductID"].Value != null) { int prodId = Convert.ToInt32(dgvStockReport.CurrentRow.Cells["ProductID"].Value); frm_StockLedgerReportView f = new frm_StockLedgerReportView(AsonDate, prodId, true); f.MdiParent = frm_MainDashboard.frmObj; f.Show(); } }