public ServiceController(string baseURL) { BaseURL = baseURL; Summaries = new SummariesController(); Summaries.baseController = this; Summaries.BaseURL = BaseURL; User = new UserController(); User.BaseURL = BaseURL; Feeds = new FeedController(); Feeds.baseController = this; Feeds.BaseURL = BaseURL; Feeds.GetFeedList(); }
void OnAuthUpdate(UserController sender) { if (sender.IsAuthenticated) { UpdateData(); } }
void User_AuthUpdate(UserController sender) { if (sender.IsAuthenticated) { // TODO: feed should be generic, not always KML KMLFeed feed = new KMLFeed(); feed.Title = MainPageResource.YourLandmarks; feed.Icon = Service.User.currentUser.profile_image_url; feed.RefMapLayer = currentUserMapLayer; lbSocialFeeds.Items.Insert(0, feed); // we want it FIRST in the list socialStackPanel.Visibility = Visibility.Visible; btnAddLandmark.Visibility = Visibility.Visible; this.currentUserBadge.CurrentUser = sender.currentUser; InitUserLandmarkLayers(); } else { btnAddLandmark.Visibility = Visibility.Collapsed; this.currentUserBadge.CurrentUser = null; } }