Changeset 1328 for trunk/sources/HeuristicLab.Visualization/Options
- Timestamp:
- 03/11/09 22:13:54 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Visualization/Options
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/Options/OptionsDialog.Designer.cs
r1237 r1328 24 24 /// </summary> 25 25 private void InitializeComponent() { 26 this.Optionstabs = new System.Windows.Forms.TabControl();27 this.tabPage1 = new System.Windows.Forms.TabPage();28 this.OptionsDialogSelectColorBt = new System.Windows.Forms.Button();29 this.ColorPreviewTB = new System.Windows.Forms.TextBox();30 this.label2 = new System.Windows.Forms.Label();31 this.LinestyleCB = new System.Windows.Forms.ComboBox();32 this.label1 = new System.Windows.Forms.Label();33 this.LineSelectCB = new System.Windows.Forms.ComboBox();34 this.groupBox1 = new System.Windows.Forms.GroupBox();35 this.label4 = new System.Windows.Forms.Label();36 this.LineThicknessCB = new System.Windows.Forms.ComboBox();37 this.label3 = new System.Windows.Forms.Label();38 this.tabPage2 = new System.Windows.Forms.TabPage();39 this.labelposition = new System.Windows.Forms.Label();40 this.cbLabelPosition = new System.Windows.Forms.ComboBox();41 26 this.OptionsDialogCancelButton = new System.Windows.Forms.Button(); 42 27 this.OptionsDialogOkButton = new System.Windows.Forms.Button(); 43 28 this.OptionsDialogApplyBtn = new System.Windows.Forms.Button(); 44 this.Optionstabs.SuspendLayout(); 29 this.fdFont = new System.Windows.Forms.FontDialog(); 30 this.tpTitle = new System.Windows.Forms.TabPage(); 31 this.btnChangeTitleFont = new System.Windows.Forms.Button(); 32 this.tabPage2 = new System.Windows.Forms.TabPage(); 33 this.cbLabelPosition = new System.Windows.Forms.ComboBox(); 34 this.labelposition = new System.Windows.Forms.Label(); 35 this.tabPage1 = new System.Windows.Forms.TabPage(); 36 this.groupBox1 = new System.Windows.Forms.GroupBox(); 37 this.label3 = new System.Windows.Forms.Label(); 38 this.LineThicknessCB = new System.Windows.Forms.ComboBox(); 39 this.label4 = new System.Windows.Forms.Label(); 40 this.LineSelectCB = new System.Windows.Forms.ComboBox(); 41 this.label1 = new System.Windows.Forms.Label(); 42 this.LinestyleCB = new System.Windows.Forms.ComboBox(); 43 this.label2 = new System.Windows.Forms.Label(); 44 this.ColorPreviewTB = new System.Windows.Forms.TextBox(); 45 this.OptionsDialogSelectColorBt = new System.Windows.Forms.Button(); 46 this.Optionstabs = new System.Windows.Forms.TabControl(); 47 this.btnChangeLegendFont = new System.Windows.Forms.Button(); 48 this.tpTitle.SuspendLayout(); 49 this.tabPage2.SuspendLayout(); 45 50 this.tabPage1.SuspendLayout(); 46 51 this.groupBox1.SuspendLayout(); 47 this. tabPage2.SuspendLayout();52 this.Optionstabs.SuspendLayout(); 48 53 this.SuspendLayout(); 49 54 // 50 // Optionstabs 51 // 52 this.Optionstabs.Controls.Add(this.tabPage1); 53 this.Optionstabs.Controls.Add(this.tabPage2); 54 this.Optionstabs.Location = new System.Drawing.Point(0, 1); 55 this.Optionstabs.Name = "Optionstabs"; 56 this.Optionstabs.SelectedIndex = 0; 57 this.Optionstabs.Size = new System.Drawing.Size(292, 225); 58 this.Optionstabs.TabIndex = 0; 55 // OptionsDialogCancelButton 56 // 57 this.OptionsDialogCancelButton.Location = new System.Drawing.Point(213, 232); 58 this.OptionsDialogCancelButton.Name = "OptionsDialogCancelButton"; 59 this.OptionsDialogCancelButton.Size = new System.Drawing.Size(75, 23); 60 this.OptionsDialogCancelButton.TabIndex = 1; 61 this.OptionsDialogCancelButton.Text = "Cancel"; 62 this.OptionsDialogCancelButton.UseVisualStyleBackColor = true; 63 this.OptionsDialogCancelButton.Click += new System.EventHandler(this.OptionsDialogCancelButton_Click); 64 // 65 // OptionsDialogOkButton 66 // 67 this.OptionsDialogOkButton.Location = new System.Drawing.Point(43, 232); 68 this.OptionsDialogOkButton.Name = "OptionsDialogOkButton"; 69 this.OptionsDialogOkButton.Size = new System.Drawing.Size(75, 23); 70 this.OptionsDialogOkButton.TabIndex = 2; 71 this.OptionsDialogOkButton.Text = "OK"; 72 this.OptionsDialogOkButton.UseVisualStyleBackColor = true; 73 this.OptionsDialogOkButton.Click += new System.EventHandler(this.OptionsDialogOkButton_Click); 74 // 75 // OptionsDialogApplyBtn 76 // 77 this.OptionsDialogApplyBtn.Location = new System.Drawing.Point(128, 231); 78 this.OptionsDialogApplyBtn.Name = "OptionsDialogApplyBtn"; 79 this.OptionsDialogApplyBtn.Size = new System.Drawing.Size(75, 23); 80 this.OptionsDialogApplyBtn.TabIndex = 3; 81 this.OptionsDialogApplyBtn.Text = "Apply"; 82 this.OptionsDialogApplyBtn.UseVisualStyleBackColor = true; 83 this.OptionsDialogApplyBtn.Click += new System.EventHandler(this.OptionsDialogApplyBtn_Click); 84 // 85 // fdFont 86 // 87 this.fdFont.ShowColor = true; 88 // 89 // tpTitle 90 // 91 this.tpTitle.Controls.Add(this.btnChangeTitleFont); 92 this.tpTitle.Location = new System.Drawing.Point(4, 22); 93 this.tpTitle.Name = "tpTitle"; 94 this.tpTitle.Size = new System.Drawing.Size(284, 199); 95 this.tpTitle.TabIndex = 2; 96 this.tpTitle.Text = "Title"; 97 this.tpTitle.UseVisualStyleBackColor = true; 98 // 99 // btnChangeTitleFont 100 // 101 this.btnChangeTitleFont.Location = new System.Drawing.Point(3, 3); 102 this.btnChangeTitleFont.Name = "btnChangeTitleFont"; 103 this.btnChangeTitleFont.Size = new System.Drawing.Size(94, 23); 104 this.btnChangeTitleFont.TabIndex = 1; 105 this.btnChangeTitleFont.Text = "Change Font"; 106 this.btnChangeTitleFont.UseVisualStyleBackColor = true; 107 this.btnChangeTitleFont.Click += new System.EventHandler(this.btnChangeTitleFont_Click); 108 // 109 // tabPage2 110 // 111 this.tabPage2.Controls.Add(this.btnChangeLegendFont); 112 this.tabPage2.Controls.Add(this.labelposition); 113 this.tabPage2.Controls.Add(this.cbLabelPosition); 114 this.tabPage2.Location = new System.Drawing.Point(4, 22); 115 this.tabPage2.Name = "tabPage2"; 116 this.tabPage2.Padding = new System.Windows.Forms.Padding(3); 117 this.tabPage2.Size = new System.Drawing.Size(284, 199); 118 this.tabPage2.TabIndex = 1; 119 this.tabPage2.Text = "Legend"; 120 this.tabPage2.UseVisualStyleBackColor = true; 121 // 122 // cbLabelPosition 123 // 124 this.cbLabelPosition.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 125 this.cbLabelPosition.FormattingEnabled = true; 126 this.cbLabelPosition.Items.AddRange(new object[] { 127 "left", 128 "right", 129 "top", 130 "bottom"}); 131 this.cbLabelPosition.Location = new System.Drawing.Point(81, 44); 132 this.cbLabelPosition.Name = "cbLabelPosition"; 133 this.cbLabelPosition.Size = new System.Drawing.Size(121, 21); 134 this.cbLabelPosition.TabIndex = 0; 135 // 136 // labelposition 137 // 138 this.labelposition.AutoSize = true; 139 this.labelposition.Location = new System.Drawing.Point(3, 47); 140 this.labelposition.Name = "labelposition"; 141 this.labelposition.Size = new System.Drawing.Size(72, 13); 142 this.labelposition.TabIndex = 1; 143 this.labelposition.Text = "Labelposition:"; 59 144 // 60 145 // tabPage1 … … 75 160 this.tabPage1.UseVisualStyleBackColor = true; 76 161 // 77 // OptionsDialogSelectColorBt78 //79 this.OptionsDialogSelectColorBt.Location = new System.Drawing.Point(217, 126);80 this.OptionsDialogSelectColorBt.Name = "OptionsDialogSelectColorBt";81 this.OptionsDialogSelectColorBt.Size = new System.Drawing.Size(50, 23);82 this.OptionsDialogSelectColorBt.TabIndex = 7;83 this.OptionsDialogSelectColorBt.Text = "Select";84 this.OptionsDialogSelectColorBt.UseVisualStyleBackColor = true;85 this.OptionsDialogSelectColorBt.Click += new System.EventHandler(this.OptionsDialogSelectColorBtn_Click);86 //87 // ColorPreviewTB88 //89 this.ColorPreviewTB.Location = new System.Drawing.Point(146, 127);90 this.ColorPreviewTB.Name = "ColorPreviewTB";91 this.ColorPreviewTB.ReadOnly = true;92 this.ColorPreviewTB.Size = new System.Drawing.Size(64, 20);93 this.ColorPreviewTB.TabIndex = 6;94 //95 // label296 //97 this.label2.AutoSize = true;98 this.label2.Location = new System.Drawing.Point(36, 80);99 this.label2.Name = "label2";100 this.label2.Size = new System.Drawing.Size(30, 13);101 this.label2.TabIndex = 3;102 this.label2.Text = "Style";103 //104 // LinestyleCB105 //106 this.LinestyleCB.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;107 this.LinestyleCB.FormattingEnabled = true;108 this.LinestyleCB.Location = new System.Drawing.Point(146, 73);109 this.LinestyleCB.Name = "LinestyleCB";110 this.LinestyleCB.Size = new System.Drawing.Size(121, 21);111 this.LinestyleCB.TabIndex = 2;112 //113 // label1114 //115 this.label1.AutoSize = true;116 this.label1.Location = new System.Drawing.Point(7, 37);117 this.label1.Name = "label1";118 this.label1.Size = new System.Drawing.Size(72, 13);119 this.label1.TabIndex = 1;120 this.label1.Text = "Selected Line";121 //122 // LineSelectCB123 //124 this.LineSelectCB.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;125 this.LineSelectCB.FormattingEnabled = true;126 this.LineSelectCB.Location = new System.Drawing.Point(146, 30);127 this.LineSelectCB.Name = "LineSelectCB";128 this.LineSelectCB.Size = new System.Drawing.Size(121, 21);129 this.LineSelectCB.TabIndex = 0;130 this.LineSelectCB.SelectedIndexChanged += new System.EventHandler(this.LineSelectCB_SelectedIndexChanged);131 //132 162 // groupBox1 133 163 // … … 142 172 this.groupBox1.Text = "Details"; 143 173 // 174 // label3 175 // 176 this.label3.AutoSize = true; 177 this.label3.Location = new System.Drawing.Point(32, 52); 178 this.label3.Name = "label3"; 179 this.label3.Size = new System.Drawing.Size(56, 13); 180 this.label3.TabIndex = 5; 181 this.label3.Text = "Thickness"; 182 // 183 // LineThicknessCB 184 // 185 this.LineThicknessCB.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 186 this.LineThicknessCB.FormattingEnabled = true; 187 this.LineThicknessCB.Location = new System.Drawing.Point(142, 46); 188 this.LineThicknessCB.Name = "LineThicknessCB"; 189 this.LineThicknessCB.Size = new System.Drawing.Size(121, 21); 190 this.LineThicknessCB.TabIndex = 4; 191 // 144 192 // label4 145 193 // … … 151 199 this.label4.Text = "Color"; 152 200 // 153 // LineThicknessCB 154 // 155 this.LineThicknessCB.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 156 this.LineThicknessCB.FormattingEnabled = true; 157 this.LineThicknessCB.Location = new System.Drawing.Point(142, 46); 158 this.LineThicknessCB.Name = "LineThicknessCB"; 159 this.LineThicknessCB.Size = new System.Drawing.Size(121, 21); 160 this.LineThicknessCB.TabIndex = 4; 161 // 162 // label3 163 // 164 this.label3.AutoSize = true; 165 this.label3.Location = new System.Drawing.Point(32, 52); 166 this.label3.Name = "label3"; 167 this.label3.Size = new System.Drawing.Size(56, 13); 168 this.label3.TabIndex = 5; 169 this.label3.Text = "Thickness"; 170 // 171 // tabPage2 172 // 173 this.tabPage2.Controls.Add(this.labelposition); 174 this.tabPage2.Controls.Add(this.cbLabelPosition); 175 this.tabPage2.Location = new System.Drawing.Point(4, 22); 176 this.tabPage2.Name = "tabPage2"; 177 this.tabPage2.Padding = new System.Windows.Forms.Padding(3); 178 this.tabPage2.Size = new System.Drawing.Size(284, 199); 179 this.tabPage2.TabIndex = 1; 180 this.tabPage2.Text = "Legend"; 181 this.tabPage2.UseVisualStyleBackColor = true; 182 // 183 // labelposition 184 // 185 this.labelposition.AutoSize = true; 186 this.labelposition.Location = new System.Drawing.Point(8, 38); 187 this.labelposition.Name = "labelposition"; 188 this.labelposition.Size = new System.Drawing.Size(72, 13); 189 this.labelposition.TabIndex = 1; 190 this.labelposition.Text = "Labelposition:"; 191 // 192 // cbLabelPosition 193 // 194 this.cbLabelPosition.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 195 this.cbLabelPosition.FormattingEnabled = true; 196 this.cbLabelPosition.Items.AddRange(new object[] { 197 "left", 198 "right", 199 "top", 200 "bottom"}); 201 this.cbLabelPosition.Location = new System.Drawing.Point(86, 34); 202 this.cbLabelPosition.Name = "cbLabelPosition"; 203 this.cbLabelPosition.Size = new System.Drawing.Size(121, 21); 204 this.cbLabelPosition.TabIndex = 0; 205 // 206 // OptionsDialogCancelButton 207 // 208 this.OptionsDialogCancelButton.Location = new System.Drawing.Point(213, 232); 209 this.OptionsDialogCancelButton.Name = "OptionsDialogCancelButton"; 210 this.OptionsDialogCancelButton.Size = new System.Drawing.Size(75, 23); 211 this.OptionsDialogCancelButton.TabIndex = 1; 212 this.OptionsDialogCancelButton.Text = "Cancel"; 213 this.OptionsDialogCancelButton.UseVisualStyleBackColor = true; 214 this.OptionsDialogCancelButton.Click += new System.EventHandler(this.OptionsDialogCancelButton_Click); 215 // 216 // OptionsDialogOkButton 217 // 218 this.OptionsDialogOkButton.Location = new System.Drawing.Point(43, 232); 219 this.OptionsDialogOkButton.Name = "OptionsDialogOkButton"; 220 this.OptionsDialogOkButton.Size = new System.Drawing.Size(75, 23); 221 this.OptionsDialogOkButton.TabIndex = 2; 222 this.OptionsDialogOkButton.Text = "OK"; 223 this.OptionsDialogOkButton.UseVisualStyleBackColor = true; 224 this.OptionsDialogOkButton.Click += new System.EventHandler(this.OptionsDialogOkButton_Click); 225 // 226 // OptionsDialogApplyBtn 227 // 228 this.OptionsDialogApplyBtn.Location = new System.Drawing.Point(128, 231); 229 this.OptionsDialogApplyBtn.Name = "OptionsDialogApplyBtn"; 230 this.OptionsDialogApplyBtn.Size = new System.Drawing.Size(75, 23); 231 this.OptionsDialogApplyBtn.TabIndex = 3; 232 this.OptionsDialogApplyBtn.Text = "Apply"; 233 this.OptionsDialogApplyBtn.UseVisualStyleBackColor = true; 234 this.OptionsDialogApplyBtn.Click += new System.EventHandler(this.OptionsDialogApplyBtn_Click); 201 // LineSelectCB 202 // 203 this.LineSelectCB.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 204 this.LineSelectCB.FormattingEnabled = true; 205 this.LineSelectCB.Location = new System.Drawing.Point(146, 30); 206 this.LineSelectCB.Name = "LineSelectCB"; 207 this.LineSelectCB.Size = new System.Drawing.Size(121, 21); 208 this.LineSelectCB.TabIndex = 0; 209 this.LineSelectCB.SelectedIndexChanged += new System.EventHandler(this.LineSelectCB_SelectedIndexChanged); 210 // 211 // label1 212 // 213 this.label1.AutoSize = true; 214 this.label1.Location = new System.Drawing.Point(7, 37); 215 this.label1.Name = "label1"; 216 this.label1.Size = new System.Drawing.Size(72, 13); 217 this.label1.TabIndex = 1; 218 this.label1.Text = "Selected Line"; 219 // 220 // LinestyleCB 221 // 222 this.LinestyleCB.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 223 this.LinestyleCB.FormattingEnabled = true; 224 this.LinestyleCB.Location = new System.Drawing.Point(146, 73); 225 this.LinestyleCB.Name = "LinestyleCB"; 226 this.LinestyleCB.Size = new System.Drawing.Size(121, 21); 227 this.LinestyleCB.TabIndex = 2; 228 // 229 // label2 230 // 231 this.label2.AutoSize = true; 232 this.label2.Location = new System.Drawing.Point(36, 80); 233 this.label2.Name = "label2"; 234 this.label2.Size = new System.Drawing.Size(30, 13); 235 this.label2.TabIndex = 3; 236 this.label2.Text = "Style"; 237 // 238 // ColorPreviewTB 239 // 240 this.ColorPreviewTB.Location = new System.Drawing.Point(146, 127); 241 this.ColorPreviewTB.Name = "ColorPreviewTB"; 242 this.ColorPreviewTB.ReadOnly = true; 243 this.ColorPreviewTB.Size = new System.Drawing.Size(64, 20); 244 this.ColorPreviewTB.TabIndex = 6; 245 // 246 // OptionsDialogSelectColorBt 247 // 248 this.OptionsDialogSelectColorBt.Location = new System.Drawing.Point(217, 126); 249 this.OptionsDialogSelectColorBt.Name = "OptionsDialogSelectColorBt"; 250 this.OptionsDialogSelectColorBt.Size = new System.Drawing.Size(50, 23); 251 this.OptionsDialogSelectColorBt.TabIndex = 7; 252 this.OptionsDialogSelectColorBt.Text = "Select"; 253 this.OptionsDialogSelectColorBt.UseVisualStyleBackColor = true; 254 this.OptionsDialogSelectColorBt.Click += new System.EventHandler(this.OptionsDialogSelectColorBtn_Click); 255 // 256 // Optionstabs 257 // 258 this.Optionstabs.Controls.Add(this.tabPage1); 259 this.Optionstabs.Controls.Add(this.tabPage2); 260 this.Optionstabs.Controls.Add(this.tpTitle); 261 this.Optionstabs.Location = new System.Drawing.Point(0, 1); 262 this.Optionstabs.Name = "Optionstabs"; 263 this.Optionstabs.SelectedIndex = 0; 264 this.Optionstabs.Size = new System.Drawing.Size(292, 225); 265 this.Optionstabs.TabIndex = 0; 266 // 267 // btnChangeLegendFont 268 // 269 this.btnChangeLegendFont.Location = new System.Drawing.Point(3, 6); 270 this.btnChangeLegendFont.Name = "btnChangeLegendFont"; 271 this.btnChangeLegendFont.Size = new System.Drawing.Size(94, 23); 272 this.btnChangeLegendFont.TabIndex = 2; 273 this.btnChangeLegendFont.Text = "Change Font"; 274 this.btnChangeLegendFont.UseVisualStyleBackColor = true; 275 this.btnChangeLegendFont.Click += new System.EventHandler(this.btnChangeLegendFont_Click); 235 276 // 236 277 // OptionsDialog … … 248 289 this.Text = "OptionsDialog"; 249 290 this.Load += new System.EventHandler(this.OptionsDialog_Load); 250 this.Optionstabs.ResumeLayout(false); 291 this.tpTitle.ResumeLayout(false); 292 this.tabPage2.ResumeLayout(false); 293 this.tabPage2.PerformLayout(); 251 294 this.tabPage1.ResumeLayout(false); 252 295 this.tabPage1.PerformLayout(); 253 296 this.groupBox1.ResumeLayout(false); 254 297 this.groupBox1.PerformLayout(); 255 this.tabPage2.ResumeLayout(false); 256 this.tabPage2.PerformLayout(); 298 this.Optionstabs.ResumeLayout(false); 257 299 this.ResumeLayout(false); 258 300 … … 261 303 #endregion 262 304 263 private System.Windows.Forms.TabControl Optionstabs; 305 private System.Windows.Forms.Button OptionsDialogCancelButton; 306 private System.Windows.Forms.Button OptionsDialogOkButton; 307 private System.Windows.Forms.Button OptionsDialogApplyBtn; 308 private System.Windows.Forms.FontDialog fdFont; 309 private System.Windows.Forms.TabPage tpTitle; 310 private System.Windows.Forms.Button btnChangeTitleFont; 311 private System.Windows.Forms.TabPage tabPage2; 312 private System.Windows.Forms.Label labelposition; 313 private System.Windows.Forms.ComboBox cbLabelPosition; 264 314 private System.Windows.Forms.TabPage tabPage1; 265 private System.Windows.Forms.TabPage tabPage2; 315 private System.Windows.Forms.Button OptionsDialogSelectColorBt; 316 private System.Windows.Forms.TextBox ColorPreviewTB; 317 private System.Windows.Forms.Label label2; 318 private System.Windows.Forms.ComboBox LinestyleCB; 266 319 private System.Windows.Forms.Label label1; 267 320 private System.Windows.Forms.ComboBox LineSelectCB; 268 private System.Windows.Forms.Button OptionsDialogSelectColorBt; 269 private System.Windows.Forms.TextBox ColorPreviewTB; 321 private System.Windows.Forms.GroupBox groupBox1; 322 private System.Windows.Forms.Label label4; 323 private System.Windows.Forms.ComboBox LineThicknessCB; 270 324 private System.Windows.Forms.Label label3; 271 private System.Windows.Forms.ComboBox LineThicknessCB; 272 private System.Windows.Forms.Label label2; 273 private System.Windows.Forms.ComboBox LinestyleCB; 274 private System.Windows.Forms.Label label4; 275 private System.Windows.Forms.GroupBox groupBox1; 276 private System.Windows.Forms.Button OptionsDialogCancelButton; 277 private System.Windows.Forms.Button OptionsDialogOkButton; 278 private System.Windows.Forms.ComboBox cbLabelPosition; 279 private System.Windows.Forms.Label labelposition; 280 private System.Windows.Forms.Button OptionsDialogApplyBtn; 325 private System.Windows.Forms.TabControl Optionstabs; 326 private System.Windows.Forms.Button btnChangeLegendFont; 281 327 } 282 328 } -
trunk/sources/HeuristicLab.Visualization/Options/OptionsDialog.cs
r1242 r1328 6 6 public partial class OptionsDialog : Form { 7 7 private readonly IChartDataRowsModel model; 8 private readonly LineChart lineChart; 8 9 9 public OptionsDialog(IChartDataRowsModel model ) {10 public OptionsDialog(IChartDataRowsModel model, LineChart lineChart) { 10 11 InitializeComponent(); 11 12 this.model = model; 13 this.lineChart = lineChart; 12 14 } 13 15 … … 41 43 if (LineSelectCB.SelectedValue != null) { 42 44 int index = 43 LineThicknessCB.FindStringExact(((IDataRow) 45 LineThicknessCB.FindStringExact(((IDataRow)LineSelectCB.SelectedValue).Thickness.ToString()); 44 46 LineThicknessCB.SelectedIndex = index; 45 index = LinestyleCB.FindStringExact(((IDataRow) 47 index = LinestyleCB.FindStringExact(((IDataRow)LineSelectCB.SelectedValue).Style.ToString()); 46 48 LinestyleCB.SelectedIndex = index; 47 ColorPreviewTB.BackColor = ((IDataRow) 49 ColorPreviewTB.BackColor = ((IDataRow)LineSelectCB.SelectedValue).Color; 48 50 } 49 51 } … … 54 56 55 57 private void OptionsDialogOkButton_Click(object sender, EventArgs e) { 56 if (LineSelectCB.SelectedValue != null) { 57 ((IDataRow) LineSelectCB.SelectedValue).Thickness = (int) LineThicknessCB.SelectedItem; 58 ((IDataRow) LineSelectCB.SelectedValue).Color = ColorPreviewTB.BackColor; 59 ((IDataRow) LineSelectCB.SelectedValue).Style = (DrawingStyle) LinestyleCB.SelectedItem; 60 } 58 ApplyChanges(); 59 61 60 Close(); 62 61 } 63 62 64 63 private void OptionsDialogApplyBtn_Click(object sender, EventArgs e) { 64 ApplyChanges(); 65 } 66 67 private void ApplyChanges() { 65 68 if (LineSelectCB.SelectedValue != null) { 66 ((IDataRow) LineSelectCB.SelectedValue).Thickness = (int) LineThicknessCB.SelectedItem; 67 ((IDataRow) LineSelectCB.SelectedValue).Color = ColorPreviewTB.BackColor; 68 ((IDataRow) LineSelectCB.SelectedValue).Style = (DrawingStyle) LinestyleCB.SelectedItem; 69 ((IDataRow)LineSelectCB.SelectedValue).Thickness = (int)LineThicknessCB.SelectedItem; 70 ((IDataRow)LineSelectCB.SelectedValue).Color = ColorPreviewTB.BackColor; 71 ((IDataRow)LineSelectCB.SelectedValue).Style = (DrawingStyle)LinestyleCB.SelectedItem; 72 } 73 74 lineChart.Invalidate(true); 75 } 76 77 private void btnChangeTitleFont_Click(object sender, EventArgs e) { 78 fdFont.Font = lineChart.Title.Font; 79 fdFont.Color = lineChart.Title.Color; 80 81 DialogResult dr = fdFont.ShowDialog(); 82 83 if(dr == DialogResult.OK) { 84 lineChart.Title.Font = fdFont.Font; 85 lineChart.Title.Color = fdFont.Color; 86 } 87 } 88 89 private void btnChangeLegendFont_Click(object sender, EventArgs e) { 90 // fdFont.Font = lineChart.Legend.Font; 91 // fdFont.Color = lineChart.Legend.Color; 92 93 DialogResult dr = fdFont.ShowDialog(); 94 95 if (dr == DialogResult.OK) { 96 // lineChart.Legend.Font = fdFont.Font; 97 // lineChart.Legend.Color = fdFont.Color; 69 98 } 70 99 } -
trunk/sources/HeuristicLab.Visualization/Options/OptionsDialog.resx
r1195 r1328 118 118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 119 119 </resheader> 120 <metadata name="fdFont.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 121 <value>17, 17</value> 122 </metadata> 120 123 </root>
Note: See TracChangeset
for help on using the changeset viewer.