private void BasicOpt_Click(object sender, RoutedEventArgs e) { var btn = e.Source as Button; try { if (btn != null) { //各操作按纽触发按钮方法 var optItem = btn.DataContext as OperationInfo; switch (optItem.ID) { case S3105Consts.OPT_Query: //NavigationService.Navigate(new Uri("AppealManagePage.xaml", UriKind.Relative)); AppealManageMainView appealView = new AppealManageMainView(); appealView.PageName = "AppealManageMainView"; var temp = CurrentApp as S3105App; if (temp != null) { temp.InitMainView(appealView); } break; case S3105Consts.OPT_Approval: //NavigationService.Navigate(new Uri("AppealApproval.xaml", UriKind.Relative)); AppealApprovalMainView approvalView = new AppealApprovalMainView(); approvalView.PageName = "AppealApprovalMainView"; var temp1 = CurrentApp as S3105App; if (temp1 != null) { temp1.InitMainView(approvalView); } break; case S3105Consts.OPT_Review: ProcessReview(); break; case S3105Consts.OPT_ViewScore: break; default: break; } } } catch (Exception ex) { ShowException(ex.Message); } }