Пример #1
0
        private void ShowDesigner(object sender, RoutedEventArgs e)
        {
            DesignerWindow buildDesigner = new DesignerWindow();

            buildDesigner.Show();
            this.Close();
        }
Пример #2
0
        void wizardPage_Return(object sender, ReturnEventArgs <BuildProject> e)
        {
            //Retrieve the current page
            WizardPageFunction currentPage = (WizardPageFunction)WizardFrame.Content;

            //Get the index of the next page
            int nextIndex = wizardPages.IndexOf(currentPage) + 1;

            if (nextIndex == wizardPages.Count - 1)
            {
                //clear history
                while (this.CanGoBack)
                {
                    this.RemoveBackEntry();
                }

                this.NavContainer.BeginStoryboard(FindResource("HideNavBar") as Storyboard);
            }

            //Navigate to the next page
            if (nextIndex < wizardPages.Count)
            {
                this.NavigateToPage(wizardPages[nextIndex]);
            }
            else
            {
                DesignerWindow designWindow = new DesignerWindow(m_Project);
                designWindow.Show();

                this.Close();
            }

            //See if the Next and Back buttons are allowed
            this.NavigateNextButton.IsEnabled = (nextIndex < (wizardPages.Count - 1));
            this.NavigateBackButton.IsEnabled = (nextIndex > 0);
        }