Changeset 4188 for trunk/tools/Templates
- Timestamp:
- 08/10/10 23:54:46 (14 years ago)
- Location:
- trunk/tools/Templates
- Files:
-
- 9 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/Templates/HeuristicLab.VS2010Wizards/AlgorithmWizardForm.Designer.cs
r4187 r4188 242 242 this.Controls.Add(this.finishButton); 243 243 this.Controls.Add(this.panel2); 244 this.Controls.Add(this.page1Panel); 244 245 this.Controls.Add(this.page2Panel); 245 this.Controls.Add(this.page1Panel);246 246 this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 247 247 this.Name = "AlgorithmWizardForm"; -
trunk/tools/Templates/HeuristicLab.VS2010Wizards/AlgorithmWizardForm.cs
r4187 r4188 37 37 public AlgorithmWizardForm() { 38 38 InitializeComponent(); 39 AlgorithmName = algorithmNameTextBox.Text;40 AlgorithmDescription = algorithmDescriptionTextBox.Text;41 IsMultiObjective = isMultiObjectiveCheckBox.Checked;39 parametersControl.AddParameter("SetSeedRandomly", "Value", "BoolValue", "True if the random seed should be set to a random value, otherwise false.", "new BoolValue(true)"); 40 parametersControl.AddParameter("Seed", "Value", "IntValue", "The random seed used to initialize the new pseudo random number generator.", string.Empty); 41 parametersControl.AddParameter("Analyzer", "Value", "MultiAnalyzer", "The operator used to analyze each iteration.", "new MultiAnalyzer()"); 42 42 } 43 43 -
trunk/tools/Templates/HeuristicLab.VS2010Wizards/HeuristicLab.VS2010Wizards.csproj
r4182 r4188 91 91 <DependentUpon>AlgorithmWizardForm.cs</DependentUpon> 92 92 </Compile> 93 <Compile Include="ProblemWizardForm.cs"> 94 <SubType>Form</SubType> 95 </Compile> 96 <Compile Include="ProblemWizardForm.Designer.cs"> 97 <DependentUpon>ProblemWizardForm.cs</DependentUpon> 98 </Compile> 99 <Compile Include="ProblemWizard.cs" /> 93 100 <Compile Include="ParametersControl.cs"> 94 101 <SubType>UserControl</SubType> … … 117 124 <EmbeddedResource Include="AlgorithmWizardForm.resx"> 118 125 <DependentUpon>AlgorithmWizardForm.cs</DependentUpon> 126 </EmbeddedResource> 127 <EmbeddedResource Include="ProblemWizardForm.resx"> 128 <DependentUpon>ProblemWizardForm.cs</DependentUpon> 119 129 </EmbeddedResource> 120 130 <EmbeddedResource Include="ParametersControl.resx"> -
trunk/tools/Templates/HeuristicLab.VS2010Wizards/ParametersControl.Designer.cs
r4187 r4188 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem(new string[] {48 "SetSeedRandomly",49 "Value",50 "BoolValue",51 "True if the random seed should be set to a random value, otherwise false.",52 "new BoolValue(false)"}, -1);53 System.Windows.Forms.ListViewItem listViewItem5 = new System.Windows.Forms.ListViewItem(new string[] {54 "Seed",55 "Value",56 "IntValue",57 "The random seed used to initialize the new pseudo random number generator.",58 ""}, -1);59 System.Windows.Forms.ListViewItem listViewItem6 = new System.Windows.Forms.ListViewItem(new string[] {60 "Analyzer",61 "Value",62 "MultiAnalyzer",63 "The operator used to analyze each iteration.",64 "new MultiAnalyzer()"}, -1);65 47 this.parametersListView = new System.Windows.Forms.ListView(); 66 48 this.nameColumnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); … … 91 73 this.parametersListView.GridLines = true; 92 74 this.parametersListView.HideSelection = false; 93 this.parametersListView.Items.AddRange(new System.Windows.Forms.ListViewItem[] {94 listViewItem4,95 listViewItem5,96 listViewItem6});97 75 this.parametersListView.Location = new System.Drawing.Point(35, 3); 98 76 this.parametersListView.MultiSelect = false; -
trunk/tools/Templates/HeuristicLab.VS2010Wizards/ParametersControl.cs
r4187 r4188 33 33 public ParametersControl() { 34 34 InitializeComponent(); 35 } 36 37 public void AddParameter(string name, string type, string dataType, string description, string defaultValue) { 38 ListViewItem item = new ListViewItem(name); 39 item.SubItems.Add(type); 40 item.SubItems.Add(dataType); 41 item.SubItems.Add(description); 42 item.SubItems.Add(defaultValue); 43 parametersListView.Items.Add(item); 35 44 } 36 45 -
trunk/tools/Templates/VS2010Wizards.sln
r4181 r4188 26 26 EndProject 27 27 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.VS2010Wizards.Test", "HeuristicLab.VS2010Wizards.Test\HeuristicLab.VS2010Wizards.Test.csproj", "{5908CE89-79AC-4CFC-ADA9-7D73A1D03DC4}" 28 EndProject 29 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "HeuristicLabProblemTemplate", "HeuristicLabProblemTemplate", "{3577ED45-0083-4164-89B3-01B3CE77B279}" 30 ProjectSection(SolutionItems) = preProject 31 HeuristicLabProblemTemplate\__TemplateIcon.ico = HeuristicLabProblemTemplate\__TemplateIcon.ico 32 HeuristicLabProblemTemplate\DefaultProblem.cs = HeuristicLabProblemTemplate\DefaultProblem.cs 33 HeuristicLabProblemTemplate\InstallTemplate.cmd = HeuristicLabProblemTemplate\InstallTemplate.cmd 34 HeuristicLabProblemTemplate\MyTemplate.vstemplate = HeuristicLabProblemTemplate\MyTemplate.vstemplate 35 EndProjectSection 28 36 EndProject 29 37 Global … … 66 74 {4BB6A8B2-416E-4577-A1D9-9EC3420B8EB2} = {28A05A91-A678-43B9-8573-0A7461E20F81} 67 75 {0F752C36-F6AD-480A-9720-CCEB240BE914} = {28A05A91-A678-43B9-8573-0A7461E20F81} 76 {3577ED45-0083-4164-89B3-01B3CE77B279} = {28A05A91-A678-43B9-8573-0A7461E20F81} 68 77 EndGlobalSection 69 78 EndGlobal
Note: See TracChangeset
for help on using the changeset viewer.