コード例 #1
0
 //退票页面
 public void GoRefundPage()
 {
     btn_home.Visibility = Visibility.Visible;
     currentPage.Push("UUID_refundMainPage");
     UserFrame.Navigate(refundMainPage);
     SetCurrentTitle("退票");
 }
コード例 #2
0
        //回退
        public void GoBack(int i)
        {
            string fromPage = currentPage.Pop();

            if (fromPage == "UUID_movieListPage")
            {
                GoHomePage();
            }
            else if (fromPage == "UUID_schedulePage")
            {
                GoMovieList();
            }
            else if (fromPage == "UUID_sitePage")
            {
                UserFrame.Navigate(schedulePage);
            }
            else if (fromPage == "UUID_paymentPage")
            {
                App.Current.Dispatcher.Invoke((Action)(() =>
                {
                    if (i == 0)
                    {
                        paymentPage.UnLockSites();
                    }
                    sitePage.ClearSite();
                    UserFrame.Navigate(sitePage);
                }));
            }
            else if (fromPage == "UUID_resultPage")
            {
            }
        }
コード例 #3
0
 //档期列表页
 public void GoSchedulePage(List <Dictionary <string, string> > shcedules)
 {
     btn_home.Visibility = Visibility.Visible;
     currentPage.Push("UUID_schedulePage");
     btn_back.Visibility = Visibility.Visible;
     schedulePage.ShowSchedules(shcedules);
     UserFrame.Navigate(schedulePage);
     SetCurrentTitle("选择档期");
 }
コード例 #4
0
        //电影列表页
        public void GoMovieList()
        {
            btn_home.Visibility = Visibility.Visible;
            currentPage.Push("UUID_movieListPage");
            btn_back.Visibility = Visibility.Hidden;

            UserFrame.Navigate(movieListPage);
            SetCurrentTitle("选择电影");
        }
コード例 #5
0
 //结果页面
 public void GoResultPage(Dictionary <string, string> scheduleDic, List <string> siteIDs, string paymentinfo)
 {
     btn_home.Visibility = Visibility.Visible;
     btn_back.Visibility = Visibility.Hidden;
     currentPage.Push("UUID_resultPage");
     resultPage.ShowResult(scheduleDic, siteIDs, paymentinfo);
     UserFrame.Navigate(resultPage);
     SetCurrentTitle("");
 }
コード例 #6
0
        //选座页
        public void GoSitePage(Dictionary <string, string> dic)
        {
            btn_home.Visibility = Visibility.Visible;
            btn_back.Visibility = Visibility.Visible;

            currentPage.Push("UUID_sitePage");
            sitePage.ShowSiteGrid(dic);
            UserFrame.Navigate(sitePage);
            SetCurrentTitle("选择座位");
        }
コード例 #7
0
 public void OpenPage(PagesEnum page)
 {
     if (page == PagesEnum.PROFILE)
     {
         UserFrame.Navigate(new ProfilePage(doctor));
     }
     else if (page == PagesEnum.APPOINTMENT)
     {
         UserFrame.Navigate(new AppointmentListPage(doctor));
     }
 }
コード例 #8
0
        //付款页面
        public void GoPaymentPage(Dictionary <string, string> ScheduleDic, List <string> siteIDs)
        {
            btn_home.Visibility = Visibility.Visible;
            btn_back.Visibility = Visibility.Visible;

            currentPage.Push("UUID_paymentPage");

            paymentPage.ShowPrepareInfo(ScheduleDic, siteIDs);
            UserFrame.Navigate(paymentPage);
            SetCurrentTitle("付款");
        }
コード例 #9
0
 public void OpenPage(PagesEnum page)
 {
     if (page == PagesEnum.PATIENTREG)
     {
         UserFrame.Navigate(new PatientRegPage());
     }
     else if (page == PagesEnum.DOCTORREG)
     {
         UserFrame.Navigate(new DoctorRegPage());
     }
     else if (page == PagesEnum.DOCTOR)
     {
         UserFrame.Navigate(new DoctorsPage());
     }
 }
コード例 #10
0
 //主页
 public void GoHomePage()
 {
     if (currentPage.Count != 0)
     {
         string fromPage = currentPage.Pop();
         if (fromPage == "UUID_paymentPage")
         {
             paymentPage.UnLockSites();
         }
         currentPage.Clear();
     }
     btn_back.Visibility = Visibility.Hidden;
     btn_home.Visibility = Visibility.Hidden;
     UserFrame.Navigate(homePage);
     homePage.GoBackPage();
     SetCurrentTitle("主页");
 }
コード例 #11
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            Home HomeFrame = new Home(this);

            MainFrame.Navigate(HomeFrame);

            RightMenu rightMenuFrame = new RightMenu(this);

            FunctionFrame.Navigate(rightMenuFrame);

            Archives archivesFrame = new Archives(this);

            ProductFrame.Navigate(archivesFrame);

            LeftMenu leftMenuFrame = new LeftMenu(this);

            UserFrame.Navigate(leftMenuFrame);
        }
コード例 #12
0
 public void OpenPage(PagesEnum page)
 {
     if (page == PagesEnum.PROFILE)
     {
         UserFrame.Navigate(new ProfilePage(patient));
     }
     else if (page == PagesEnum.MEDCARD)
     {
         UserFrame.Navigate(new MedcardPage(patient));
     }
     else if (page == PagesEnum.APPOINTMENT)
     {
         UserFrame.Navigate(new AppointmentRegPage(patient));
     }
     else if (page == PagesEnum.CHECKAPPOINTMENT)
     {
         UserFrame.Navigate(new AppointmentCheckPage(patient));
     }
 }
コード例 #13
0
 private void GoHome()
 {
     btn_home.Visibility = Visibility.Hidden;
     btn_back.Visibility = Visibility.Hidden;
     UserFrame.Navigate(homePage);
 }
コード例 #14
0
ファイル: User.xaml.cs プロジェクト: nahidsaikat/EasyFood
 public User()
 {
     this.InitializeComponent();
     UserFrame.Navigate(typeof(Foods));
 }
コード例 #15
0
ファイル: User.xaml.cs プロジェクト: nahidsaikat/EasyFood
 private void ShowFoodItemButton_Click(object sender, RoutedEventArgs e)
 {
     UserFrame.Navigate(typeof(Foods));
 }
コード例 #16
0
ファイル: User.xaml.cs プロジェクト: nahidsaikat/EasyFood
 private void MyOrderButton_Click(object sender, RoutedEventArgs e)
 {
     UserFrame.Navigate(typeof(MyOrder));
 }
コード例 #17
0
ファイル: User.xaml.cs プロジェクト: nahidsaikat/EasyFood
 private void CommentButton_Click(object sender, RoutedEventArgs e)
 {
     UserFrame.Navigate(typeof(Comments));
 }