Ejemplo n.º 1
0
        private void SetStep(IWizardStep step)
        {
            if (step == null)
            {
                throw new ArgumentNullException("step");
            }
            IControlHabanero stepControl = step;

            CurrentControl = stepControl;
            FireStepChanged(step);
            _wizardStepPanel.Controls.Clear();
            stepControl.Top    = WizardControl.PADDING;
            stepControl.Left   = WizardControl.PADDING;
            stepControl.Width  = _wizardStepPanel.Width - WizardControl.PADDING * 2;
            stepControl.Height = _wizardStepPanel.Height - WizardControl.PADDING * 2;
            _wizardStepPanel.Controls.Add(stepControl);

            step.InitialiseStep();
        }
Ejemplo n.º 2
0
        private void SetStep(IWizardStep step)
        {
            if (step == null)
            {
                throw new ArgumentNullException("step");
            }

            CurrentControl = step;
            FireStepChanged(step);
            //TODO: The border layout manager clearing panel etc not unit tested
            _wizardStepPanel.Controls.Clear();
            step.Top    = WizardControl.PADDING;
            step.Left   = WizardControl.PADDING;
            step.Width  = _wizardStepPanel.Width - WizardControl.PADDING * 2;
            step.Height = _wizardStepPanel.Height - WizardControl.PADDING * 2;
            _wizardStepPanel.Controls.Add(step);
            //BorderLayoutManagerVWG borderLayoutManager = new BorderLayoutManagerVWG(_wizardStepPanel, _controlFactory);
            //borderLayoutManager.AddControl(stepControl, BorderLayoutManager.Position.Centre);

            step.InitialiseStep();
        }
Ejemplo n.º 3
0
        private void SetStep(IWizardStep step)
        {
            if (step == null) throw new ArgumentNullException("step");
            IControlHabanero stepControl = step;

            CurrentControl = stepControl;
            FireStepChanged(step);
            _wizardStepPanel.Controls.Clear();
            stepControl.Top = WizardControl.PADDING;
            stepControl.Left = WizardControl.PADDING;
            stepControl.Width = _wizardStepPanel.Width - WizardControl.PADDING*2;
            stepControl.Height = _wizardStepPanel.Height - WizardControl.PADDING*2;
            _wizardStepPanel.Controls.Add(stepControl);

            step.InitialiseStep();
        }
Ejemplo n.º 4
0
        private void SetStep(IWizardStep step)
        {
            if (step == null) throw new ArgumentNullException("step");

            CurrentControl = step;
            FireStepChanged(step);
            //TODO: The border layout manager clearing panel etc not unit tested
            _wizardStepPanel.Controls.Clear();
            step.Top = WizardControl.PADDING;
            step.Left = WizardControl.PADDING;
            step.Width = _wizardStepPanel.Width - WizardControl.PADDING * 2;
            step.Height = _wizardStepPanel.Height - WizardControl.PADDING * 2;
            _wizardStepPanel.Controls.Add(step);
            //BorderLayoutManagerVWG borderLayoutManager = new BorderLayoutManagerVWG(_wizardStepPanel, _controlFactory);
            //borderLayoutManager.AddControl(stepControl, BorderLayoutManager.Position.Centre);

            step.InitialiseStep();
        }