Changeset 8331 for branches/ScatterSearch (trunk integration)/HeuristicLab.Clients.Hive.Views/3.3/TreeView/ItemTreeView.cs
- Timestamp:
- 07/26/12 09:51:13 (12 years ago)
- Location:
- branches/ScatterSearch (trunk integration)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ScatterSearch (trunk integration)
- Property svn:ignore
-
old new 21 21 protoc.exe 22 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/ScatterSearch (trunk integration)/HeuristicLab.Clients.Hive.Views/3.3/TreeView/ItemTreeView.cs
r8086 r8331 36 36 [View("ItemTree View")] 37 37 [Content(typeof(ItemCollection<>), IsDefaultView = false)] 38 public partial class ItemTreeView<T> : ItemView where T : class, IItemTree<T> {38 public abstract partial class ItemTreeView<T> : ItemView where T : class, IItemTree<T> { 39 39 public new ItemCollection<T> Content { 40 40 get { return (ItemCollection<T>)base.Content; } … … 360 360 361 361 protected virtual void addButton_Click(object sender, EventArgs e) { 362 T item = CreateItem<T>(); 363 if (item != null) 364 Content.Add(item); 362 AddItem(); 365 363 } 366 364 367 365 protected virtual void removeButton_Click(object sender, EventArgs e) { 368 366 if (treeView.SelectedNode != null) { 367 RemoveItem(treeView.SelectedNode.Tag as T); 369 368 detailsViewHost.Content = null; 370 369 } 371 370 } 371 372 protected abstract void AddItem(); 373 374 protected abstract void RemoveItem(T item); 372 375 373 376 protected virtual void showDetailsCheckBox_CheckedChanged(object sender, EventArgs e) {
Note: See TracChangeset
for help on using the changeset viewer.