1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.ComponentModel;
|
---|
4 | using System.Data;
|
---|
5 | using System.Drawing;
|
---|
6 | using System.Linq;
|
---|
7 | using System.Text;
|
---|
8 | using System.Windows.Forms;
|
---|
9 |
|
---|
10 | namespace 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 | }
|
---|