Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/10/10 23:54:46 (14 years ago)
Author:
abeham
Message:

#567

  • Started adding problem wizard
Location:
trunk/tools/Templates/HeuristicLab.VS2010Wizards
Files:
4 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/Templates/HeuristicLab.VS2010Wizards/AlgorithmWizardForm.Designer.cs

    r4187 r4188  
    242242      this.Controls.Add(this.finishButton);
    243243      this.Controls.Add(this.panel2);
     244      this.Controls.Add(this.page1Panel);
    244245      this.Controls.Add(this.page2Panel);
    245       this.Controls.Add(this.page1Panel);
    246246      this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
    247247      this.Name = "AlgorithmWizardForm";
  • trunk/tools/Templates/HeuristicLab.VS2010Wizards/AlgorithmWizardForm.cs

    r4187 r4188  
    3737    public AlgorithmWizardForm() {
    3838      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()");
    4242    }
    4343
  • trunk/tools/Templates/HeuristicLab.VS2010Wizards/HeuristicLab.VS2010Wizards.csproj

    r4182 r4188  
    9191      <DependentUpon>AlgorithmWizardForm.cs</DependentUpon>
    9292    </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" />
    93100    <Compile Include="ParametersControl.cs">
    94101      <SubType>UserControl</SubType>
     
    117124    <EmbeddedResource Include="AlgorithmWizardForm.resx">
    118125      <DependentUpon>AlgorithmWizardForm.cs</DependentUpon>
     126    </EmbeddedResource>
     127    <EmbeddedResource Include="ProblemWizardForm.resx">
     128      <DependentUpon>ProblemWizardForm.cs</DependentUpon>
    119129    </EmbeddedResource>
    120130    <EmbeddedResource Include="ParametersControl.resx">
  • trunk/tools/Templates/HeuristicLab.VS2010Wizards/ParametersControl.Designer.cs

    r4187 r4188  
    4545    /// </summary>
    4646    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);
    6547      this.parametersListView = new System.Windows.Forms.ListView();
    6648      this.nameColumnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     
    9173      this.parametersListView.GridLines = true;
    9274      this.parametersListView.HideSelection = false;
    93       this.parametersListView.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
    94             listViewItem4,
    95             listViewItem5,
    96             listViewItem6});
    9775      this.parametersListView.Location = new System.Drawing.Point(35, 3);
    9876      this.parametersListView.MultiSelect = false;
  • trunk/tools/Templates/HeuristicLab.VS2010Wizards/ParametersControl.cs

    r4187 r4188  
    3333    public ParametersControl() {
    3434      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);
    3544    }
    3645
Note: See TracChangeset for help on using the changeset viewer.