public async Task RefreshItemsFromTableAsync(EmployeeItemAdapter adapter)
 {
     try
     {
         // Get the items that weren't marked as completed and add them in the adapter
         //var list = await toDoTable.Where(item => item.Complete == false).ToListAsync();
         var employeeList = await IoC.Dbconnect.getEmployeeSyncTable().ToListAsync();
         adapter.Clear();
         foreach (EmployeeItem currentEmployee in employeeList)
             adapter.Add(currentEmployee);
     }
     catch (Exception e)
     {
         System.Diagnostics.Debug.WriteLine(e.Message);
     }
 }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            employeeItemAdapter = new EmployeeItemAdapter();
            eventItemAdapter = new EventItemAdapter();
            recipientListItemAdapter = new RecipientListItemAdapter();

            loginButton = LoginButton;
            EditTextEmployeeID = Username;
            EditTextPassword = Password;
            createUserButton = CreateUser;

            loginButton.TouchUpInside += (object sender, EventArgs e) =>
            {
                Login();
            };

            createUserButton.TouchUpInside += (object sender, EventArgs e) =>
            {
                ValidateCreateUser();
            };
        }
 public async Task setEmployee()
 {
     EmployeeItemAdapter employeeItemAdapter = new EmployeeItemAdapter();
     await IoC.ViewRefresher.RefreshItemsFromTableAsync(employeeItemAdapter);
     Employee = employeeItemAdapter.findEmployeeByEmployeeID(EmployeeID);
 }