private void viewProductInCacheToolStripMenuItem_Click(object sender, EventArgs e) { int iRowHandle = this.gridView1.FocusedRowHandle; if (iRowHandle >= 0) { long CompanyID = Convert.ToInt64(this.gridView1.GetRowCellValue(iRowHandle, "CompanyID")); FrmViewProductInCache frm = new FrmViewProductInCache(CompanyID); frm.ShowDialog(); } }
private void ViewProductInCache(object sender, EventArgs e) { var frm = new FrmViewProductInCache(eventGetCompanyHandle()); frm.ShowDialog(); }