Esempio n. 1
0
        public FormMain()
        {
            InitializeComponent();

            this.Text = string.Format("{0} installer", AppInfo.Name);

            MayClose = false;

            _config    = new InstallConfig();
            _navigator = new Navigator(this);

            _pages    = new UserControl[3];
            _pages[0] = new Pages.PageLocation(panelMain, _config, _navigator);
            _pages[1] = new Pages.PageOptions(panelMain, _config, _navigator);
            _pages[2] = new Pages.PageInstall(panelMain, _config, _navigator);

            _currentNavBorderPanel = borderPanelStepOne;
            _currentPage           = _pages[0];
            FocusStep(borderPanelStepOne, _pages[0]);
        }
Esempio n. 2
0
        private void FocusUnfocusStep(Controls.BorderPanel panelNav, UserControl page)
        {
            if (page == _currentPage)
            {
                return;
            }

            panelMain.SuspendLayout();
            flowLayoutPanelNav.SuspendLayout();
            try
            {
                FocusStep(panelNav, page);
                UnfocusPreviousStep();

                _currentNavBorderPanel = panelNav;
                _currentPage           = page;
            }
            finally
            {
                panelMain.ResumeLayout(true);
                flowLayoutPanelNav.ResumeLayout(true);
            }
        }
Esempio n. 3
0
 private void FocusStep(Controls.BorderPanel panelNav, UserControl page)
 {
     page.Show();
     panelNav.BorderColor     = Color.FromArgb(51, 153, 255);
     panelNav.LeftBorderWidth = 5;
 }