示例#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());
 }