Changeset 2801 for trunk/sources/HeuristicLab.Core.Views/3.3
- Timestamp:
- 02/15/10 15:39:26 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Core.Views/3.3
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorGraphView.Designer.cs
r2790 r2801 49 49 this.initialOperatorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 50 50 this.operatorsView = new HeuristicLab.Core.Views.OperatorSetView(); 51 this.graphView = new HeuristicLab.Core.Views.OperatorTreeView();52 51 this.splitContainer = new System.Windows.Forms.SplitContainer(); 53 52 this.graphGroupBox = new System.Windows.Forms.GroupBox(); 53 this.viewHost = new HeuristicLab.Core.Views.ViewHost(); 54 54 this.operatorsContextMenuStrip.SuspendLayout(); 55 55 this.splitContainer.Panel1.SuspendLayout(); … … 82 82 | System.Windows.Forms.AnchorStyles.Right))); 83 83 this.operatorsView.Caption = "Operator Set"; 84 this.operatorsView.Content = null; 84 85 this.operatorsView.Location = new System.Drawing.Point(3, 3); 85 86 this.operatorsView.Name = "operatorsView"; … … 87 88 this.operatorsView.TabIndex = 0; 88 89 this.operatorsView.Load += new System.EventHandler(this.operatorsView_Load); 89 //90 // graphView91 //92 this.graphView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)93 | System.Windows.Forms.AnchorStyles.Left)94 | System.Windows.Forms.AnchorStyles.Right)));95 this.graphView.Caption = "Operator";96 this.graphView.Location = new System.Drawing.Point(6, 19);97 this.graphView.Name = "graphView";98 this.graphView.Size = new System.Drawing.Size(590, 183);99 this.graphView.TabIndex = 0;100 90 // 101 91 // splitContainer … … 122 112 | System.Windows.Forms.AnchorStyles.Left) 123 113 | System.Windows.Forms.AnchorStyles.Right))); 124 this.graphGroupBox.Controls.Add(this. graphView);114 this.graphGroupBox.Controls.Add(this.viewHost); 125 115 this.graphGroupBox.Location = new System.Drawing.Point(3, 3); 126 116 this.graphGroupBox.Name = "graphGroupBox"; … … 129 119 this.graphGroupBox.TabStop = false; 130 120 this.graphGroupBox.Text = "Operator &Graph"; 121 // 122 // viewHost 123 // 124 this.viewHost.Content = null; 125 this.viewHost.Dock = System.Windows.Forms.DockStyle.Fill; 126 this.viewHost.Location = new System.Drawing.Point(3, 16); 127 this.viewHost.Name = "viewHost"; 128 this.viewHost.Size = new System.Drawing.Size(596, 189); 129 this.viewHost.TabIndex = 0; 131 130 // 132 131 // OperatorGraphView … … 151 150 protected System.Windows.Forms.ToolStripMenuItem initialOperatorToolStripMenuItem; 152 151 protected OperatorSetView operatorsView; 153 protected OperatorTreeView graphView;154 152 protected System.Windows.Forms.SplitContainer splitContainer; 155 153 protected System.Windows.Forms.GroupBox graphGroupBox; 154 private ViewHost viewHost; 156 155 } 157 156 } -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorGraphView.cs
r2790 r2801 25 25 using System.Drawing; 26 26 using System.Data; 27 using System.Linq; 27 28 using System.Text; 28 29 using System.Windows.Forms; … … 54 55 InitializeComponent(); 55 56 Caption = "Operator Graph"; 57 this.viewHost.ViewType = typeof(OperatorTreeView); 56 58 } 57 59 /// <summary> … … 90 92 protected override void OnContentChanged() { 91 93 base.OnContentChanged(); 94 Caption = "Operator Graph"; 92 95 operatorsView.Content = null; 93 96 operatorsView.Enabled = false; 94 graphView.Content = null; 95 graphView.Enabled = false; 96 if (Content == null) { 97 Caption = "Operator Graph"; 98 operatorsView.Content = null; 99 operatorsView.Enabled = false; 100 graphView.Content = null; 101 graphView.Enabled = false; 102 } else { 97 viewHost.Content = null; 98 viewHost.Enabled = false; 99 100 if (Content != null) { 103 101 Caption = Content.ItemName + " (" + Content.GetType().Name + ")"; 104 102 operatorsView.Content = Content.Operators; 105 103 operatorsView.Enabled = true; 106 104 MarkInitialOperator(); 107 graphView.Content = Content.InitialOperator;108 graphView.Enabled = true;105 viewHost.Content = Content.InitialOperator; 106 viewHost.Enabled = true; 109 107 } 110 108 } … … 148 146 else { 149 147 MarkInitialOperator(); 150 graphView.Content = Content.InitialOperator;148 viewHost.Content = Content.InitialOperator; 151 149 } 152 150 }
Note: See TracChangeset
for help on using the changeset viewer.