Changeset 5388 for trunk/tools/Templates/HeuristicLab.VS2010Wizards
- Timestamp:
- 01/28/11 00:51:34 (13 years ago)
- Location:
- trunk/tools/Templates/HeuristicLab.VS2010Wizards
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/Templates/HeuristicLab.VS2010Wizards/ProblemWizardForm.Designer.cs
r4214 r5388 37 37 this.page2Panel = new System.Windows.Forms.Panel(); 38 38 this.label3 = new System.Windows.Forms.Label(); 39 this.parametersControl = new HeuristicLab.VS2010Wizards.ParametersControl(); 39 40 this.panel2 = new System.Windows.Forms.Panel(); 40 41 this.nextButton = new System.Windows.Forms.Button(); 41 42 this.previousButton = new System.Windows.Forms.Button(); 42 43 this.page1Panel = new System.Windows.Forms.Panel(); 43 this.singleObjectiveCheckBox = new System.Windows.Forms.CheckBox();44 this.contentPanel = new System.Windows.Forms.Panel();45 44 this.solutionCreatorTypeTextBox = new System.Windows.Forms.TextBox(); 46 45 this.evaluatorTypeTextBox = new System.Windows.Forms.TextBox(); 47 46 this.label6 = new System.Windows.Forms.Label(); 48 47 this.label5 = new System.Windows.Forms.Label(); 49 this.parametersControl = new HeuristicLab.VS2010Wizards.ParametersControl(); 48 this.singleObjectiveCheckBox = new System.Windows.Forms.CheckBox(); 49 this.contentPanel = new System.Windows.Forms.Panel(); 50 50 this.panel1.SuspendLayout(); 51 51 ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); … … 177 177 this.label3.TabIndex = 1; 178 178 this.label3.Text = "Parameters:"; 179 // 180 // parametersControl 181 // 182 this.parametersControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 183 | System.Windows.Forms.AnchorStyles.Left) 184 | System.Windows.Forms.AnchorStyles.Right))); 185 this.parametersControl.Location = new System.Drawing.Point(0, 33); 186 this.parametersControl.Name = "parametersControl"; 187 this.parametersControl.Size = new System.Drawing.Size(676, 260); 188 this.parametersControl.TabIndex = 0; 179 189 // 180 190 // panel2 … … 230 240 this.page1Panel.TabIndex = 9; 231 241 // 242 // solutionCreatorTypeTextBox 243 // 244 this.solutionCreatorTypeTextBox.Anchor = System.Windows.Forms.AnchorStyles.None; 245 this.solutionCreatorTypeTextBox.Location = new System.Drawing.Point(103, 236); 246 this.solutionCreatorTypeTextBox.Name = "solutionCreatorTypeTextBox"; 247 this.solutionCreatorTypeTextBox.Size = new System.Drawing.Size(468, 20); 248 this.solutionCreatorTypeTextBox.TabIndex = 8; 249 this.solutionCreatorTypeTextBox.Text = "IMyProblemSolutionCreator"; 250 this.solutionCreatorTypeTextBox.TextChanged += new System.EventHandler(this.solutionCreatorTypeTextBox_TextChanged); 251 // 252 // evaluatorTypeTextBox 253 // 254 this.evaluatorTypeTextBox.Anchor = System.Windows.Forms.AnchorStyles.None; 255 this.evaluatorTypeTextBox.Location = new System.Drawing.Point(103, 197); 256 this.evaluatorTypeTextBox.Name = "evaluatorTypeTextBox"; 257 this.evaluatorTypeTextBox.Size = new System.Drawing.Size(468, 20); 258 this.evaluatorTypeTextBox.TabIndex = 9; 259 this.evaluatorTypeTextBox.Text = "IMyProblemEvaluator"; 260 this.evaluatorTypeTextBox.TextChanged += new System.EventHandler(this.evaluatorTypeTextBox_TextChanged); 261 // 262 // label6 263 // 264 this.label6.Anchor = System.Windows.Forms.AnchorStyles.None; 265 this.label6.AutoSize = true; 266 this.label6.Location = new System.Drawing.Point(100, 220); 267 this.label6.Name = "label6"; 268 this.label6.Size = new System.Drawing.Size(112, 13); 269 this.label6.TabIndex = 6; 270 this.label6.Text = "Solution Creator Type:"; 271 // 272 // label5 273 // 274 this.label5.Anchor = System.Windows.Forms.AnchorStyles.None; 275 this.label5.AutoSize = true; 276 this.label5.Location = new System.Drawing.Point(100, 181); 277 this.label5.Name = "label5"; 278 this.label5.Size = new System.Drawing.Size(82, 13); 279 this.label5.TabIndex = 7; 280 this.label5.Text = "Evaluator Type:"; 281 // 232 282 // singleObjectiveCheckBox 233 283 // … … 255 305 this.contentPanel.Size = new System.Drawing.Size(676, 293); 256 306 this.contentPanel.TabIndex = 11; 257 //258 // solutionCreatorTypeTextBox259 //260 this.solutionCreatorTypeTextBox.Anchor = System.Windows.Forms.AnchorStyles.None;261 this.solutionCreatorTypeTextBox.Location = new System.Drawing.Point(103, 236);262 this.solutionCreatorTypeTextBox.Name = "solutionCreatorTypeTextBox";263 this.solutionCreatorTypeTextBox.Size = new System.Drawing.Size(468, 20);264 this.solutionCreatorTypeTextBox.TabIndex = 8;265 this.solutionCreatorTypeTextBox.Text = "IMyProblemSolutionCreator";266 this.solutionCreatorTypeTextBox.TextChanged += new System.EventHandler(this.solutionCreatorTypeTextBox_TextChanged);267 //268 // evaluatorTypeTextBox269 //270 this.evaluatorTypeTextBox.Anchor = System.Windows.Forms.AnchorStyles.None;271 this.evaluatorTypeTextBox.Location = new System.Drawing.Point(103, 197);272 this.evaluatorTypeTextBox.Name = "evaluatorTypeTextBox";273 this.evaluatorTypeTextBox.Size = new System.Drawing.Size(468, 20);274 this.evaluatorTypeTextBox.TabIndex = 9;275 this.evaluatorTypeTextBox.Text = "IMyProblemEvaluator";276 this.evaluatorTypeTextBox.TextChanged += new System.EventHandler(this.evaluatorTypeTextBox_TextChanged);277 //278 // label6279 //280 this.label6.Anchor = System.Windows.Forms.AnchorStyles.None;281 this.label6.AutoSize = true;282 this.label6.Location = new System.Drawing.Point(100, 220);283 this.label6.Name = "label6";284 this.label6.Size = new System.Drawing.Size(112, 13);285 this.label6.TabIndex = 6;286 this.label6.Text = "Solution Creator Type:";287 //288 // label5289 //290 this.label5.Anchor = System.Windows.Forms.AnchorStyles.None;291 this.label5.AutoSize = true;292 this.label5.Location = new System.Drawing.Point(100, 181);293 this.label5.Name = "label5";294 this.label5.Size = new System.Drawing.Size(82, 13);295 this.label5.TabIndex = 7;296 this.label5.Text = "Evaluator Type:";297 //298 // parametersControl299 //300 this.parametersControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)301 | System.Windows.Forms.AnchorStyles.Left)302 | System.Windows.Forms.AnchorStyles.Right)));303 this.parametersControl.Location = new System.Drawing.Point(0, 33);304 this.parametersControl.Name = "parametersControl";305 this.parametersControl.Size = new System.Drawing.Size(676, 260);306 this.parametersControl.TabIndex = 0;307 307 // 308 308 // ProblemWizardForm -
trunk/tools/Templates/HeuristicLab.VS2010Wizards/ViewWizard.cs
r4176 r5388 49 49 public void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams) { 50 50 if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { 51 replacementsDictionary.Add("$ baseClass$", form.BaseClass);52 replacementsDictionary.Add("$ viewContentType$", form.ViewContentType);53 replacementsDictionary.Add("$ isDefaultView$", form.IsDefaultView.ToString().ToLower());51 replacementsDictionary.Add("$viewName$", form.ViewName); 52 replacementsDictionary.Add("$contentType$", form.ContentType); 53 replacementsDictionary.Add("$defaultView$", form.IsDefault.ToString().ToLower()); 54 54 shouldAddItem = true; 55 55 } else shouldAddItem = false; -
trunk/tools/Templates/HeuristicLab.VS2010Wizards/ViewWizardForm.Designer.cs
r4176 r5388 46 46 private void InitializeComponent() { 47 47 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ViewWizardForm)); 48 this.okButton = new System.Windows.Forms.Button(); 48 this.baseClassLabel = new System.Windows.Forms.Label(); 49 this.contentTypeTextBox = new System.Windows.Forms.TextBox(); 50 this.defaultViewCheckBox = new System.Windows.Forms.CheckBox(); 51 this.label2 = new System.Windows.Forms.Label(); 52 this.panel1 = new System.Windows.Forms.Panel(); 53 this.label4 = new System.Windows.Forms.Label(); 54 this.pictureBox1 = new System.Windows.Forms.PictureBox(); 49 55 this.cancelButton = new System.Windows.Forms.Button(); 50 this. baseClassLabel = new System.Windows.Forms.Label();51 this. baseClassTextBox = new System.Windows.Forms.TextBox();56 this.finishButton = new System.Windows.Forms.Button(); 57 this.panel2 = new System.Windows.Forms.Panel(); 52 58 this.label1 = new System.Windows.Forms.Label(); 53 this.isDefaultViewCheckBox = new System.Windows.Forms.CheckBox(); 54 this.viewContentTypeTextBox = new System.Windows.Forms.TextBox(); 55 this.label2 = new System.Windows.Forms.Label(); 56 this.label3 = new System.Windows.Forms.Label(); 59 this.nameTextBox = new System.Windows.Forms.TextBox(); 60 this.panel1.SuspendLayout(); 61 ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); 57 62 this.SuspendLayout(); 58 63 // 59 // okButton 60 // 61 this.okButton.Location = new System.Drawing.Point(10, 135); 62 this.okButton.Name = "okButton"; 63 this.okButton.Size = new System.Drawing.Size(75, 23); 64 this.okButton.TabIndex = 6; 65 this.okButton.Text = "Ok"; 66 this.okButton.UseVisualStyleBackColor = true; 67 this.okButton.Click += new System.EventHandler(this.okButton_Click); 64 // baseClassLabel 65 // 66 this.baseClassLabel.Anchor = System.Windows.Forms.AnchorStyles.Top; 67 this.baseClassLabel.AutoSize = true; 68 this.baseClassLabel.Location = new System.Drawing.Point(74, 157); 69 this.baseClassLabel.Name = "baseClassLabel"; 70 this.baseClassLabel.Size = new System.Drawing.Size(85, 13); 71 this.baseClassLabel.TabIndex = 0; 72 this.baseClassLabel.Text = "Content Type(s):"; 73 // 74 // contentTypeTextBox 75 // 76 this.contentTypeTextBox.Anchor = System.Windows.Forms.AnchorStyles.Top; 77 this.contentTypeTextBox.Location = new System.Drawing.Point(77, 173); 78 this.contentTypeTextBox.Name = "contentTypeTextBox"; 79 this.contentTypeTextBox.Size = new System.Drawing.Size(313, 20); 80 this.contentTypeTextBox.TabIndex = 1; 81 this.contentTypeTextBox.Text = "IItem"; 82 this.contentTypeTextBox.TextChanged += new System.EventHandler(this.contentTypeTextBox_TextChanged); 83 // 84 // defaultViewCheckBox 85 // 86 this.defaultViewCheckBox.Anchor = System.Windows.Forms.AnchorStyles.Top; 87 this.defaultViewCheckBox.AutoSize = true; 88 this.defaultViewCheckBox.Location = new System.Drawing.Point(396, 175); 89 this.defaultViewCheckBox.Name = "defaultViewCheckBox"; 90 this.defaultViewCheckBox.RightToLeft = System.Windows.Forms.RightToLeft.No; 91 this.defaultViewCheckBox.Size = new System.Drawing.Size(60, 17); 92 this.defaultViewCheckBox.TabIndex = 4; 93 this.defaultViewCheckBox.Text = "Default"; 94 this.defaultViewCheckBox.UseVisualStyleBackColor = true; 95 this.defaultViewCheckBox.CheckedChanged += new System.EventHandler(this.isDefaultViewCheckBox_CheckedChanged); 96 this.defaultViewCheckBox.TextChanged += new System.EventHandler(this.isDefaultViewCheckBox_CheckedChanged); 97 // 98 // label2 99 // 100 this.label2.Anchor = System.Windows.Forms.AnchorStyles.Top; 101 this.label2.Location = new System.Drawing.Point(74, 207); 102 this.label2.Name = "label2"; 103 this.label2.Size = new System.Drawing.Size(382, 32); 104 this.label2.TabIndex = 5; 105 this.label2.Text = "Warning: Only one view can be default for a certain content type. If there is mor" + 106 "e than one default view, the application will crash."; 107 // 108 // panel1 109 // 110 this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 111 | System.Windows.Forms.AnchorStyles.Right))); 112 this.panel1.BackColor = System.Drawing.Color.White; 113 this.panel1.Controls.Add(this.label4); 114 this.panel1.Controls.Add(this.pictureBox1); 115 this.panel1.Location = new System.Drawing.Point(0, 1); 116 this.panel1.Name = "panel1"; 117 this.panel1.Size = new System.Drawing.Size(533, 81); 118 this.panel1.TabIndex = 9; 119 // 120 // label4 121 // 122 this.label4.AutoSize = true; 123 this.label4.Font = new System.Drawing.Font("Calibri", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 124 this.label4.Location = new System.Drawing.Point(24, 21); 125 this.label4.Name = "label4"; 126 this.label4.Size = new System.Drawing.Size(245, 39); 127 this.label4.TabIndex = 1; 128 this.label4.Text = "New View Wizard"; 129 // 130 // pictureBox1 131 // 132 this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 133 this.pictureBox1.Image = global::HeuristicLab.VS2010Wizards.Properties.Resources.HL3_Logo; 134 this.pictureBox1.Location = new System.Drawing.Point(455, 3); 135 this.pictureBox1.Name = "pictureBox1"; 136 this.pictureBox1.Size = new System.Drawing.Size(75, 75); 137 this.pictureBox1.TabIndex = 0; 138 this.pictureBox1.TabStop = false; 68 139 // 69 140 // cancelButton 70 141 // 71 this.cancelButton.Location = new System.Drawing.Point(92, 135); 142 this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 143 this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; 144 this.cancelButton.Location = new System.Drawing.Point(446, 305); 72 145 this.cancelButton.Name = "cancelButton"; 73 this.cancelButton.Size = new System.Drawing.Size(75, 2 3);74 this.cancelButton.TabIndex = 7;146 this.cancelButton.Size = new System.Drawing.Size(75, 25); 147 this.cancelButton.TabIndex = 12; 75 148 this.cancelButton.Text = "Cancel"; 76 149 this.cancelButton.UseVisualStyleBackColor = true; 77 150 this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click); 78 151 // 79 // baseClassLabel 80 // 81 this.baseClassLabel.AutoSize = true; 82 this.baseClassLabel.Location = new System.Drawing.Point(7, 15); 83 this.baseClassLabel.Name = "baseClassLabel"; 84 this.baseClassLabel.Size = new System.Drawing.Size(59, 13); 85 this.baseClassLabel.TabIndex = 0; 86 this.baseClassLabel.Text = "BaseClass:"; 87 // 88 // baseClassTextBox 89 // 90 this.baseClassTextBox.Location = new System.Drawing.Point(113, 12); 91 this.baseClassTextBox.Name = "baseClassTextBox"; 92 this.baseClassTextBox.Size = new System.Drawing.Size(161, 20); 93 this.baseClassTextBox.TabIndex = 1; 94 this.baseClassTextBox.Text = "ItemView"; 95 this.baseClassTextBox.TextChanged += new System.EventHandler(this.baseClassTextBox_TextChanged); 152 // finishButton 153 // 154 this.finishButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 155 this.finishButton.DialogResult = System.Windows.Forms.DialogResult.OK; 156 this.finishButton.Location = new System.Drawing.Point(361, 305); 157 this.finishButton.Name = "finishButton"; 158 this.finishButton.Size = new System.Drawing.Size(75, 25); 159 this.finishButton.TabIndex = 11; 160 this.finishButton.Text = "Finish"; 161 this.finishButton.UseVisualStyleBackColor = true; 162 this.finishButton.Click += new System.EventHandler(this.finishButton_Click); 163 // 164 // panel2 165 // 166 this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 167 | System.Windows.Forms.AnchorStyles.Right))); 168 this.panel2.BackColor = System.Drawing.Color.White; 169 this.panel2.ForeColor = System.Drawing.SystemColors.ControlText; 170 this.panel2.Location = new System.Drawing.Point(0, 297); 171 this.panel2.Name = "panel2"; 172 this.panel2.Size = new System.Drawing.Size(533, 2); 173 this.panel2.TabIndex = 13; 96 174 // 97 175 // label1 98 176 // 177 this.label1.Anchor = System.Windows.Forms.AnchorStyles.Top; 99 178 this.label1.AutoSize = true; 100 this.label1.Location = new System.Drawing.Point(7 , 41);179 this.label1.Location = new System.Drawing.Point(74, 112); 101 180 this.label1.Name = "label1"; 102 this.label1.Size = new System.Drawing.Size(100, 13); 103 this.label1.TabIndex = 2; 104 this.label1.Text = "View Content Type:"; 105 // 106 // isDefaultViewCheckBox 107 // 108 this.isDefaultViewCheckBox.AutoSize = true; 109 this.isDefaultViewCheckBox.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; 110 this.isDefaultViewCheckBox.Location = new System.Drawing.Point(113, 64); 111 this.isDefaultViewCheckBox.Name = "isDefaultViewCheckBox"; 112 this.isDefaultViewCheckBox.Size = new System.Drawing.Size(15, 14); 113 this.isDefaultViewCheckBox.TabIndex = 4; 114 this.isDefaultViewCheckBox.UseVisualStyleBackColor = true; 115 this.isDefaultViewCheckBox.CheckedChanged += new System.EventHandler(this.isDefaultViewCheckBox_CheckedChanged); 116 // 117 // viewContentTypeTextBox 118 // 119 this.viewContentTypeTextBox.Location = new System.Drawing.Point(113, 38); 120 this.viewContentTypeTextBox.Name = "viewContentTypeTextBox"; 121 this.viewContentTypeTextBox.Size = new System.Drawing.Size(162, 20); 122 this.viewContentTypeTextBox.TabIndex = 3; 123 this.viewContentTypeTextBox.Text = "Item"; 124 this.viewContentTypeTextBox.TextChanged += new System.EventHandler(this.viewContentTypeTextBox_TextChanged); 125 // 126 // label2 127 // 128 this.label2.Location = new System.Drawing.Point(10, 84); 129 this.label2.Name = "label2"; 130 this.label2.Size = new System.Drawing.Size(265, 48); 131 this.label2.TabIndex = 5; 132 this.label2.Text = "Warning: Only one view can be default for a certain content type. If there is mor" + 133 "e than one default view, the application will crash."; 134 // 135 // label3 136 // 137 this.label3.AutoSize = true; 138 this.label3.Location = new System.Drawing.Point(7, 64); 139 this.label3.Name = "label3"; 140 this.label3.Size = new System.Drawing.Size(70, 13); 141 this.label3.TabIndex = 2; 142 this.label3.Text = "Default View:"; 181 this.label1.Size = new System.Drawing.Size(38, 13); 182 this.label1.TabIndex = 14; 183 this.label1.Text = "Name:"; 184 // 185 // nameTextBox 186 // 187 this.nameTextBox.Anchor = System.Windows.Forms.AnchorStyles.Top; 188 this.nameTextBox.Location = new System.Drawing.Point(77, 128); 189 this.nameTextBox.Name = "nameTextBox"; 190 this.nameTextBox.Size = new System.Drawing.Size(379, 20); 191 this.nameTextBox.TabIndex = 15; 192 this.nameTextBox.Text = "My View"; 193 this.nameTextBox.TextChanged += new System.EventHandler(this.nameTextBox_TextChanged); 143 194 // 144 195 // ViewWizardForm … … 146 197 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 147 198 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 148 this.ClientSize = new System.Drawing.Size(286, 168); 199 this.CancelButton = this.cancelButton; 200 this.ClientSize = new System.Drawing.Size(533, 342); 201 this.Controls.Add(this.defaultViewCheckBox); 202 this.Controls.Add(this.contentTypeTextBox); 203 this.Controls.Add(this.label1); 204 this.Controls.Add(this.nameTextBox); 205 this.Controls.Add(this.panel2); 206 this.Controls.Add(this.cancelButton); 207 this.Controls.Add(this.finishButton); 208 this.Controls.Add(this.panel1); 149 209 this.Controls.Add(this.label2); 150 this.Controls.Add(this.viewContentTypeTextBox);151 this.Controls.Add(this.isDefaultViewCheckBox);152 this.Controls.Add(this.baseClassTextBox);153 this.Controls.Add(this.label3);154 this.Controls.Add(this.label1);155 210 this.Controls.Add(this.baseClassLabel); 156 this.Controls.Add(this.cancelButton);157 this.Controls.Add(this.okButton);158 211 this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 159 212 this.Name = "ViewWizardForm"; 160 213 this.Text = "New View Wizard"; 214 this.panel1.ResumeLayout(false); 215 this.panel1.PerformLayout(); 216 ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); 161 217 this.ResumeLayout(false); 162 218 this.PerformLayout(); … … 166 222 #endregion 167 223 168 private System.Windows.Forms.Button okButton; 224 private System.Windows.Forms.Label baseClassLabel; 225 private System.Windows.Forms.TextBox contentTypeTextBox; 226 private System.Windows.Forms.CheckBox defaultViewCheckBox; 227 private System.Windows.Forms.Label label2; 228 private System.Windows.Forms.Panel panel1; 229 private System.Windows.Forms.Label label4; 230 private System.Windows.Forms.PictureBox pictureBox1; 169 231 private System.Windows.Forms.Button cancelButton; 170 private System.Windows.Forms. Label baseClassLabel;171 private System.Windows.Forms. TextBox baseClassTextBox;232 private System.Windows.Forms.Button finishButton; 233 private System.Windows.Forms.Panel panel2; 172 234 private System.Windows.Forms.Label label1; 173 private System.Windows.Forms.CheckBox isDefaultViewCheckBox; 174 private System.Windows.Forms.TextBox viewContentTypeTextBox; 175 private System.Windows.Forms.Label label2; 176 private System.Windows.Forms.Label label3; 235 private System.Windows.Forms.TextBox nameTextBox; 177 236 178 237 } -
trunk/tools/Templates/HeuristicLab.VS2010Wizards/ViewWizardForm.cs
r4176 r5388 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 0Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 24 24 namespace HeuristicLab.VS2010Wizards { 25 25 public partial class ViewWizardForm : Form { 26 public string BaseClass { 27 get; 28 private set; 26 private string viewName; 27 public string ViewName { 28 get { return viewName; } 29 set { 30 viewName = value; 31 if (nameTextBox.Text != viewName) 32 nameTextBox.Text = viewName; 33 } 29 34 } 30 public string ViewContentType { 31 get; 32 private set; 35 private string contentType; 36 public string ContentType { 37 get { return contentType; } 38 set { 39 contentType = value; 40 if (contentTypeTextBox.Text != contentType) 41 contentTypeTextBox.Text = contentType; 42 } 33 43 } 34 public bool IsDefault View{44 public bool IsDefault { 35 45 get; 36 46 private set; … … 39 49 public ViewWizardForm() { 40 50 InitializeComponent(); 41 BaseClass = baseClassTextBox.Text;42 ViewContentType = viewContentTypeTextBox.Text;43 IsDefault View = isDefaultViewCheckBox.Checked;51 ViewName = nameTextBox.Text; 52 ContentType = contentTypeTextBox.Text; 53 IsDefault = defaultViewCheckBox.Checked; 44 54 } 45 55 46 private void okButton_Click(object sender, System.EventArgs e) { 47 DialogResult = System.Windows.Forms.DialogResult.OK; 56 private void finishButton_Click(object sender, System.EventArgs e) { 48 57 Close(); 49 58 } 50 59 51 60 private void cancelButton_Click(object sender, System.EventArgs e) { 52 DialogResult = System.Windows.Forms.DialogResult.Cancel;53 61 Close(); 54 62 } 55 63 56 private void baseClassTextBox_TextChanged(object sender, System.EventArgs e) { 57 BaseClass = baseClassTextBox.Text; 58 } 59 60 private void viewContentTypeTextBox_TextChanged(object sender, System.EventArgs e) { 61 ViewContentType = viewContentTypeTextBox.Text; 64 private void contentTypeTextBox_TextChanged(object sender, System.EventArgs e) { 65 ContentType = contentTypeTextBox.Text; 62 66 } 63 67 64 68 private void isDefaultViewCheckBox_CheckedChanged(object sender, System.EventArgs e) { 65 IsDefaultView = isDefaultViewCheckBox.Checked; 69 IsDefault = defaultViewCheckBox.Checked; 70 } 71 72 private void nameTextBox_TextChanged(object sender, System.EventArgs e) { 73 ViewName = nameTextBox.Text; 66 74 } 67 75 }
Note: See TracChangeset
for help on using the changeset viewer.