コード例 #1
0
 private void PostButton_Click(object sender, EventArgs e)
 {
     LoggedInUser.Instance().PostStatus(PostextBox.Text);
     PostextBox.Text = string.Empty;
 }
コード例 #2
0
        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);
                }
            }
                                             ));
        }
コード例 #3
0
 private void updateUserName()
 {
     FirsrNamelabel.Invoke(new Action(() => { FirsrNamelabel.Text = LoggedInUser.Instance().GetFirstName(); }));
     LastNamelabel.Invoke(new Action(() => { LastNamelabel.Text = LoggedInUser.Instance().GetLastName(); }));
 }
コード例 #4
0
 private void updateCoverPicture()
 {
     CoverpictureBox.Invoke(new Action(() => { CoverpictureBox.LoadAsync(LoggedInUser.Instance().GetCoverPicture()); }));
 }
コード例 #5
0
 private void updateProfilePicture()
 {
     ProfielpictureBox.Invoke(new Action(() => { ProfielpictureBox.LoadAsync(LoggedInUser.Instance().GetProfilePicture()); }));
 }
コード例 #6
0
 private void loadMorePostToWall()
 {
     m_LastPostIndexToGet = LoggedInUser.Instance().GetLastPostIndex();
     updateWall();
 }
コード例 #7
0
 private void getAllPost()
 {
     m_Posts = LoggedInUser.Instance().GetPostsData(0);
 }