Changeset 11329
- Timestamp:
- 09/02/14 14:41:45 (10 years ago)
- Location:
- branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Orienteering.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Orienteering.Views/3.3/OrienteeringSolutionView.Designer.cs
r11327 r11329 74 74 // pictureBox 75 75 // 76 this.pictureBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 77 | System.Windows.Forms.AnchorStyles.Left) 76 this.pictureBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 77 | System.Windows.Forms.AnchorStyles.Left) 78 78 | System.Windows.Forms.AnchorStyles.Right))); 79 79 this.pictureBox.BackColor = System.Drawing.Color.White; … … 89 89 // 90 90 this.tabControl.AllowDrop = true; 91 this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 92 | System.Windows.Forms.AnchorStyles.Left) 91 this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 92 | System.Windows.Forms.AnchorStyles.Left) 93 93 | System.Windows.Forms.AnchorStyles.Right))); 94 94 this.tabControl.Controls.Add(this.visualizationTabPage); … … 117 117 this.valueTabPage.Name = "valueTabPage"; 118 118 this.valueTabPage.Padding = new System.Windows.Forms.Padding(3); 119 this.valueTabPage.Size = new System.Drawing.Size(2 51, 370);119 this.valueTabPage.Size = new System.Drawing.Size(211, 370); 120 120 this.valueTabPage.TabIndex = 1; 121 121 this.valueTabPage.Text = "Value"; … … 124 124 // tourGroupBox 125 125 // 126 this.tourGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 127 | System.Windows.Forms.AnchorStyles.Left) 126 this.tourGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 127 | System.Windows.Forms.AnchorStyles.Left) 128 128 | System.Windows.Forms.AnchorStyles.Right))); 129 129 this.tourGroupBox.Controls.Add(this.tourViewHost); 130 130 this.tourGroupBox.Location = new System.Drawing.Point(6, 6); 131 131 this.tourGroupBox.Name = "tourGroupBox"; 132 this.tourGroupBox.Size = new System.Drawing.Size( 239, 358);132 this.tourGroupBox.Size = new System.Drawing.Size(199, 358); 133 133 this.tourGroupBox.TabIndex = 0; 134 134 this.tourGroupBox.TabStop = false; … … 137 137 // tourViewHost 138 138 // 139 this.tourViewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 140 | System.Windows.Forms.AnchorStyles.Left) 139 this.tourViewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 140 | System.Windows.Forms.AnchorStyles.Left) 141 141 | System.Windows.Forms.AnchorStyles.Right))); 142 142 this.tourViewHost.Caption = "View"; … … 146 146 this.tourViewHost.Name = "tourViewHost"; 147 147 this.tourViewHost.ReadOnly = false; 148 this.tourViewHost.Size = new System.Drawing.Size( 227, 333);148 this.tourViewHost.Size = new System.Drawing.Size(187, 333); 149 149 this.tourViewHost.TabIndex = 0; 150 150 this.tourViewHost.ViewsLabelVisible = true; … … 175 175 // qualityGroupBox 176 176 // 177 this.qualityGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 177 this.qualityGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 178 178 | System.Windows.Forms.AnchorStyles.Right))); 179 179 this.qualityGroupBox.Controls.Add(this.qualityViewHost); … … 201 201 // distanceGroupBox 202 202 // 203 this.distanceGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 203 this.distanceGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 204 204 | System.Windows.Forms.AnchorStyles.Right))); 205 205 this.distanceGroupBox.Controls.Add(this.distanceViewHost); … … 227 227 // penaltyGroupBox 228 228 // 229 this.penaltyGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 229 this.penaltyGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 230 230 | System.Windows.Forms.AnchorStyles.Right))); 231 231 this.penaltyGroupBox.Controls.Add(this.penaltyViewHost); -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Orienteering.Views/3.3/OrienteeringSolutionView.cs
r11327 r11329 69 69 penaltyViewHost.Content = null; 70 70 distanceViewHost.Content = null; 71 splitContainer.Panel1Collapsed = true; 71 72 pictureBox.Image = null; 72 73 tourViewHost.Content = null; … … 75 76 penaltyViewHost.Content = Content.Penalty; 76 77 distanceViewHost.Content = Content.Distance; 78 SetPanelCollapsing(); 77 79 GenerateImage(); 78 80 tourViewHost.Content = Content.IntegerVector; … … 161 163 } 162 164 165 private void SetPanelCollapsing() { 166 splitContainer.Panel1Collapsed = qualityViewHost.Content == null && penaltyViewHost.Content == null && distanceViewHost.Content == null; 167 } 168 163 169 private void Content_QualityChanged(object sender, EventArgs e) { 164 170 if (InvokeRequired) 165 171 Invoke(new EventHandler(Content_QualityChanged), sender, e); 166 else 172 else { 167 173 qualityViewHost.Content = Content.Quality; 174 SetPanelCollapsing(); 175 } 168 176 } 169 177 private void Content_PenaltyChanged(object sender, EventArgs e) { … … 173 181 penaltyViewHost.Content = Content.Penalty; 174 182 GenerateImage(); 183 SetPanelCollapsing(); 175 184 } 176 185 } … … 179 188 if (InvokeRequired) 180 189 Invoke(new EventHandler(Content_DistanceChanged), sender, e); 181 else 190 else { 182 191 distanceViewHost.Content = Content.Distance; 192 SetPanelCollapsing(); 193 } 183 194 } 184 195 private void Content_CoordinatesChanged(object sender, EventArgs e) {
Note: See TracChangeset
for help on using the changeset viewer.