コード例 #1
0
        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;
            }
        }
コード例 #2
0
ファイル: TsPageUI.xaml.cs プロジェクト: SomeZyla/TsGui
 public TsPageUI(TsPage Page)
 {
     InitializeComponent();
     this._page = Page;
 }
コード例 #3
0
 private void ConnectPrevPage(TsPage NewPrevPage)
 {
     this._previouspage = NewPrevPage;
 }
コード例 #4
0
 private void ConnectNextPage(TsPage NewNextPage)
 {
     this._nextpage = NewNextPage;
 }