void AddCommisionItems2_Click(object sender, EventArgs e) { try { if (grdLister.CurrentRow != null && grdLister.CurrentRow is GridViewDataRowInfo) { int id = grdLister.CurrentRow.Cells["Id"].Value.ToInt(); frmCommisionList frm = new frmCommisionList(id); frm.Show(); } } catch (Exception ex) { ENUtils.ShowMessage(ex.Message); } }
void ShowForm(int id) { frmCommisionList frm = new frmCommisionList(id); frm.Show(); //frmDriverCommision frm = new frmDriverCommision(); //frm.OnDisplayRecord(id); //DockWindow doc = UI.MainMenuForm.MainMenuFrm.GetDockByName("frmDriverCommision1"); //if (doc != null) //{ // doc.Close(); //} //MainMenuForm.MainMenuFrm.ShowForm(frm); }