Example #1
0
        public void LoadWizardPage(ScreenNames screenName, bool calledFromClickEvent)
        {
            Cursor = Cursors.WaitCursor;
            Slyce.Common.Utility.SuspendPainting(panelContent.Handle);
            panelContent.Controls.Clear();
            ArchAngel.Interfaces.Controls.ContentItems.ContentItem nextContentItem = _contentItems[screenName];

            //switch (screenName)
            //{
            //    case ScreenNames.Columns:
            //        if (!calledFromClickEvent)
            //        {
            //            sequentialNavBar.ClickButton("Project Details");
            //        }
            //        pictureHeading.Image = imageListHeading.Images[0];
            //        break;
            //    case ContentItems.ContentItem.ContentItemNames.SetupDatabase:
            //        ShowTaskHelp(TaskHelpTypes.Database);

            //        if (!calledFromClickEvent)
            //        {
            //            sequentialNavBar.ClickButton("Database");
            //        }
            //        pictureHeading.Image = imageListHeading.Images[1];
            //        break;
            //    case ContentItems.ContentItem.ContentItemNames.EditModel:
            //        ShowTaskHelp(TaskHelpTypes.Model);

            //        if (!calledFromClickEvent)
            //        {
            //            sequentialNavBar.ClickButton("Object Model");
            //        }
            //        pictureHeading.Image = imageListHeading.Images[2];
            //        break;
            //    case ContentItems.ContentItem.ContentItemNames.Options:
            //        ShowTaskHelp(TaskHelpTypes.Options);

            //        if (!calledFromClickEvent)
            //        {
            //            sequentialNavBar.ClickButton("Options");
            //        }
            //        pictureHeading.Image = imageListHeading.Images[3];
            //        break;
            //    case ContentItems.ContentItem.ContentItemNames.Generation:
            //        ShowTaskHelp(TaskHelpTypes.Generation);

            //        if (!calledFromClickEvent)
            //        {
            //            sequentialNavBar.ClickButton("Analysis");
            //        }
            //        pictureHeading.Image = imageListHeading.Images[4];
            //        break;
            //    case ContentItems.ContentItem.ContentItemNames.Merge:
            //        ShowTaskHelp(TaskHelpTypes.Merge);

            //        if (!calledFromClickEvent)
            //        {
            //            sequentialNavBar.ClickButton("Generation");
            //        }
            //        pictureHeading.Image = imageListHeading.Images[4];
            //        break;
            //    default:
            //        throw new NotImplementedException("Not coded yet: " + contentItemName.ToString());
            //}
            _currentContentItem = nextContentItem;
            Slyce.Common.Utility.SuspendPainting(_currentContentItem.Handle);

            if (_currentContentItem == null)
            {
                return;
            }
            _currentContentItem.IsDisplaying();
            panelContent.Controls.Clear();
            panelContent.Controls.Add(_currentContentItem);
            _currentContentItem.Dock = DockStyle.Fill;
            //this.BackColor = _currentContentItem.BackColor;
            //pnlImageBackground.Visible = _currentContentItem.DisplayImage;
            panelTop.Visible = _currentContentItem.DisplayTopPanel;
            //headingContentTitle.Visible = !_currentContentItem.DisplayTopPanel;
            buttonBack.Visible = _currentContentItem.HasPrev;
            buttonBack.BringToFront();
            buttonNext.Enabled = _currentContentItem.HasNext || _currentContentItem.HasFinish;
            //headingContentTitle.Text = _currentContentItem.Title;
            //headingContentTitle.Refresh();
            labelPageHeader.Text      = _currentContentItem.PageHeader;
            labelPageDescription.Text = _currentContentItem.PageDescription;
            buttonNext.Text           = _currentContentItem.HasFinish ? "&Finish" : "&Next >";

            if (!string.IsNullOrEmpty(_currentContentItem.NextText))
            {
                buttonNext.Text = _currentContentItem.NextText;
            }
            ResizeControls();
            Slyce.Common.Utility.ResumePainting();
            Cursor = Cursors.Default;
        }
