Beispiel #1
0
        private async Task initialDataAsync()
        {
            List <User> listUser = await userFirebaseHelper.GetAllUser();

            if (listUser.Count == 0)
            {
                await userFirebaseHelper.AddUser("Order", "1", "", "Order");

                await userFirebaseHelper.AddUser("Manager", "1", "", "Manager");

                await userFirebaseHelper.AddUser("Admin", "1", "", "Admin");
            }
        }
Beispiel #2
0
        public async Task initAsync()
        {
            List <Models.User> listP = await firebaseHelper.GetAllUser();

            listView.ItemsSource = listP;
        }
Beispiel #3
0
 public async Task <List <Person> > GetAllUser()
 {
     return(await UserFirebaseHelper.GetAllUser());
 }