//退票页面 public void GoRefundPage() { btn_home.Visibility = Visibility.Visible; currentPage.Push("UUID_refundMainPage"); UserFrame.Navigate(refundMainPage); SetCurrentTitle("退票"); }
//回退 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") { } }
//档期列表页 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("选择档期"); }
//电影列表页 public void GoMovieList() { btn_home.Visibility = Visibility.Visible; currentPage.Push("UUID_movieListPage"); btn_back.Visibility = Visibility.Hidden; UserFrame.Navigate(movieListPage); SetCurrentTitle("选择电影"); }
//结果页面 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(""); }
//选座页 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("选择座位"); }
public void OpenPage(PagesEnum page) { if (page == PagesEnum.PROFILE) { UserFrame.Navigate(new ProfilePage(doctor)); } else if (page == PagesEnum.APPOINTMENT) { UserFrame.Navigate(new AppointmentListPage(doctor)); } }
//付款页面 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("付款"); }
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()); } }
//主页 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("主页"); }
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); }
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)); } }
private void GoHome() { btn_home.Visibility = Visibility.Hidden; btn_back.Visibility = Visibility.Hidden; UserFrame.Navigate(homePage); }
public User() { this.InitializeComponent(); UserFrame.Navigate(typeof(Foods)); }
private void ShowFoodItemButton_Click(object sender, RoutedEventArgs e) { UserFrame.Navigate(typeof(Foods)); }
private void MyOrderButton_Click(object sender, RoutedEventArgs e) { UserFrame.Navigate(typeof(MyOrder)); }
private void CommentButton_Click(object sender, RoutedEventArgs e) { UserFrame.Navigate(typeof(Comments)); }