Example #1
0
 // CTOR
 public FriendsForm()
 {
     InitializeComponent();
     this.m_LoaderAdapter = new LoaderAdapter <User>();
     this.m_LoggedInUser  = LoggedInUser.Instance;
     this.m_ImageLoader   = this.m_LoaderAdapter.FormToLoaderAdapt(eLoaderFactoryContext.CreateImageLoader, this.m_LoggedInUser.Friends, this.friendsListView);
 }
 // CTOR
 public AlbumsForm()
 {
     InitializeComponent();
     this.m_LoaderAdapter = new LoaderAdapter <Album>();
     this.m_LoggedInUser  = LoggedInUser.Instance;
     this.m_ImageLoader   = this.m_LoaderAdapter.FormToLoaderAdapt(eLoaderFactoryContext.CreateImageLoader, this.m_LoggedInUser.Albums, this.albumsListView);
 }
 // CTOR
 public SelectedAlbumForm(FacebookObjectCollection <Photo> i_PhotosAlbum, string i_AlbumName)
 {
     InitializeComponent();
     this.m_LoaderAdapter = new LoaderAdapter <Photo>();
     this.m_PhotosAlbum   = i_PhotosAlbum;
     this.m_AlbumName     = i_AlbumName;
     this.m_ImageLoader   = this.m_LoaderAdapter.FormToLoaderAdapt(eLoaderFactoryContext.CreateImageLoader, this.m_PhotosAlbum, this.selectedAlbumlistView);
 }
Example #4
0
        // CTOR
        public StatisticsForm()
        {
            InitializeComponent();
            this.m_LoggedInUser = LoggedInUser.Instance;
            this.r_ListOfPropertyCounterLists = new List <List <PropertyCounter> >()
            {
                new List <PropertyCounter>(), new List <PropertyCounter>()
            };
            this.m_CheckinLoaderAdapter = new LoaderAdapter <Checkin>();
            this.m_FriendLoaderAdapter  = new LoaderAdapter <User>();
            this.r_DistinctCheckinsList = new FacebookObjectCollection <Checkin>();

            // doesnt work since we cant get place attribute from Facebook API
            // fillDistinctCheckinsListAndPropertyCounterList();
            fillFriendsTaggedInPostsCountersList();
            this.m_PropertyCountCalculator     = new PropertyCountCalculator();
            this.m_CheckinsPieChartLoader      = this.m_CheckinLoaderAdapter.FormToLoaderAdapt(eLoaderFactoryContext.CreatePieChartLoader, this.m_LoggedInUser.Checkins, this.r_ListOfPropertyCounterLists[0], this.locationPieChart, "Checkins location distribution", "locationPieChartInfo");
            this.m_TaggedFriendsPieChartLoader = this.m_FriendLoaderAdapter.FormToLoaderAdapt(eLoaderFactoryContext.CreatePieChartLoader, this.m_LoggedInUser.Friends, this.r_ListOfPropertyCounterLists[1], this.friendsTaggedInPostsPieChart, "Friends tagged in posts distribution", "friendsTaggedInPostsPieChartInfo");
        }