Example #1
0
        private void Button_Next_Click(object sender, RoutedEventArgs e)
        {
            if (PreSelect > 3)
            {
                return;
            }
            OptionToggle.SelectedIndex++;
            switch (PreSelect)
            {
            case 0:
                if (start is null)
                {
                    start = new Start();
                }
                PageHolder.NavigationService.Navigate(start);
                break;

            case 1:
                if (editor is null)
                {
                    editor = new TitlePackager();
                }
                PageHolder.NavigationService.Navigate(editor);
                break;

            case 2:
                if (creator is null)
                {
                    creator = new ContentCreator();
                }
                PageHolder.NavigationService.Navigate(creator);
                break;
            }
        }
Example #2
0
        private void OptionToggle_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (PageHolder is null)
            {
                return;
            }
            int tsel = OptionToggle.SelectedIndex;

            if (PreSelect == tsel)
            {
                return;
            }
            PreSelect = tsel;
            switch (PreSelect)
            {
            case 0:
                if (start is null)
                {
                    start = new Start();
                }
                PageHolder.NavigationService.Navigate(start);
                break;

            case 1:
                if (editor is null)
                {
                    editor = new TitlePackager();
                }
                PageHolder.NavigationService.Navigate(editor);
                break;

            case 2:
                if (creator is null)
                {
                    creator = new ContentCreator();
                }
                PageHolder.NavigationService.Navigate(creator);
                break;
            }
        }