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); } }
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"; }
public override void LeavePane(PaneChangeReason reason) { ((PreviewSubscriptionsPane)Pane).IsBacked = reason == PaneChangeReason.BackPressed; base.LeavePane(reason); }
public override void LeavePane(PaneChangeReason reason) { CheckPane(); _pane.LeavePane(); }
public override void EnterPane(PaneChangeReason reason) { CheckPane(); _pane.EnterPane(); }
public abstract void LeavePane(PaneChangeReason reason);
public abstract void EnterPane(PaneChangeReason reason);