private void onKeyDownHandler(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { FriendsFacade.PostStatus(textBoxPostFriend.Text); UILogicHelper.MakeControlsInvisible(textBoxPostFriend); MessageBox.Show("Your post was successfully post."); } }
private void showCommonGroups() { List <string> commonGroups = null; closeAllComponents(); UILogicHelper.MakeControlsVisible(listBoxCommonGroups); new Thread(() => { commonGroups = FriendsFacade.FindCommonGroups(); fillListBox(listBoxMutualFriends, commonGroups, r_NoCommonGroups); }).Start(); }
private void showAlbums() { closeAllComponents(); this.Invoke(new Action(() => { UILogicHelper.MakeControlsVisible(forAlbumsListBoxLabel, createdTimeLabel, createdTimeLabel1, imageAlbumLabel, imageAlbumPictureBox, nameLabel, nameLabel1, forAlbumsListBoxLabel); })); ListBoxAlbums = listBoxFriendAlbums; UsersAlbums = FriendsFacade.GetUserAlbums(); m_AlbumOperator.ShowAlbums(this, albumBindingSource); }
private void loadInfo() { string friendLocationName = ""; string friendBirthday = FriendsFacade.GetBirthday(); City location = FriendsFacade.GetLocation(); if (location != null) { friendLocationName = location.Name; } pictureBoxUserFriend.Load(FriendsFacade.GetPictureNormalURL()); buttonPostToFriend.Text = "Post on " + FriendsFacade.GetFirstName() + "'s Timeline"; labelFriendInfo.Text = string.Format(@"{0} {1} {2} {3}", FriendsFacade.GetFirstName(), FriendsFacade.GetLastName(), friendLocationName, friendBirthday); }