Пример #1
0
        private void NavView_SelectionChanged(NavigationView sender, NavigationViewSelectionChangedEventArgs args)
        {
            if (CoreManager.needInit)
            {
            }
            else
            {
                if (args.IsSettingsSelected)
                {
                    MainContent.Navigate(typeof(SettingsPage));
                }
                else
                {
                    NavigationViewItem item = args.SelectedItem as NavigationViewItem;
                    switch (item.Tag)
                    {
                    case Tag_StartPage:
                        MainContent.Navigate(typeof(StartPage));
                        break;

                    case Tag_LaunchOptions:
                        MainContent.Navigate(typeof(LaunchOptionsPage));
                        break;

                    case Tag_Download:
                        MainContent.Navigate(typeof(DownloadPage));
                        break;
                    }
                }
            }
        }
Пример #2
0
 private async void Grid_Loaded(object sender, RoutedEventArgs e)
 {
     //Inital setup
     Navigation.Init(this);
     MainContent.Navigate(new Intro());
     //await Navigation.Navigate(new Intro());
 }
Пример #3
0
        private async void OnInitializationComplete(object sender, EventArgs e)
        {
            CoreManager.needInit = false;
            await CoreManager.InitAppAsync();

            MainContent.Navigate(typeof(StartPage));
            ViewModel.IsNavItemEnable = true;
        }
Пример #4
0
        public MainPage()
        {
            this.InitializeComponent();
            //BackButton.Visibility = Visibility.Collapsed;
            MainContent.Navigate(typeof(Home));

            Loaded += (s, e) =>
            {
                //write logic here
                HomeItem.IsSelected = true;
            };
        }
Пример #5
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            if (CoreManager.needInit == true)
            {
                MainContent.Navigate(typeof(InitializingPage));
                ViewModel.IsNavItemEnable = false;
            }
            else
            {
                MainContent.Navigate(typeof(StartPage));
            }
        }
Пример #6
0
        private async void Search_Click(object sender, RoutedEventArgs e)
        {
            if (context == null)
            {
                context = new AdventureApiContext {
                    Options = options
                };
            }

            var page = new AdventureResultsPage();

            page.DataContext = await context.GetResultAsync();

            MainContent.Navigate(page);
        }
Пример #7
0
 private void HomeButton_Click(object sender, RoutedEventArgs e)
 {
     if (OrderState.GetInstance().Count > 0)
     {
         MessageBoxResult m = MessageBox.Show("선택하신 모든 메뉴가 삭제됩니다.", "이전 페이지로 가시겠습니까?", MessageBoxButton.YesNo);
         if (m == MessageBoxResult.Yes)
         {
             OrderMenuPage order = new OrderMenuPage();
             OrderState.GetInstance().Clear();
             //MainContent.Navigate(new Uri("Home.xaml", UriKind.Relative));
             MainContent.Navigate(new Home());
         }
     }
     else
     {
         OrderState.GetInstance().Clear();
         //MainContent.Navigate(new Uri("Home.xaml", UriKind.Relative));
         MainContent.Navigate(new Home());
     }
 }
Пример #8
0
 private void HamburgerListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (HomeItem.IsSelected)
     {
         MainContent.Navigate(typeof(Home));
         //BackButton.Visibility = Visibility.Collapsed;
     }
     else if (MoviesItem.IsSelected)
     {
         MainContent.Navigate(typeof(Movies));
         //BackButton.Visibility = Visibility.Collapsed;
     }
     else if (TVShowsItem.IsSelected)
     {
         MainContent.Navigate(typeof(TVShows));
         //BackButton.Visibility = Visibility.Collapsed;
     }
     if (HamburgerSplitView.IsPaneOpen)
     {
         HamburgerSplitView.IsPaneOpen = false;
     }
 }
Пример #9
0
        public MainPage()
        {
            this.InitializeComponent();

            // 페이지 이동
            Messenger.Default.Register<MovePage>(this, (msg) =>
            {
                Type type = null;

                switch (msg.SourcePageType)
                {
                    case SourcePage.List: type = typeof(ListPage); break;
                    case SourcePage.Calender: type = typeof(CalenderPage); break;
                    case SourcePage.Setting: type = typeof(SettingPage); break;
                    case SourcePage.Detail: type = typeof(DetailPage); break;
                }

                if (type == null) return;

                if (msg.IsTop)
                {
                    MainContent.BackStack.Clear();
                }

                MainContent.Navigate(type);

                checkBackButtonVisivility();
            });

            // 페이지 뒤로가기
            Messenger.Default.Register<BackPage>(this, (msg) =>
            {
                BackButtonPage_BackRequested(null, null);
            });
            
            // 백버튼 이벤트 바인딩
            SystemNavigationManager.GetForCurrentView().BackRequested += BackButtonPage_BackRequested;
        }
Пример #10
0
        private void NavigateOralExamUpdate_Click(object sender, RoutedEventArgs e)
        {
            var page = new OralExamUpdate();

            MainContent.Navigate(page);
        }
Пример #11
0
        private void NavigateOralExam_Click(object sender, RoutedEventArgs e)
        {
            var page = new OralExam(_examService, _courseService, _semesterService, _enrolmentService, _studentService, _studentExamService);

            MainContent.Navigate(page);
        }
Пример #12
0
        private void NavigateExams_Click(object sender, RoutedEventArgs e)
        {
            var page = new Exams(_examService, _courseService, _enrolmentService, _studentExamService, _semesterService, _exportService, _downloadFileService);

            MainContent.Navigate(page);
        }
Пример #13
0
        private void NavigateEnrolments_Click(object sender, RoutedEventArgs e)
        {
            var page = new Enrolments(_enrolmentService, _courseService, _studentService);

            MainContent.Navigate(page);
        }
Пример #14
0
        private void NavigateStudents_Click(object sender, RoutedEventArgs e)
        {
            var page = new Students(_studentService);

            MainContent.Navigate(page);
        }
Пример #15
0
 private void MainContent_Loaded(object sender, RoutedEventArgs e)
 {
     // 초기 페이지 설정
     MainContent.Navigate(typeof(ListPage));
 }
Пример #16
0
 private void NavigateHome_Click(object sender, RoutedEventArgs e)
 {
     MainContent.Navigate(new System.Uri("Home.xaml", UriKind.RelativeOrAbsolute));
 }
Пример #17
0
        private void NavigateSemesters_Click(object sender, RoutedEventArgs e)
        {
            var page = new Semesters(_semesterService);

            MainContent.Navigate(page);
        }
Пример #18
0
 public MainWindow()
 {
     InitializeComponent();
     MainContent.Navigate(new Pathfinder1e());
 }
Пример #19
0
        private void NavigateCourseInstances_Click(object sender, RoutedEventArgs e)
        {
            var page = new CourseInstances(_courseService, _semesterService);

            MainContent.Navigate(page);
        }
Пример #20
0
 private void Pathfinder1e_Click(object sender, RoutedEventArgs e)
 {
     MainContent.Navigate(new Pathfinder1e());
 }
Пример #21
0
 private void Navigate(Type page, object args = null)
 {
     MainContent.Navigate(page, args);
 }
Пример #22
0
 private void DnD5e_Click(object sender, RoutedEventArgs e)
 {
     MainContent.Navigate(new DnD5e());
 }