public async void setView(int i)
		{
			profiles = new ListsAndButtons(App.userProfile.Friends, null, false, false);
			groups = new ListsAndButtons(null, App.userProfile.Groups, false, false);
			//organizations = new ListsAndButtons(null, null, App.userProfile.Organizations, false, false);

			List<string> fbf = await DependencyService.Get<SocialController>().getFacebookFriends();
			List<Profile> fbp = new List<Profile>();
			foreach (string s in fbf)
			{
				fbp.Add(new Profile() { ProfileId = s });
			}


			facebookFriends = new ListsAndButtons(fbp, null, false, false);

			cv = new CarouselList(
				new List<VisualElement>() { profiles, groups, facebookFriends },
				new List<string>() { "Profiles", "Groups", "Facebook" },
				CarouselList.ViewType.Create
			);

			carouselView.Content = cv;

			cv.setCarousel(i);
		}
Ejemplo n.º 2
0
		public void updateCreateViews()
		{
			createView = new CarouselList(
				new List<VisualElement>() { createEvent, createGroup },
				new List<string>() { "Event", "Group" },
				CarouselList.ViewType.Create
			);
		}
Ejemplo n.º 3
0
		public async Task updateHomeView()
		{
			App.userProfile = await GetLoggedInProfile();
			homeView = new InspectController(App.userProfile);
			myProfile = new CarouselList(
				new List<VisualElement>() { homeView, notifications },
				new List<string>() { "Me", "Notifications" },
				CarouselList.ViewType.Home
			);
		}
Ejemplo n.º 4
0
		public async void startCoreView()
		{
			notifications = new YourNotifications();
			homeView = new InspectController(App.userProfile);

			profileConversatios = new YourConversations(ConversationModelType.Profile, App.StoredUserFacebookId, 1);
			otherConversatios = new YourConversations(ConversationModelType.Profile, App.StoredUserFacebookId, 2);
			createEvent = new CreateEvent(new Event(), true);
			createGroup = new CreateGroup(new Group(), true);
			//createOrganization = new CreateOrganization(new Organization(), true);

			exploreEventCategories = new ExploreEventCategories();
			exploreEvents = new EventListView(0);
			joinedEvents = new EventListView(2);
			endedEvents = new EventListView(10);
			trackedEvents = new EventListView(3);
			friendsEvents = new EventListView(1);

			createView = new CarouselList(
				new List<VisualElement>() { createEvent, createGroup },
				new List<string>() { "Event", "Group" },
				CarouselList.ViewType.Create
			);

			conversatios = new CarouselList(
				new List<VisualElement>() { profileConversatios, otherConversatios },
				new List<string>() { "Yours", "Others" },
				CarouselList.ViewType.Conversations
			);

			searchEventView = new CarouselList(
				new List<VisualElement>() { exploreEventCategories, exploreEvents, friendsEvents, trackedEvents },
				new List<string>() { "Explore", "Explore", "Friends", "Followed" },
				CarouselList.ViewType.SearchEvents
			);

			joinedEventView = new CarouselList(
				new List<VisualElement>() { joinedEvents, endedEvents},
				new List<string>() { "Joined", "Old"},
				CarouselList.ViewType.JoinedEvents
			);

			myProfile = new CarouselList(
				new List<VisualElement>() { homeView, notifications },
				new List<string>() { "Me", "Notifications" },
				CarouselList.ViewType.Home
			);


			setContentView(2);
			await _dataManager.update();
			loading.IsVisible = false;

			if(token.Length > 15) displayAlertMessage("token", token, "ok");
		}
Ejemplo n.º 5
0
		public void ViewImages(List<string> images)
		{
			List<VisualElement> ve = new List<VisualElement>();
			List<string> st = new List<string>();
			foreach (string s in images)
			{
				ve.Add(new ImageView(s));
				st.Add("Image");
			}


			CarouselList cl = new CarouselList(ve, st, CarouselList.ViewType.Other );

			App.coreView.setContentViewWithQueue(cl);
		}