Changeset 2949 for trunk/sources/HeuristicLab.Core.Views/3.3
- Timestamp:
- 03/06/10 04:48:03 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Core.Views/3.3
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs
r2932 r2949 162 162 T item = itemsListView.SelectedItems[0].Tag as T; 163 163 detailsGroupBox.Enabled = true; 164 viewHost.ViewType = null; 164 165 viewHost.Content = item; 165 166 } else { -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
r2932 r2949 137 137 T item = (T)itemsListView.SelectedItems[0].Tag; 138 138 detailsGroupBox.Enabled = true; 139 viewHost.ViewType = null; 139 140 viewHost.Content = item; 140 141 } else { -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs
r2932 r2949 164 164 T item = (T)itemsListView.SelectedItems[0].Tag; 165 165 detailsGroupBox.Enabled = true; 166 viewHost.ViewType = null; 166 167 viewHost.Content = item; 167 168 } else { -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorGraphView.Designer.cs
r2947 r2949 131 131 this.operatorTreeView.Size = new System.Drawing.Size(590, 183); 132 132 this.operatorTreeView.TabIndex = 0; 133 this.operatorTreeView.SelectedOperatorChanged += new System.EventHandler(this.operatorTreeView_SelectedOperatorChanged); 133 134 // 134 135 // OperatorGraphView -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorGraphView.cs
r2947 r2949 110 110 } 111 111 112 #region Operator Tree View Events 113 protected virtual void operatorTreeView_SelectedOperatorChanged(object sender, EventArgs e) { 114 foreach (ListViewItem item in operatorsView.ItemsListView.Items) 115 item.Selected = item.Tag == operatorTreeView.SelectedOperator; 116 } 117 #endregion 118 112 119 #region Context Menu Events 113 120 protected virtual void operatorsView_Load(object sender, EventArgs e) { -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorTreeView.Designer.cs
r2790 r2949 80 80 this.graphTreeView.BeforeExpand += new System.Windows.Forms.TreeViewCancelEventHandler(this.graphTreeView_BeforeExpand); 81 81 this.graphTreeView.DragDrop += new System.Windows.Forms.DragEventHandler(this.graphTreeView_DragDrop); 82 this.graphTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.graphTreeView_AfterSelect); 82 83 this.graphTreeView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.graphTreeView_MouseDown); 83 84 this.graphTreeView.DragEnter += new System.Windows.Forms.DragEventHandler(this.graphTreeView_DragEnterOver); -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorTreeView.cs
r2917 r2949 49 49 } 50 50 51 private IOperator selectedOperator; 52 public IOperator SelectedOperator { 53 get { return selectedOperator; } 54 private set { 55 if (value != selectedOperator) { 56 selectedOperator = value; 57 OnSelectedOperatorChanged(); 58 } 59 } 60 } 61 51 62 /// <summary> 52 63 /// Initializes a new instance of <see cref="OperatorGraphView"/> with caption "Operator Graph". … … 90 101 } 91 102 103 public event EventHandler SelectedOperatorChanged; 104 private void OnSelectedOperatorChanged() { 105 if (SelectedOperatorChanged != null) 106 SelectedOperatorChanged(this, EventArgs.Empty); 107 } 108 92 109 #region TreeNode Management 93 110 private TreeNode CreateTreeNode(IValueParameter<IOperator> opParam) { … … 299 316 if (opParam != null) opParam.Value = null; 300 317 } 318 } 319 private void graphTreeView_AfterSelect(object sender, TreeViewEventArgs e) { 320 SelectedOperator = graphTreeView.SelectedNode == null ? null : GetOperatorTag(graphTreeView.SelectedNode); 301 321 } 302 322 private void graphContextMenuStrip_Opening(object sender, CancelEventArgs e) { -
trunk/sources/HeuristicLab.Core.Views/3.3/VariableView.cs
r2948 r2949 97 97 clearValueButton.Enabled = Content.Value != null; 98 98 valueGroupBox.Enabled = true; 99 viewHost.ViewType = null; 99 100 viewHost.Content = Content.Value; 100 101 } … … 108 109 dataTypeTextBox.Enabled = Content.Value != null; 109 110 clearValueButton.Enabled = Content.Value != null; 111 viewHost.ViewType = null; 110 112 viewHost.Content = Content.Value; 111 113 }
Note: See TracChangeset
for help on using the changeset viewer.