示例#1
0
        /// <summary>
        /// Creates a new instance of the connect step.
        /// </summary>
        /// <param name="context">Wizard context.</param>
        public Connect(WizardContext context)
        {
            this.ctx = context;
            _next    = false;

            InitializeComponent();
        }
示例#2
0
        /// <summary>
        /// Creates a new instance of the entity generator wizard.
        /// </summary>
        /// <param name="result">Pre-populated result context object.</param>
        public Wizard(Context result)
        {
            //
            // Create new wizard context.
            //
            context = new WizardContext(result);

            //
            // Initialize wizard steps.
            //
            steps = new List <Control>()
            {
                new Welcome(context),
                new Connect(context),
                new ExportLists(context),
                new Finish(context)
            };

            //
            // Hook up event handlers for all of the steps.
            //
            SetupEvents();

            //
            // Form initialization.
            //
            InitializeComponent();

            //
            // Go to the first step.
            //
            step = 0;
            Step();
        }
示例#3
0
        /// <summary>
        /// Creates a new instance of the list export step.
        /// </summary>
        /// <param name="context">Wizard context.</param>
        public ExportLists(WizardContext context)
        {
            this.ctx = context;
            _next    = false;

            InitializeComponent();
        }
示例#4
0
        /// <summary>
        /// Creates a new instance of the finish step.
        /// </summary>
        /// <param name="context">Wizard context.</param>
        public Finish(WizardContext context)
        {
            this.ctx = context;

            InitializeComponent();
        }
示例#5
0
        /// <summary>
        /// Creates a new instance of the welcome step.
        /// </summary>
        /// <param name="context">Wizard context.</param>
        public Welcome(WizardContext context)
        {
            this.ctx = context;

            InitializeComponent();
        }