public UserSettingPage()
 {
     InitializeComponent();
     currentUser    = uih.GetUserInfoByID(Settings.UserId);
     UserCell.Title = currentUser.FirstName + " " + currentUser.LastName;
     //UserCell.Description = currentUser.LastName;
     UserCell.IconSource = currentUser.Icon;
 }
Exemple #2
0
        public UserSettingPage()
        {
            InitializeComponent();
            currentUser    = uih.GetUserInfoByID(Settings.UserId);
            UserCell.Title = currentUser.FirstName;// + " " + currentUser.LastName;
            var uac = new UserAccess();

            UserCell.Description = uac.GetNobyID(currentUser.UserID);
            UserCell.IconSource  = currentUser.Icon;
        }
Exemple #3
0
 public UserSettingPage()
 {
     InitializeComponent();
     currentUser          = uih.GetUserInfoByID(Settings.UserId);
     UserCell.Title       = currentUser.FirstName;
     UserCell.Description = currentUser.LastName;
     UserCell.IconSource  = currentUser.Icon;
     //commandcell.IconSource = ImageSource.FromUri(new Uri("https://static1.squarespace.com/static/59c15a448a02c7a81f7a90aa/t/59e67fa1e5dd5b9338707436/1508278185945/Google.png"));
 }
        public List <ReviewLabelContent> BindingReviewssConvert(List <ReviewsInfo> reviews)
        {
            List <ReviewLabelContent> newreviews = new List <ReviewLabelContent>();

            foreach (ReviewsInfo review in reviews)
            {
                ReviewLabelContent tmp = new ReviewLabelContent();
                tmp.ReviewerName    = uih.GetUserInfoByID(review.UserID).FirstName;
                tmp.ReviewerRating  = StarNoToStarSign(review.ReviewRating);
                tmp.ReviewerContent = review.ReviewContent;
                newreviews.Add(tmp);
            }
            return(newreviews);
        }
 //Confirm
 void NHPPConfirm(object sender, EventArgs e)
 {
     if (Settings.IsLogin)
     {
         var user = uih.GetUserInfoByID(_currentnewcomerlabel.UserID);//new UserInfo()
         //{
         //UserID = uih.GetChatIDByUid(_currentnewcomerlabel.UserID)
         //};
         List <string> users = new List <string>()
         {
             Settings.ChatID,
             uih.GetChatIDByUid(_currentnewcomerlabel.UserID)
         };
         ConnectToChannel(user, users);
     }
 }
Exemple #6
0
 protected override void OnAppearing()
 {
     base.OnAppearing();
     Device.BeginInvokeOnMainThread(async() =>
     {
         await Task.Delay(150);
         FNameEntry.Focus();
         if (uih.UInfoIDIsNullOrEmpty())
         {
             var uinfo               = uih.GetUserInfoByID(Settings.UserId);
             FNameEntry.Text         = uinfo.FirstName;
             LNameEntry.Text         = uinfo.LastName;
             EmailEntry.Text         = uinfo.Email;
             FlanPicker.SelectedItem = uinfo.FLanguage;
             SlanPicker.SelectedItem = uinfo.SLanguage;
         }
     });
 }