Example #1
0
        public async Task InjectScreen(WizardScreen <T> screen)
        {
            CheckStarted();
            await screen.Initialize();

            _screens.Insert(_currentScreenIndex + 1, screen);
            NextText = !HasNext ? _finishText : _nextText;
        }
Example #2
0
 public async Task SetContent(WizardScreen <T> screen)
 {
     if (_contentPanel.Controls.Count > 0)
     {
         _contentPanel.RemoveAllControls();
     }
     screen.Dock = DockStyle.Fill;
     _contentPanel.Controls.Add(screen);
 }
Example #3
0
        private async Task PresentScreen(WizardScreen <T> screen)
        {
            _currentVisibleScreen        = screen;
            _currentVisibleScreen.Wizard = this;

            HidePrevious = !HasPrevious;
            NextText     = !HasNext ? _finishText : _nextText;

            await _dialog.SetContent(screen);

            await screen.OnPresent();
        }
Example #4
0
 public void RemoveScreen(WizardScreen <T> screen)
 {
     _screens.Remove(screen);
 }