private void AddClientProfileItem() { var clientProfileItem = new ProfileSelectorItemViewModel() { ProfileName = $"{_userInfo.FirstName} {_userInfo.LastName}", ProfileTypeCaption = "Client", ProfileType = UserTypes.Client, ProfileTypeImage = ImageSource.FromFile("account_circle_gray.png"), }; Profiles.Add(clientProfileItem); }
private void AddInterpreterProfileItem() { var interpreterProfileItem = new ProfileSelectorItemViewModel() { ProfileName = $"{_userInfo.FirstName} {_userInfo.LastName}", ProfileTypeCaption = "Interpreter", ProfileType = UserTypes.Interpreter, ProfileTypeImage = ImageSource.FromFile("account_circle_gray.png"), }; Profiles.Add(interpreterProfileItem); }
public void SelectProfile(ProfileSelectorItemViewModel profile) { foreach (var p in Profiles) { if (p == profile) { p.IsSelected = true; } else { p.IsSelected = false; } } SelectedProfile = profile; }
private void AddAgencies() { foreach (var agency in LocalStorage.LoginResponseLS.UserInfo.InterpreterInfo.Agencies) { var agencyProfileItem = new ProfileSelectorItemViewModel() { InterpreterBusinessId = agency.InterpreterBusinessId, ProfileName = agency.BusinessInfo.BusinessName, ProfileTypeCaption = "Agency", ProfileType = UserTypes.Agency, ProfileTypeImage = ImageSource.FromFile("briefbag.png"), }; Profiles.Add(agencyProfileItem); } }
private void AddBusinesses() { foreach (var business in LocalStorage.LoginResponseLS.UserInfo.ClientInfo.Businesses) { var businessProfileItem = new ProfileSelectorItemViewModel() { ClientBusinessId = business.ClientBusinessId, ProfileName = business.BusinessInfo.BusinessName, ProfileTypeCaption = "Business", ProfileType = UserTypes.Business, ProfileTypeImage = ImageSource.FromFile("briefbag.png"), }; Profiles.Add(businessProfileItem); } }