Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/08/11 16:38:28 (13 years ago)
Author:
ascheibe
Message:

#1233 more renaming for more consistency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.3/Views/RefreshableHiveExperimentListView.cs

    r6479 r6725  
    2828namespace HeuristicLab.Clients.Hive.ExperimentManager.Views {
    2929  [View("HiveExperimentList View")]
    30   [Content(typeof(ItemCollection<RefreshableHiveExperiment>), false)]
    31   public partial class RefreshableHiveExperimentListView : ItemCollectionView<RefreshableHiveExperiment> {
     30  [Content(typeof(ItemCollection<RefreshableJob>), false)]
     31  public partial class RefreshableHiveExperimentListView : ItemCollectionView<RefreshableJob> {
    3232
    3333    public RefreshableHiveExperimentListView() {
     
    4343    }
    4444
    45     protected override RefreshableHiveExperiment CreateItem() {
    46       return new RefreshableHiveExperiment() { IsAllowedPrivileged = HiveClient.Instance.IsAllowedPrivileged };
     45    protected override RefreshableJob CreateItem() {
     46      return new RefreshableJob() { IsAllowedPrivileged = HiveClient.Instance.IsAllowedPrivileged };
    4747    }
    4848
     
    5454    }
    5555
    56     protected override void Content_ItemsAdded(object sender, Collections.CollectionItemsChangedEventArgs<RefreshableHiveExperiment> e) {
     56    protected override void Content_ItemsAdded(object sender, Collections.CollectionItemsChangedEventArgs<RefreshableJob> e) {
    5757      base.Content_ItemsAdded(sender, e);
    5858
    5959    }
    6060
    61     protected override ListViewItem CreateListViewItem(RefreshableHiveExperiment item) {
     61    protected override ListViewItem CreateListViewItem(RefreshableJob item) {
    6262      ListViewItem listViewItem = base.CreateListViewItem(item);
    6363      listViewItem.SubItems.Clear();
    64       listViewItem.SubItems.Insert(0, new ListViewItem.ListViewSubItem(listViewItem, item.HiveExperiment.DateCreated.ToString("dd.MM.yyyy HH:mm")));
    65       listViewItem.SubItems.Insert(1, new ListViewItem.ListViewSubItem(listViewItem, item.HiveExperiment.Name));
    66       listViewItem.Group = GetListViewGroup(item.HiveExperiment.OwnerUsername);
     64      listViewItem.SubItems.Insert(0, new ListViewItem.ListViewSubItem(listViewItem, item.Job.DateCreated.ToString("dd.MM.yyyy HH:mm")));
     65      listViewItem.SubItems.Insert(1, new ListViewItem.ListViewSubItem(listViewItem, item.Job.Name));
     66      listViewItem.Group = GetListViewGroup(item.Job.OwnerUsername);
    6767      return listViewItem;
    6868    }
     
    7070    protected override void UpdateListViewItemText(ListViewItem listViewItem) {
    7171      if (listViewItem == null) throw new ArgumentNullException();
    72       var item = listViewItem.Tag as RefreshableHiveExperiment;
    73       listViewItem.SubItems[0].Text = item == null ? "null" : item.HiveExperiment.DateCreated.ToString("dd.MM.yyyy HH:mm");
    74       listViewItem.SubItems[1].Text = item == null ? "null" : item.HiveExperiment.Name;
    75       listViewItem.Group = GetListViewGroup(item.HiveExperiment.OwnerUsername);
     72      var item = listViewItem.Tag as RefreshableJob;
     73      listViewItem.SubItems[0].Text = item == null ? "null" : item.Job.DateCreated.ToString("dd.MM.yyyy HH:mm");
     74      listViewItem.SubItems[1].Text = item == null ? "null" : item.Job.Name;
     75      listViewItem.Group = GetListViewGroup(item.Job.OwnerUsername);
    7676      listViewItem.ToolTipText = item == null ? string.Empty : item.ItemName + ": " + item.ItemDescription;
    7777    }
Note: See TracChangeset for help on using the changeset viewer.