Example #1
0
        private async void InitLUCJobAdmin()
        {
            List <Job> allJobs = (await jobManager.Get()).ToList();

            employeeManager.GetJobs(this.currentEmployee);
            Boolean flag = true;

            foreach (var item in allJobs)
            {
                foreach (var item1 in this.currentEmployee.Jobs)
                {
                    if (item.Id == item1.Id)
                    {
                        flag = false;
                    }
                }
                if (flag)
                {
                    allJobsInsert.Add(item);
                }
            }

            newListControl.LoadItem(this.currentEmployee.Jobs);
            this.jobAdmin.UCJobList.LoadItem(allJobsInsert);
        }
Example #2
0
        public async void TestDB2()
        {
            MySQLEmployeeManager empManager = new MySQLEmployeeManager();
            Employee             emp        = await empManager.Get(4);

            empManager.GetJobs(emp);
            empManager.GetAddress(emp);
        }