public void viewInFocus(UpperBar bar) { if (viewType == ViewType.Conversations) { bar.setNavigationLabel("Conversations", null); } else if (viewType == ViewType.SearchEvents) { bar.setNavigationLabel("Explore Events", null); /* bar.setRightButton("ic_settings.png").Clicked += (sender, e) => { if (App.userProfile != null && App.userProfile.SearchPreference != null) App.coreView.setContentViewWithQueue(new FilterSearch(App.userProfile.SearchPreference)); };*/ } else if (viewType == ViewType.JoinedEvents) { bar.setNavigationLabel("Joined Events", null); } else if (viewType == ViewType.Create) { bar.setNavigationLabel("Create", null); } else if (viewType == ViewType.Home) { bar.setNavigationLabel("Home", null); } setCarousel(veryLastCarouselView); }
public void viewInFocus(UpperBar bar) { bar.setNavigationLabel("Invite To Organization", null); bar.setNavigationLabel("Invite To Group", null); bar.setNavigationLabel("Invite To Event", null); bar.setNavigationLabel("Add People To Conversation", null); bar.setNavigationLabel("Create New Conversation", null); }
public void viewInFocus(UpperBar bar) { try { cv.setCarousel(cv.veryLastCarouselView); } catch (Exception e) {} }
public void viewInFocus(UpperBar bar) { if (modelType == ConversationModelType.Event) { bar.setNavigationLabel("Event Conversations", null); } else if (modelType == ConversationModelType.Group) { bar.setNavigationLabel("Group Conversations", null); } }
public void viewInFocus(UpperBar bar) { bar.setNavigationLabel("Notifications", null); /* bar.setRightButton("ic_share.png").Clicked += async (sender, e) => { await App.coreView._dataManager.AttendTrackEvent(eve, false, true); }; bar.showNewConversationButton(true, App.coreView.profileConversatios); */ }
public void viewInFocus(UpperBar bar) { //bar.setNavigationLabel(Title, scrollView); if (eve != null) { addEventMenu(eve); } else if (grp != null) { addGroupMenu(grp); } }
public CoreView () { InitializeComponent (); _dataManager = new DataManager (); topBar = new UpperBar(); topBarLayout.Children.Add (topBar); topBar.hideAll(); notiScroll.Scrolled += (sender, e) => { System.Diagnostics.Debug.WriteLine(notiScroll.ScrollY); if (notiScroll.ScrollY > 5 && !hideNotiLayout) { notiScroll.ScrollToAsync(0, 1000, true); if (!hideNotiLayout) HideNotiLayout(); hideNotiLayout = true; } }; }
public async void viewInFocus(UpperBar bar) { if (conversation == null) return; title = ""; if (conversation.Profiles != null) { foreach (Profile p in conversation.Profiles) { if (p.ProfileId != App.StoredUserFacebookId) { if (conversation.Profiles.Count > 2) { title += p.Name.Split(' ')[0] + ", "; } else { title += p.Name; } if (conversationInfoImage.Source == null && conversation.ModelType == ConversationModelType.Profile) { conversationInfoImage.Source = p.ImageSource; } } } if (conversation.Profiles.Count > 2) { title = title.Substring(0, title.Length-2); } } if (!string.IsNullOrWhiteSpace(conversation.Title)) { title = conversation.Title; } App.coreView.topBar.setRightButton("ic_menu.png").Clicked += async (sender, e) => { List<Action> actions = new List<Action>(); List<string> titles = new List<string>(); List<string> images = new List<string>(); actions.Add(() => { App.coreView.setContentViewWithQueue(new InviteListView(conversation, false)); }); titles.Add("Invite"); images.Add("ic_add_profiles.png"); actions.Add(async() => { editTitleGrid.IsVisible = !editTitleGrid.IsVisible; }); titles.Add("Change Title"); images.Add("ic_title.png"); actions.Add(async () => { bool success = await _dataManager.MessageApiManager.leaveConversation(conversation.ConversationID); if (success) { App.coreView.returnToPreviousView(); } else { await App.coreView.displayAlertMessage("Error", "Error", "Ok"); } }); titles.Add("Leave"); images.Add("ic_settings.png"); await App.coreView.DisplayOptions(actions, titles, images); }; bar.setNavigationlabel(title).Clicked += (sender, e) => { App.coreView.setContentViewWithQueue(new ListsAndButtons(conversation.Profiles, null, false, false)); }; if (type == MessageApiManager.CommentType.Converzation) { try { await Task.Delay(2); conversationList.ScrollTo(conversationList.ItemsSource.OfType<Comment>().Last(), ScrollToPosition.End, true); } catch (Exception e) {} } }
public void viewInFocus(UpperBar bar) { }