Ignore:
Timestamp:
06/27/11 15:20:23 (8 years ago)
Author:
cneumuel
Message:

#1233

  • finished experiment sharing
  • added role for executing privileged jobs
  • refreshing experiments in experimentManager does not delete already downloaded jobs
  • moved some properties from HiveExperiment into RefreshableHiveExperiment
File:
1 edited

Legend:

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

    r6465 r6479  
    3939      this.itemsListView.HeaderStyle = ColumnHeaderStyle.Clickable;
    4040      this.itemsListView.FullRowSelect = true;
     41      this.itemsListView.Sorting = SortOrder.Ascending;
     42      this.itemsListView.Sort();
    4143    }
    4244
    4345    protected override RefreshableHiveExperiment CreateItem() {
    44       return new RefreshableHiveExperiment();
     46      return new RefreshableHiveExperiment() { IsAllowedPrivileged = HiveClient.Instance.IsAllowedPrivileged };
    4547    }
    4648
     
    5254    }
    5355
     56    protected override void Content_ItemsAdded(object sender, Collections.CollectionItemsChangedEventArgs<RefreshableHiveExperiment> e) {
     57      base.Content_ItemsAdded(sender, e);
     58
     59    }
     60
    5461    protected override ListViewItem CreateListViewItem(RefreshableHiveExperiment item) {
    5562      ListViewItem listViewItem = base.CreateListViewItem(item);
     
    5966      listViewItem.Group = GetListViewGroup(item.HiveExperiment.OwnerUsername);
    6067      return listViewItem;
     68    }
     69
     70    protected override void UpdateListViewItemText(ListViewItem listViewItem) {
     71      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);
     76      listViewItem.ToolTipText = item == null ? string.Empty : item.ItemName + ": " + item.ItemDescription;
    6177    }
    6278
Note: See TracChangeset for help on using the changeset viewer.