private void PostButton_Click(object sender, EventArgs e) { LoggedInUser.Instance().PostStatus(PostextBox.Text); PostextBox.Text = string.Empty; }
private void fetchfriends() { listBoxFriends.Invoke(new Action(() => { string unknowUserPicUrl = "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRg7sqvEEQjipFVPNEuizNSE_KhUBY5IgwkOkUNU3of52M47X7F"; this.FriendpictureBox.LoadAsync(unknowUserPicUrl); this.listBoxFriends.Items.Clear(); const int k_Zero = 0; List <string> friendsNameList = LoggedInUser.Instance().GetFreindsNames(); if (friendsNameList.Count > k_Zero) { foreach (string friendName in friendsNameList) { listBoxFriends.Items.Add(friendName); } } else { string haveNoFriendError = string.Format("{0} dont have any friends", LoggedInUser.Instance().GetFirstName()); listBoxFriends.Items.Add(haveNoFriendError); } } )); }
private void updateUserName() { FirsrNamelabel.Invoke(new Action(() => { FirsrNamelabel.Text = LoggedInUser.Instance().GetFirstName(); })); LastNamelabel.Invoke(new Action(() => { LastNamelabel.Text = LoggedInUser.Instance().GetLastName(); })); }
private void updateCoverPicture() { CoverpictureBox.Invoke(new Action(() => { CoverpictureBox.LoadAsync(LoggedInUser.Instance().GetCoverPicture()); })); }
private void updateProfilePicture() { ProfielpictureBox.Invoke(new Action(() => { ProfielpictureBox.LoadAsync(LoggedInUser.Instance().GetProfilePicture()); })); }
private void loadMorePostToWall() { m_LastPostIndexToGet = LoggedInUser.Instance().GetLastPostIndex(); updateWall(); }
private void getAllPost() { m_Posts = LoggedInUser.Instance().GetPostsData(0); }