Example #2
0
        public void LoadWizardPage(ScreenNames screenName, bool calledFromClickEvent)
        {
            Cursor = Cursors.WaitCursor;
            Slyce.Common.Utility.SuspendPainting(panelContent.Handle);
            panelContent.Controls.Clear();
            ArchAngel.Interfaces.Controls.ContentItems.ContentItem nextContentItem = _contentItems[screenName];

            //switch (screenName)
            //{
            //    case ScreenNames.Columns:
            //        if (!calledFromClickEvent)
            //        {
            //            sequentialNavBar.ClickButton("Project Details");
            //        }
            //        pictureHeading.Image = imageListHeading.Images[0];
            //        break;
            //    case ContentItems.ContentItem.ContentItemNames.SetupDatabase:
            //        ShowTaskHelp(TaskHelpTypes.Database);

            //        if (!calledFromClickEvent)
            //        {
            //            sequentialNavBar.ClickButton("Database");
            //        }
            //        pictureHeading.Image = imageListHeading.Images[1];
            //        break;
            //    case ContentItems.ContentItem.ContentItemNames.EditModel:
            //        ShowTaskHelp(TaskHelpTypes.Model);

            //        if (!calledFromClickEvent)
            //        {
            //            sequentialNavBar.ClickButton("Object Model");
            //        }
            //        pictureHeading.Image = imageListHeading.Images[2];
            //        break;
            //    case ContentItems.ContentItem.ContentItemNames.Options:
            //        ShowTaskHelp(TaskHelpTypes.Options);

            //        if (!calledFromClickEvent)
            //        {
            //            sequentialNavBar.ClickButton("Options");
            //        }
            //        pictureHeading.Image = imageListHeading.Images[3];
            //        break;
            //    case ContentItems.ContentItem.ContentItemNames.Generation:
            //        ShowTaskHelp(TaskHelpTypes.Generation);

            //        if (!calledFromClickEvent)
            //        {
            //            sequentialNavBar.ClickButton("Analysis");
            //        }
            //        pictureHeading.Image = imageListHeading.Images[4];
            //        break;
            //    case ContentItems.ContentItem.ContentItemNames.Merge:
            //        ShowTaskHelp(TaskHelpTypes.Merge);

            //        if (!calledFromClickEvent)
            //        {
            //            sequentialNavBar.ClickButton("Generation");
            //        }
            //        pictureHeading.Image = imageListHeading.Images[4];
            //        break;
            //    default:
            //        throw new NotImplementedException("Not coded yet: " + contentItemName.ToString());
            //}
            _currentContentItem = nextContentItem;
            Slyce.Common.Utility.SuspendPainting(_currentContentItem.Handle);

            if (_currentContentItem == null)
            {
                return;
            }
            _currentContentItem.IsDisplaying();
            panelContent.Controls.Clear();
            panelContent.Controls.Add(_currentContentItem);
            _currentContentItem.Dock = DockStyle.Fill;
            //this.BackColor = _currentContentItem.BackColor;
            //pnlImageBackground.Visible = _currentContentItem.DisplayImage;
            panelTop.Visible = _currentContentItem.DisplayTopPanel;
            //headingContentTitle.Visible = !_currentContentItem.DisplayTopPanel;
            buttonBack.Visible = _currentContentItem.HasPrev;
            buttonBack.BringToFront();
            buttonNext.Enabled = _currentContentItem.HasNext || _currentContentItem.HasFinish;
            //headingContentTitle.Text = _currentContentItem.Title;
            //headingContentTitle.Refresh();
            labelPageHeader.Text = _currentContentItem.PageHeader;
            labelPageDescription.Text = _currentContentItem.PageDescription;
            buttonNext.Text = _currentContentItem.HasFinish ? "&Finish" : "&Next >";

            if (!string.IsNullOrEmpty(_currentContentItem.NextText))
            {
                buttonNext.Text = _currentContentItem.NextText;
            }
            ResizeControls();
            Slyce.Common.Utility.ResumePainting();
            Cursor = Cursors.Default;
        }