Ejemplo n.º 1
0
 public UserHomePage(MyEventHandler fun1, MyEventHandler fun3, SchedulePage.MyEventHandler GoToSitePage)
 {
     InitializeComponent();
     GoMovleListPage += fun1;
     GoRefundPage    += fun3;
     schedulePage     = new SchedulePage(GoToSitePage);
     OpenPage();
 }
        public UserMainWindow()
        {
            InitializeComponent();

            movieListPage  = new MovieListPage(GoSchedulePage);
            schedulePage   = new SchedulePage(GoSitePage);
            sitePage       = new SitePage(GoPaymentPage);
            paymentPage    = new PaymentPage(GoResultPage, GoBack);
            resultPage     = new ResultPage(GoHomePage);
            homePage       = new UserHomePage(GoMovieList, GoRefundPage, GoSitePage);
            refundMainPage = new RefundMainPage(GoHomePage);

            //预加载页面
            UserFrame.Resources.Add("UUID_homePage", homePage);
            UserFrame.Resources.Add("UUID_movieListPage", movieListPage);
            UserFrame.Resources.Add("UUID_schedulePage", schedulePage);
            UserFrame.Resources.Add("UUID_sitePage", sitePage);
            UserFrame.Resources.Add("UUID_paymentPage", paymentPage);
            UserFrame.Resources.Add("UUID_resultPage", resultPage);
            UserFrame.Resources.Add("UUID_refundMainPage", refundMainPage);
            //导航到主页
            GoHomePage();
            SetCurrentTitle("主页");
        }