Free cookie consent management tool by TermsFeed Policy Generator

source: branches/DataAnalysisService/HeuristicLab.ExperimentGeneration.DataAnalysis.Wizard/3.3/WizardPage.cs @ 12009

Last change on this file since 12009 was 8024, checked in by spimming, 13 years ago

#1807:

  • fire event when Cancel button clicked
  • support cancellation when generating experiments
  • fixed page sizes
  • plugin dependencies updated
File size: 1.7 KB
Line 
1using System.ComponentModel;
2using System.Windows.Forms;
3
4namespace HeuristicLab.ExperimentGeneration.DataAnalysis.Wizard {
5  public partial class WizardPage : UserControl {
6    public WizardPage() {
7      InitializeComponent();
8    }
9
10    public WizardBase ParentWizard {
11      get { return (WizardBase)ParentForm; }
12    }
13
14    protected void SetWizardButton(WizardButtons button) {
15      ParentWizard.SetWizardButton(button);
16    }
17
18    protected void SetCommitButtonText(string buttonText) {
19      ParentWizard.SetButtonText(WizardButtons.Commit, buttonText);
20    }
21
22    public event CancelEventHandler SetActive;
23    public virtual void OnSetActive(CancelEventArgs e) {
24      if (SetActive != null)
25        SetActive(this, e);
26    }
27
28    public event CancelEventHandler QueryCancel;
29    public virtual void OnQueryCancel(CancelEventArgs e) {
30      if (QueryCancel != null) {
31        QueryCancel(this, e);
32      }
33    }
34
35    public event CancelEventHandler WizardCommit;
36    public virtual void OnWizardCommit(CancelEventArgs e) {
37      if (WizardCommit != null)
38        WizardCommit(this, e);
39    }
40
41    public event CancelEventHandler WizardCancel;
42    public virtual void OnWizardCancel(CancelEventArgs e) {
43      if (WizardCancel != null)
44        WizardCancel(this, e);
45    }
46
47    public event WizardPageEventHandler WizardNext;
48    public virtual void OnWizardNext(WizardPageEventArgs e) {
49      if (WizardNext != null)
50        WizardNext(this, e);
51    }
52
53    public event WizardPageEventHandler WizardBack;
54    public virtual void OnWizardBack(WizardPageEventArgs e) {
55      if (WizardBack != null)
56        WizardBack(this, e);
57    }
58
59
60  }
61}
Note: See TracBrowser for help on using the repository browser.