Last change
on this file since 7912 was
7824,
checked in by spimming, 12 years ago
|
#1807:
- added new wizard pages
- removed AssemblyInfo files and replaced them with frame file
- disable buttons when wizardbuttons set to 'none'
- introduce data analysis context class
|
File size:
1.3 KB
|
Line | |
---|
1 |
|
---|
2 | using System;
|
---|
3 | namespace HeuristicLab.ExperimentGeneration.DataAnalysis.ExperimentWizard {
|
---|
4 | public partial class SelectAnalysisPage : HeuristicLab.ExperimentGeneration.DataAnalysis.Wizard.WizardPage {
|
---|
5 | private DataAnalysisWizardContext context;
|
---|
6 | public DataAnalysisWizardContext Context {
|
---|
7 | get { return context; }
|
---|
8 | }
|
---|
9 |
|
---|
10 | public SelectAnalysisPage(DataAnalysisWizardContext context) {
|
---|
11 | InitializeComponent();
|
---|
12 | this.context = context;
|
---|
13 | }
|
---|
14 |
|
---|
15 | private void SelectAnalysisPage_SetActive(object sender, System.ComponentModel.CancelEventArgs e) {
|
---|
16 | SetWizardButton(Wizard.WizardButtons.Next);
|
---|
17 | }
|
---|
18 |
|
---|
19 | private void SelectAnalysisPage_WizardNext(object sender, Wizard.WizardPageEventArgs e) {
|
---|
20 | if (rbSmall.Checked) {
|
---|
21 | context.SelectedAnalysis = rbSmall.Text;
|
---|
22 | e.NewPage = "WizardPage";
|
---|
23 | } else if (rbMedium.Checked) {
|
---|
24 | context.SelectedAnalysis = rbMedium.Text;
|
---|
25 | e.NewPage = "MediumAnalysisPage";
|
---|
26 | } else if (rbLarge.Checked) {
|
---|
27 | context.SelectedAnalysis = rbLarge.Text;
|
---|
28 | e.NewPage = "WizardPage";
|
---|
29 | } else if (rbCustom.Checked) {
|
---|
30 | context.SelectedAnalysis = rbCustom.Text;
|
---|
31 | e.NewPage = "WizardPage";
|
---|
32 | } else {
|
---|
33 | throw new SystemException("Undefined data analysis selected.");
|
---|
34 | }
|
---|
35 | }
|
---|
36 | }
|
---|
37 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.