Esempio n. 1
0
        private void Initialize()
        {
            ControlSync.Initialize(this);

            this.pages = new List <IDBSchemaPageControl>(
                new IDBSchemaPageControl[]
            {
                pageDatabase,
                pageTables,
                pageAuxiliaryTables
            });

            this.buttonPrevious = new NavigationButton("&Back", NavigationButtonType.Previous, NavigationButtonOnUpdate);
            this.buttonNext     = new NavigationButton("&Next", NavigationButtonType.Next, NavigationButtonOnUpdate);

            BeginLoadingAction(true);
            try
            {
                foreach (var page in Pages)
                {
                    page.Initialize(this);
                }

                ChangeActivePage(PageDirection.Next);
            }
            finally
            {
                EndLoadingAction();
            }

            pageDatabase.Select();
        }
Esempio n. 2
0
        private void NavigationButtonOnUpdate(NavigationButton button)
        {
            Button buttonControl = button.ButtonType == NavigationButtonType.Next ? btnNext : btnBack;

            buttonControl.Text    = button.Text;
            buttonControl.Visible = button.Visible;
            buttonControl.Enabled = button.Enabled;
        }