Changeset 1839 for trunk/sources/HeuristicLab.Visualization/3.2/Options
- Timestamp:
- 05/15/09 18:50:45 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Visualization/3.2/Options
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/3.2/Options/Options.Designer.cs
r1586 r1839 42 42 this.cbLegendPosition = new System.Windows.Forms.ComboBox(); 43 43 this.tpTitle = new System.Windows.Forms.TabPage(); 44 this.label5 = new System.Windows.Forms.Label(); 45 this.tbxTitle = new System.Windows.Forms.TextBox(); 44 46 this.btnChangeTitleFont = new System.Windows.Forms.Button(); 45 47 this.tpXAxis = new System.Windows.Forms.TabPage(); … … 245 247 // tpTitle 246 248 // 249 this.tpTitle.Controls.Add(this.label5); 250 this.tpTitle.Controls.Add(this.tbxTitle); 247 251 this.tpTitle.Controls.Add(this.btnChangeTitleFont); 248 252 this.tpTitle.Location = new System.Drawing.Point(4, 22); … … 253 257 this.tpTitle.UseVisualStyleBackColor = true; 254 258 // 259 // label5 260 // 261 this.label5.AutoSize = true; 262 this.label5.Location = new System.Drawing.Point(3, 6); 263 this.label5.Name = "label5"; 264 this.label5.Size = new System.Drawing.Size(30, 13); 265 this.label5.TabIndex = 3; 266 this.label5.Text = "Title:"; 267 // 268 // tbxTitle 269 // 270 this.tbxTitle.Location = new System.Drawing.Point(39, 3); 271 this.tbxTitle.Name = "tbxTitle"; 272 this.tbxTitle.Size = new System.Drawing.Size(151, 20); 273 this.tbxTitle.TabIndex = 2; 274 this.tbxTitle.TextChanged += new System.EventHandler(this.tbxTitle_TextChanged); 275 // 255 276 // btnChangeTitleFont 256 277 // 257 this.btnChangeTitleFont.Location = new System.Drawing.Point( 3, 3);278 this.btnChangeTitleFont.Location = new System.Drawing.Point(193, 1); 258 279 this.btnChangeTitleFont.Name = "btnChangeTitleFont"; 259 280 this.btnChangeTitleFont.Size = new System.Drawing.Size(94, 23); … … 353 374 this.tabPage2.PerformLayout(); 354 375 this.tpTitle.ResumeLayout(false); 376 this.tpTitle.PerformLayout(); 355 377 this.tpXAxis.ResumeLayout(false); 356 378 this.tpYAxes.ResumeLayout(false); … … 393 415 private System.Windows.Forms.FlowLayoutPanel flpShowYAxis; 394 416 private System.Windows.Forms.FontDialog fdFont; 417 private System.Windows.Forms.TextBox tbxTitle; 418 private System.Windows.Forms.Label label5; 395 419 } 396 420 } -
trunk/sources/HeuristicLab.Visualization/3.2/Options/Options.cs
r1586 r1839 11 11 private ViewSettings oldViewSettings; 12 12 private LineParams[] oldLineParams; 13 private string oldTitle; 13 14 private Dictionary<CheckBox, bool> ShowYAxisBoxes; 14 15 private Dictionary<CheckBox, bool> yAxisClipChangeableBoxes; … … 55 56 set { 56 57 model = value; 58 oldTitle = model.Title; 59 tbxTitle.Text = model.Title; 57 60 viewSettings = model.ViewSettings; 58 61 oldViewSettings = new ViewSettings(model.ViewSettings); … … 73 76 box.Key.Checked = box.Value; 74 77 } 78 79 model.Title = oldTitle; 80 tbxTitle.Text = oldTitle; 75 81 76 82 viewSettings.LegendColor = oldViewSettings.LegendColor; … … 231 237 } 232 238 } 239 240 private void tbxTitle_TextChanged(object sender, EventArgs e) { 241 model.Title = tbxTitle.Text; 242 model.ViewSettings.UpdateView(); 243 } 233 244 } 234 245 }
Note: See TracChangeset
for help on using the changeset viewer.