private void OnShown(object?sender, EventArgs e) { EventsListView.FullRowSelect = true; EventsListView.MultiSelect = false; EventsListView.BeginUpdate(); try { foreach (var appEventItem in _appEventList) { EventsListView.Items.Add(new ListViewItem(appEventItem.ItemArray())); } EventsListView.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize); EventsListView.Items[0].Selected = true; EventsListView.EnsureVisible(0); } finally { EventsListView.EndUpdate(); } ActiveControl = EventsListView; }
protected void Page_Load(object sender, EventArgs e) { user = userBal.GetPersonInformation(PersonId); Name.InnerText = user.Name; Email.InnerText = user.Email; bool IsFollow = friendOperationBal.GetFriendOperationControl(user.Id, ((UserBO)Session["user"]).Id); if (IsFollow == true) { FollowButton.Text = "UnFollow"; } else { FollowButton.Text = "Follow"; } EventsListView.DataSource = eventBal.GetUserEvents(user.Id); EventsListView.DataBind(); FollowerListView.DataSource = userBal.GetFollowers(user.Id); FollowerListView.DataBind(); FollowingListView.DataSource = userBal.GetFollowing(user.Id); FollowingListView.DataBind(); }
protected async override void OnAppearing() { base.OnAppearing(); if (this.NeedUpdate && viewModel.Events.Count == 0) { viewModel.LoadEventsCommand.Execute(null); this.NeedUpdate = false; EventsListView.EndRefresh(); } }
protected void Page_Load(object sender, EventArgs e) { if (SearchKey != null) { EventsListView.DataSource = eventBal.GetEventSearch(SearchKey); EventsListView.DataBind(); } else if (Category != null) { EventsListView.DataSource = eventBal.GetAllEvents(Category); EventsListView.DataBind(); } }
private void SelectEvents(IEnumerable events) { // Set the active plugin to this one ClientState.Current.ViewController.SelectedPlugin = Plugin; // Replace the selected events State.SelectedEvents.ReplaceWithCast(events); // Scroll to the selected events EventsListView.ScrollIntoView(State.SelectedEvents); // Raise the selected event changed event OnSelectedEventChanged(); }
protected void Page_Load(object sender, EventArgs e) { user = (UserBO)Session["user"]; Name.InnerText = user.Name; Email.InnerText = user.Email; EventsListView.DataSource = eventBal.GetUserEvents(user.Id); EventsListView.DataBind(); FollowerListView.DataSource = userBal.GetFollowers(user.Id); FollowerListView.DataBind(); FollowingListView.DataSource = userBal.GetFollowing(user.Id); FollowingListView.DataBind(); }
private void EventsListView_SelectionChanged(object sender, SelectionChangedEventArgs e) { EventsListView.ScrollIntoView(EventsListView.SelectedItem); }