void runsListView_RetrieveItem(object sender, PagedListView <Run> .RetrieveItemEventArgs e) { e.ListViewItem = new ListViewItem(new[] { e.Item.RunId.ToString(), e.Item.Timestamp.ToString(), e.Item.User.FullName, e.Item.Problem.Name, e.Item.Language.Name, e.Item.Status.ToString(), e.Item.ExecutionTime.ToString(), e.Item.Memory.ToString(), e.Item.Contest != null ? e.Item.Contest.Name : String.Empty }); if (e.Item.Solved) { e.ListViewItem.BackColor = Color.LightGreen; } else { e.ListViewItem.BackColor = Color.Pink; } }
void affiliationsListView_RetrieveItem(object sender, PagedListView <Affiliation> .RetrieveItemEventArgs e) { e.ListViewItem = new ListViewItem(new [] { e.Item.AffiliationId.ToString(), e.Item.Entity.Name, e.Item.Entity.Type.ToString(), e.Item.Email, e.Item.JoinTime.ToString(), e.Item.LeaveTime.ToString(), e.Item.Type.ToString(), e.Item.Status.ToString() }); }
void schoolListView_RetrieveItem(object sender, PagedListView <Entity> .RetrieveItemEventArgs e) { e.ListViewItem = new ListViewItem(new[] { e.Item.EntityId.ToString(), e.Item.Name, e.Item.Domain, e.Item.Country.Name, e.Item.Type.ToString() }); }
void suggestedSchoolListView_RetrieveItem(object sender, PagedListView <SuggestedEntity> .RetrieveItemEventArgs e) { e.ListViewItem = new ListViewItem(new[] { e.Item.SuggestedEntityId.ToString(), e.Item.Name, e.Item.Domain, e.Item.NotifyEmail }); }
void pictureListView_RetrieveItem(object sender, PagedListView <Picture> .RetrieveItemEventArgs e) { e.ListViewItem = new ListViewItem(new[] { e.Item.PictureId.ToString(), e.Item.Title }); }
void userListView_RetrieveItem(object sender, PagedListView <User> .RetrieveItemEventArgs e) { e.ListViewItem = new ListViewItem(new[] { e.Item.UserId.ToString(), e.Item.Email, e.Item.FirstName, e.Item.LastName, e.Item.ShortName, e.Item.Affiliation.Entity.Name, e.Item.Country.Name, e.Item.Status.ToString() }); }