// Constructor
        public SummersaltPage()
        {
            InitializeComponent();

            rendererFactory = new CommonPhotoGroupFactory();

            // Events
            Cinderella.CinderellaCore.UserInfoUpdated += OnUserInfoUpdated;
            Cinderella.CinderellaCore.ContactPhotosUpdated += OnContactPhotosUpdated;
            Cinderella.CinderellaCore.ActivityStreamUpdated += OnActivityStreamUpdated;
            DashboardNavigator.DashboardPageChanged += OnDashboardPageChanged;
        }
        // Constructor
        public UserProfilePhotoPage()
        {
            InitializeComponent();

            // Initialize data providers
            rendererFactory = new CommonPhotoGroupFactory();
            PhotoCollection = new ObservableCollection<PhotoGroup>();
            PhotoStreamListView.ItemsSource = PhotoCollection;

            // Events
            Cinderella.CinderellaCore.PhotoStreamUpdated += OnPhotoStreamUpdated;
            Anaconda.AnacondaCore.PhotoStreamException += OnPhotoStreamException;
        }
        // Constructor
        public GroupViewPhotoPage()
        {
            InitializeComponent();

            // Initialize data providers
            rendererFactory = new CommonPhotoGroupFactory();
            PhotoCollection = new ObservableCollection<PhotoGroup>();
            PhotoStreamListView.ItemsSource = PhotoCollection;

            // Events
            Cinderella.CinderellaCore.GroupPhotoListUpdated += OnPhotoStreamUpdated;
            Anaconda.AnacondaCore.GroupPhotoException += OnPhotoStreamException;

            Cinderella.CinderellaCore.AddPhotoToGroupCompleted += OnPhotoAddedToGroup;
            Cinderella.CinderellaCore.RemovePhotoFromGroupCompleted += OnPhotoRemovedFromGroup;
        }
Ejemplo n.º 4
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            if (executedOnce)
                return;

            executedOnce = true;

            // Events
            InitializeEventListeners();

            string setId = NavigationContext.QueryString["photoset_id"];
            PhotoSetSource = Cinderella.CinderellaCore.PhotoSetCache[setId];
            rendererFactory = new CommonPhotoGroupFactory();
            rendererFactory.Context = PhotoSetSource.ResourceId;
            rendererFactory.ContextType = "PhotoSet";

            PerformAppearanceAnimation();
        }
Ejemplo n.º 5
0
        // Constructor
        public VioletPage()
        {
            InitializeComponent();

            // Initialize data providers
            PhotoCollection = new ObservableCollection<PhotoGroup>();
            PhotoStreamListView.ItemsSource = PhotoCollection;
            rendererFactory = new CommonPhotoGroupFactory();
            rendererFactory.Context = PolicyKit.VioletPageSubscription;

            // Events
            PolicyKit.PolicyChanged += OnPolicyChanged;
            Cinderella.CinderellaCore.PhotoStreamUpdated += OnPhotoStreamUpdated;
            Cinderella.CinderellaCore.UploadedPhotoInfoReturned += OnPhotoUploaded;
            Cinderella.CinderellaCore.DiscoveryStreamUpdated += OnDiscoveryStreamUpdated;
            Cinderella.CinderellaCore.FavouriteStreamUpdated += OnFavouriteStreamUpdated;

            Anaconda.AnacondaCore.FavouriteStreamException += OnFavouriteStreamException;
            Anaconda.AnacondaCore.DiscoveryStreamException += OnDiscoveryStreamException;
            Anaconda.AnacondaCore.PhotoStreamException += OnPhotoStreamException;
        }