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

            _screens.Insert(_currentScreenIndex + 1, screen);
            NextText = !HasNext ? _finishText : _nextText;
        }
Beispiel #2
0
 public async Task SetContent(WizardScreen <T> screen)
 {
     if (_contentPanel.Controls.Count > 0)
     {
         _contentPanel.RemoveAllControls();
     }
     screen.Dock = DockStyle.Fill;
     _contentPanel.Controls.Add(screen);
 }
        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();
        }
 public void RemoveScreen(WizardScreen <T> screen)
 {
     _screens.Remove(screen);
 }