public async Task initAsync() { StockOnline.Models.User userM = await firebaseHelper.GetUser(this.user_id); this.Entry_UserName.Text = userM.UserName; this.Entry_Password.Text = userM.Password; this.Entry_RePassword.Text = userM.Password; this.Entry_Detail.Text = userM.Description; if (userM.Level == "Order") { this.picker.SelectedIndex = 0; } else if (userM.Level == "Manager") { this.picker.SelectedIndex = 1; } else if (userM.Level == "Admin") { this.picker.SelectedIndex = 2; } // picker.FindByName(userM.Level); //comboBox1.SelectedIndex = index; //this.picker.SelectedIndex = 0; bt_Confirm.Text = "Confirm Update"; }
//Read public async Task <Person> GetUser(string email) { return(await UserFirebaseHelper.GetUser(email)); }