public FormMosiftDiggingFriend(DigginFriend i_MostDiggingFriend, MRG.Controls.UI.LoadingCircle i_LoadingCircleShowMostDiggingFriend) { m_MostDiggingFriend = i_MostDiggingFriend; m_LoadingCircleShowMostDiggingFriend = i_LoadingCircleShowMostDiggingFriend; InitializeComponent(); initializeComponent(i_MostDiggingFriend); }
private void onMostDiggingFriendThread() { if (!FacadeLayer.FacadeFacebook.Instance.isLoggedUserHasFriends()) { MessageBox.Show("You Don't have any friends :("); } else { DigginFriend digginFriend = FacadeLayer.FacadeFacebook.Instance.GetDigginFriend(); new FormMosiftDiggingFriend(digginFriend, f_LoadingCircleShowMostDiggingFriend).ShowDialog(); } }
private void initializeComponent(DigginFriend i_Friend) { userBindingSource.DataSource = i_Friend.Friend; f_LabelNumOfPosts.Text = string.Format("Most Digging Friend is {0}. He post {1} posts last year", i_Friend.Friend.Name, i_Friend.NumOfPosts.ToString()); }