예제 #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");
            }
        }
예제 #2
0
        public async Task initAsync()
        {
            List <Models.User> listP = await firebaseHelper.GetAllUser();

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