public static void Update(TsPage Page, TsPageUI Layout) { if (Page.NextActivePage != null) { Layout.buttonNext.Visibility = Visibility.Visible; Layout.buttonNext.IsEnabled = true; Layout.buttonFinish.Visibility = Visibility.Hidden; Layout.buttonFinish.IsEnabled = false; } else { Layout.buttonFinish.Visibility = Visibility.Visible; Layout.buttonFinish.IsEnabled = true; Layout.buttonNext.Visibility = Visibility.Hidden; Layout.buttonNext.IsEnabled = false; } if (Page.PreviousActivePage != null) { Layout.buttonPrev.Visibility = Visibility.Visible; Layout.buttonPrev.IsEnabled = true; } else { Layout.buttonPrev.Visibility = Visibility.Hidden; Layout.buttonPrev.IsEnabled = false; } }
public TsPageUI(TsPage Page) { InitializeComponent(); this._page = Page; }
private void ConnectPrevPage(TsPage NewPrevPage) { this._previouspage = NewPrevPage; }
private void ConnectNextPage(TsPage NewNextPage) { this._nextpage = NewNextPage; }