public void PrepareView(AppUser user) { Username = user.Username; FullName = user.FullName; Email = user.Email; MobileNo = user.MobileNo; SelectedRole = _userRoles.FirstOrDefault(role => role.RoleId == user.RoleId); }
public void PrepareView(AppUser appUser) { _appUser = appUser; }
private void LoginViewModel_OnLoggedIn(AppUser appUser) { OnCloseLoginViewModel(); ShellViewModel.PrepareView(appUser); (ShellViewModel.View as Window).Show(); }