public virtual void ESelectedEvent(EEventArgEmployee arg) { if (EEvent != null) { EEvent(this, arg); } }
void ofrmEmployeeList_EEvent(object Sender, EEventArgEmployee e) { ClearFormData(); CEmployee obj = (CEmployee)e.Employee; Displaydata(obj); }
private void lstEmployeeList_DoubleClick(object sender, EventArgs e) { if (lstEmployeeList.Items.Count > 0) { // ArrayList checkedpersnsrvclist = new ArrayList(); ListViewItem oItem = (ListViewItem)lstEmployeeList.SelectedItems[0]; foreach (CEmployee oEmployee in arrList as ArrayList) { if (oEmployee.ID == oItem.SubItems[0].Text.Trim()) { EEventArgEmployee arg = new EEventArgEmployee(oEmployee); ESelectedEvent(arg); break; } } this.Dispose(); } }