Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/tools/Templates/HeuristicLab.VS2010Wizards/AlgorithmWizardForm.cs @ 4176

Last change on this file since 4176 was 4176, checked in by abeham, 14 years ago

#567

  • Updated installer
  • Updated View template
  • Added Algorithm template (untested)
File size: 1.5 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Data;
5using System.Drawing;
6using System.Linq;
7using System.Text;
8using System.Windows.Forms;
9
10namespace HeuristicLab.VS2010Wizards {
11  public partial class AlgorithmWizardForm : Form {
12    public string AlgorithmName {
13      get;
14      private set;
15    }
16    public string AlgorithmDescription {
17      get;
18      private set;
19    }
20    public bool IsMultiObjective {
21      get;
22      private set;
23    }
24
25    public AlgorithmWizardForm() {
26      InitializeComponent();
27      AlgorithmName = algorithmNameTextBox.Text;
28      AlgorithmDescription = algorithmDescriptionTextBox.Text;
29      IsMultiObjective = isMultiObjectiveCheckBox.Checked;
30    }
31
32    private void okButton_Click(object sender, System.EventArgs e) {
33      DialogResult = System.Windows.Forms.DialogResult.OK;
34      Close();
35    }
36
37    private void cancelButton_Click(object sender, System.EventArgs e) {
38      DialogResult = System.Windows.Forms.DialogResult.Cancel;
39      Close();
40    }
41
42    private void algorithmNameTextBox_TextChanged(object sender, EventArgs e) {
43      AlgorithmName = algorithmNameTextBox.Text;
44    }
45
46    private void algorithmDescriptionTextBox_TextChanged(object sender, EventArgs e) {
47      AlgorithmDescription = algorithmDescriptionTextBox.Text;
48    }
49
50    private void isMultiObjectiveCheckBox_CheckedChanged(object sender, EventArgs e) {
51      IsMultiObjective = isMultiObjectiveCheckBox.Checked;
52    }
53  }
54}
Note: See TracBrowser for help on using the repository browser.