Пример #1
0
 // Set statistics dictionary
 void Istatistics.SetStatistics(BasicFBFeatures i_User)
 {
     m_StatisticsDict = new Dictionary<eStatistics, int>();
     m_MinStatisticNumberCount = 10;
     setPhotoTaggedIn(i_User);
     setEventsCount(i_User);
     setlikedPagedCount(i_User);
 }
 protected override void OnLoad(EventArgs e)
 {
     base.OnLoad(e);
     fillImagePostList();
     m_FbUser = BasicFBFeatures.Instance;
     RememberMeButton.Checked = AppSettings.Instance.AutoLogin;
     m_FbUser.Subscribe(this);
     if (AppSettings.Instance.AutoLogin)
     {
         autoLogin();
     }
 }
Пример #3
0
 // Draw user's tags from photos
 private void setPhotoTaggedIn(BasicFBFeatures i_User)
 {
     int numOfPhoto = i_User.m_LoggedInUser.PhotosTaggedIn.Count;
     m_StatisticsDict.Add(eStatistics.PhotoTaggedIn, numOfPhoto);
     m_MinStatisticNumberCount = Math.Min(numOfPhoto, m_MinStatisticNumberCount);
 }
Пример #4
0
 // Draw user's pages likes
 private void setlikedPagedCount(BasicFBFeatures i_User)
 {
     int LikedPages = i_User.m_LoggedInUser.LikedPages.Count;
     m_StatisticsDict.Add(eStatistics.PagesLiked, LikedPages);
     m_MinStatisticNumberCount = Math.Min(LikedPages, m_MinStatisticNumberCount);
 }
Пример #5
0
 // Draw user's events
 private void setEventsCount(BasicFBFeatures i_User)
 {
     int numOfEvents = i_User.m_LoggedInUser.Events.Count;
     m_StatisticsDict.Add(eStatistics.Events, numOfEvents);
     m_MinStatisticNumberCount = Math.Min(numOfEvents, m_MinStatisticNumberCount);
 }
Пример #6
0
 // Set statistics dictionary
 void Istatistics.SetStatistics(BasicFBFeatures i_User)
 {
     this.m_RealUserStatistics.SetStatistics(i_User);
 }