Exemplo n.º 1
0
        public async Task InjectScreen(WizardScreen <T> screen)
        {
            CheckStarted();
            await screen.Initialize();

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