예제 #1
0
        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;
            }
        }
예제 #2
0
 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() });
 }
예제 #3
0
 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() });
 }
예제 #4
0
 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 });
 }
예제 #5
0
 void pictureListView_RetrieveItem(object sender, PagedListView <Picture> .RetrieveItemEventArgs e)
 {
     e.ListViewItem = new ListViewItem(new[] { e.Item.PictureId.ToString(), e.Item.Title });
 }
예제 #6
0
 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() });
 }