Пример #1
0
        private void LeaveCurrentPane(PaneChangeReason reason)
        {
            AbstractWizardPane currentPane = CurrentPane;

            if (currentPane != null)
            {
                Control control = GetControl(currentPane);
                control.Visible = false;
                _paneControlPanel.Controls.Remove(control);
                currentPane.LeavePane(reason);
            }
        }
Пример #2
0
        private void EnterCurrentPane(PaneChangeReason reason)
        {
            if (_maxPaneIndex < _currentIndex)
            {
                _maxPaneIndex = _currentIndex;
            }
            AbstractWizardPane currentPane = CurrentPane;

            if (currentPane != null)
            {
                Control control = GetControl(currentPane);
                _paneControlPanel.Controls.Add(control);
                control.Dock      = DockStyle.Fill;
                control.Visible   = true;
                _headerLabel.Text = currentPane.Header;
                Core.UserInterfaceAP.QueueJob(new MethodInvoker(DrawListOfHeaders));
                currentPane.EnterPane(reason);
            }
            _backButton.Enabled = _currentIndex > _minPaneIndex;
            _panePanel.Visible  = _currentIndex >= 0;
            _pictureBox.Visible = _currentIndex < 0;
            _nextButton.Text    = (_currentIndex < _panesList.Count - 1) ? "&Next >" : "Fi&nish";
        }
Пример #3
0
 public override void LeavePane(PaneChangeReason reason)
 {
     ((PreviewSubscriptionsPane)Pane).IsBacked = reason == PaneChangeReason.BackPressed;
     base.LeavePane(reason);
 }
Пример #4
0
 public override void LeavePane(PaneChangeReason reason)
 {
     CheckPane();
     _pane.LeavePane();
 }
Пример #5
0
 public override void EnterPane(PaneChangeReason reason)
 {
     CheckPane();
     _pane.EnterPane();
 }
Пример #6
0
 public abstract void    LeavePane(PaneChangeReason reason);
Пример #7
0
 public abstract void    EnterPane(PaneChangeReason reason);