예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public void SelectProfile(ProfileSelectorItemViewModel profile)
 {
     foreach (var p in Profiles)
     {
         if (p == profile)
         {
             p.IsSelected = true;
         }
         else
         {
             p.IsSelected = false;
         }
     }
     SelectedProfile = profile;
 }
예제 #4
0
 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);
     }
 }
예제 #5
0
 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);
     }
 }