示例#1
0
 public virtual void ESelectedEvent(EEventArgEmployee arg)
 {
     if (EEvent != null)
     {
         EEvent(this, arg);
     }
 }
示例#2
0
        void ofrmEmployeeList_EEvent(object Sender, EEventArgEmployee e)
        {
            ClearFormData();
            CEmployee obj = (CEmployee)e.Employee;

            Displaydata(obj);
        }
示例#3
0
        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();
            }
        }