예제 #1
0
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.
        /// This parameter is typically used to configure the page.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            LocalDatabase.SetDatabase();

            if (!Frame_Main.Navigate(typeof(Intro)))
            {
                throw new Exception("Failed to create scenario list");
            }
        }
        private void Btn_ShowConfiguration_Tapped(object sender, TappedRoutedEventArgs e)
        {
            Frame_Main.Visibility = Visibility.Visible;
            Lbl_Time.Visibility   = Visibility.Collapsed;
            Lbl_Date.Visibility   = Visibility.Collapsed;

            Pages.Page_Configuration _PC = new Pages.Page_Configuration();
            Frame_Main.Navigate(_PC.GetType());
        }
        private void Btn_ShowRooms_Tapped(object sender, TappedRoutedEventArgs e)
        {
            Frame_Main.Visibility = Visibility.Visible;
            Lbl_Time.Visibility   = Visibility.Collapsed;
            Lbl_Date.Visibility   = Visibility.Collapsed;

            Pages.Page_Room ShowRoom = new Pages.Page_Room();
            Frame_Main.Navigate(ShowRoom.GetType());
        }
예제 #4
0
        private void HardwareButtons_BackPressed(object sender, Windows.Phone.UI.Input.BackPressedEventArgs e)
        {
            int BackStackDepth = Frame_Main.BackStackDepth;

            if (BackStackDepth == 1)
            {
                //어플종료코드 넣어야함
                Frame_Main.GoBack();
                e.Handled = true;
            }
            else if (Frame_Main.CanGoBack)
            {
                Frame_Main.GoBack();
                e.Handled = true;
            }
        }