Changeset 7268 for branches/HeuristicLab.TimeSeries/HeuristicLab.Clients.Hive.Views/3.3/TreeView/ItemTreeView.cs
- Timestamp:
- 01/03/12 11:22:21 (12 years ago)
- Location:
- branches/HeuristicLab.TimeSeries
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.TimeSeries
- Property svn:mergeinfo changed
/trunk/sources merged: 7214,7216-7230,7233-7239,7241,7243-7252,7254,7256-7261,7265-7266
- Property svn:mergeinfo changed
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Clients.Hive.Views/3.3
- Property svn:ignore
-
old new 1 1 obj 2 2 Plugin.cs 3 *.vs10x
-
- Property svn:ignore
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Clients.Hive.Views/3.3/TreeView/ItemTreeView.cs
r7056 r7268 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 1Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 345 345 346 346 protected virtual void contextMenuStrip_Opening(object sender, CancelEventArgs e) { 347 if (treeView.SelectedNode != null) { 347 if (treeView.SelectedNode == null) { 348 e.Cancel = true; 349 } else { 348 350 T selectedItem = treeView.SelectedNode.Tag as T; 349 351 T parentItem = GetParentItem(selectedItem); … … 353 355 contextMenuStrip.Items.Add(new DelegateMenuItem<T>(action.Name, action.Image, new Action<T, T>(action.Execute), selectedItem, parentItem)); 354 356 } 357 e.Cancel = contextMenuStrip.Items.Count == 0; 355 358 } 356 359 }
Note: See TracChangeset
for help on using the changeset viewer.