Free cookie consent management tool by TermsFeed Policy Generator

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

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

#567

  • Improved algorithm wizard design
File size: 1.9 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 finishButton_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    private void nextButton_Click(object sender, EventArgs e) {
55      page1Panel.Visible = false;
56      page2Panel.Visible = true;
57      nextButton.Enabled = false;
58      previousButton.Enabled = true;
59    }
60
61    private void previousButton_Click(object sender, EventArgs e) {
62      page2Panel.Visible = false;
63      page1Panel.Visible = true;
64      previousButton.Enabled = false;
65      nextButton.Enabled = true;
66    }
67  }
68}
Note: See TracBrowser for help on using the repository browser.