private void LoadScreen(Interfaces.Controls.ContentItems.ContentItem screen)
        {
            Cursor = Cursors.WaitCursor;
            panelContent.Controls.Clear();
            panelContent.Controls.Add(screen);
            screen.Dock        = DockStyle.Fill;
            panelTop.Visible   = screen.DisplayTopPanel;
            buttonBack.Visible = screen.HasPrev;
            buttonBack.BringToFront();
            buttonNext.Enabled        = screen.HasNext || screen.HasFinish;
            buttonBack.Enabled        = screen.HasPrev;
            AcceptButton              = screen.EnterKeyTriggersNext ? buttonNext : null;
            labelPageHeader.Text      = screen.PageHeader;
            labelPageDescription.Text = screen.PageDescription;
            buttonNext.Text           = screen.HasFinish ? "&Finish" : "&Next >";
            screen.OnDisplaying();

            if (!string.IsNullOrEmpty(screen.NextText))
            {
                buttonNext.Text = screen.NextText;
            }
            else
            {
                buttonNext.Text = "&Next >";
            }
            Cursor = Cursors.Default;
        }
Пример #2
0
 private void LoadScreen(Interfaces.Controls.ContentItems.ContentItem screen)
 {
     Cursor = Cursors.WaitCursor;
     panelContent.Controls.Clear();
     panelContent.Controls.Add(screen);
     screen.Dock = DockStyle.Fill;
     screen.OnDisplaying();
     Cursor = Cursors.Default;
 }