Exemplo n.º 1
0
        /// <summary>
        /// Updates the content pane of the wizard by assigning the content of
        /// current wizard page.
        /// </summary>
        private void AssignCurrentWizardPageContent()
        {
            if (_currentWizardPage != null)
            {
                _currentWizardPage.PropertyChanged -= OnPagePropertyChanged;
            }

            _currentWizardPage = _wizardPages[_currentWizardPageIndex];
            _currentWizardPage.PropertyChanged += OnPagePropertyChanged;

            if (!_pageToCompositeMap.TryGetValue(_currentWizardPage, out IGridPanel gridComposite))
            {
                gridComposite             = UIFactory.NewWidget <IGridPanel>(_dialog);
                gridComposite.GridColumns = 1;
                gridComposite.GridRows    = 1;
                _currentWizardPage.Initialize(gridComposite, FactoryProvider.Instance.GetWidgetFactory());
                _pageToCompositeMap.Add(_currentWizardPage, gridComposite);
            }

            _dialog.Title       = _currentWizardPage.Title;
            _dialog.Description = _currentWizardPage.Description;
            _dialog.SetContent(gridComposite);

            CheckConditions();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Updates the content pane of the wizard by assigning the content of
        /// current wizard page.
        /// </summary>
        private void AssignCurrentWizardPageContent()
        {
            if (iCurrentWizardPage != null)
            {
                iCurrentWizardPage.PropertyChanged -= OnPagePropertyChanged;
            }

            iCurrentWizardPage = iWizardPages[iCurrentWizardPageIndex];
            iCurrentWizardPage.PropertyChanged += OnPagePropertyChanged;

            IGridComposite gridComposite;

            if (!iPageToCompositeMap.TryGetValue(iCurrentWizardPage, out gridComposite))
            {
                gridComposite             = UIFactory.NewWidget <IGridComposite>(iDialog);
                gridComposite.GridColumns = 1;
                gridComposite.GridRows    = 1;
                iCurrentWizardPage.Initialize(gridComposite);
                iPageToCompositeMap.Add(iCurrentWizardPage, gridComposite);
            }

            iDialog.Title       = iCurrentWizardPage.Title;
            iDialog.Description = iCurrentWizardPage.Description;
            iDialog.ContentPane = gridComposite;

            CheckConditions();
        }
Exemplo n.º 3
0
		public void AddPage(IWizardPage page)
		{
			page.Initialize(_model, _context);

			_pages.Add(page);
		}