added SSCLI 1.0
[windows-sources.git] / sdk / samples / WPFSamples / AdaptiveTopologySample / csharp / wizardcontext.cs
blob1df60a1def75751d01d911f0996f7fd7a1f2aff7
1 namespace AdaptiveTopologySample
3 using System;
4 using System.Collections.ObjectModel;
5 using System.Windows.Navigation;
7 /// <summary>
8 /// Used to manage the state of a particular Wizard, including:
9 /// 1) If completed, whether it was accepted or canceled (.Result)
10 /// 2) The data that was collected by the Wizard (.Data).
11 /// </summary>
12 public class WizardContext
14 WizardResult result;
15 object data;
17 public WizardContext(WizardResult result, object data) {
18 this.result = result;
19 this.data = data;
22 public WizardResult Result
24 get { return this.result; }
25 set { this.result = value; }
28 public object Data
30 get { return this.data; }
31 set { this.data = value; }