Ejemplo n.º 1
0
        private void AddStep(int index, WizardStepPresenter userControlPresenter)
        {
            var userControl = (UserControl)userControlPresenter.BaseView;

            userControl.Dock = DockStyle.Fill;

            WizardView.Container.Controls.Add(userControl);
            Steps.Add(index, userControlPresenter);
        }
Ejemplo n.º 2
0
        private void AddToPresenterBag(WizardStepPresenter userControlPresenter)
        {
            var type = userControlPresenter.GetType();

            if (!PresenterBag.ContainsKey(type))
            {
                PresenterBag.Add(type, userControlPresenter);
            }
            else
            {
                PresenterBag[type].Dispose();
                PresenterBag[type] = userControlPresenter;
            }
        }