public void CallIssue(object[] param) { _core = (Core.Core)param[0]; long customerno = Convert.ToInt64(param[1]); DataRow dr = (DataRow)param[2]; InfoPos.Issue.FormMain frm = new InfoPos.Issue.FormMain(_core, customerno, dr); frm.MdiParent = _core.MainForm; frm.Show(); }
private void simpleButton2_Click(object sender, EventArgs e) { if (ucCustomerList.DataSource != null) { DataRow DR = ucCustomerList.gridView1.GetFocusedDataRow(); DataView DV = (DataView)ucCustomerList.gridView1.DataSource; DataTable DT = DV.ToTable(); if (DR != null && DV != null) { CustomerID = Static.ToLong(DR["CustomerNo"]); InfoPos.Issue.FormMain iss = new InfoPos.Issue.FormMain(_core, CustomerID, DR); iss.ShowDialog(); } } }