Changeset 6465 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager
- Timestamp:
- 06/21/11 17:54:32 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.4/Views
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.4/Views/HiveExperimentPermissionView.cs
r6463 r6465 34 34 public HiveExperimentPermissionView() { 35 35 InitializeComponent(); 36 permissionComboBox.Items.Add(Permission.Read Only);36 permissionComboBox.Items.Add(Permission.Read); 37 37 permissionComboBox.Items.Add(Permission.Full); 38 permissionComboBox.SelectedItem = Permission.Read Only;38 permissionComboBox.SelectedItem = Permission.Read; 39 39 } 40 40 -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.4/Views/RefreshableHiveExperimentListView.cs
r6381 r6465 33 33 public RefreshableHiveExperimentListView() { 34 34 InitializeComponent(); 35 this.itemsListView.View = View.Details; 36 this.itemsListView.Columns.Clear(); 37 this.itemsListView.Columns.Add(new ColumnHeader("Date") { Text = "Date" }); 38 this.itemsListView.Columns.Add(new ColumnHeader("Name") { Text = "Name" }); 39 this.itemsListView.HeaderStyle = ColumnHeaderStyle.Clickable; 40 this.itemsListView.FullRowSelect = true; 35 41 } 36 42 … … 45 51 } 46 52 } 53 54 protected override ListViewItem CreateListViewItem(RefreshableHiveExperiment item) { 55 ListViewItem listViewItem = base.CreateListViewItem(item); 56 listViewItem.SubItems.Clear(); 57 listViewItem.SubItems.Insert(0, new ListViewItem.ListViewSubItem(listViewItem, item.HiveExperiment.DateCreated.ToString("dd.MM.yyyy HH:mm"))); 58 listViewItem.SubItems.Insert(1, new ListViewItem.ListViewSubItem(listViewItem, item.HiveExperiment.Name)); 59 listViewItem.Group = GetListViewGroup(item.HiveExperiment.OwnerUsername); 60 return listViewItem; 61 } 62 63 private ListViewGroup GetListViewGroup(string groupName) { 64 foreach (ListViewGroup group in itemsListView.Groups) { 65 if (group.Name == groupName) 66 return group; 67 } 68 var newGroup = new ListViewGroup(string.Format("Owner ({0})", groupName), HorizontalAlignment.Left) { Name = groupName }; 69 itemsListView.Groups.Add(newGroup); 70 return newGroup; 71 } 47 72 } 48 73 }
Note: See TracChangeset
for help on using the changeset viewer.