private void next_Click(object sender, RoutedEventArgs e) { string model_no = MODEL_NO; //页面跳转,传递model_no参数 HPO_Pump_Injector_Test hPO_Pump_Injector_Test_page = new HPO_Pump_Injector_Test(model_no); this.NavigationService.Navigate(hPO_Pump_Injector_Test_page); }
private void confirm_Click(object sender, RoutedEventArgs e) { //获取datagrid选中行,并获取其model_no DEV_I_Model dEV_I_Model = new DEV_I_Model(); dEV_I_Model = (DEV_I_Model)device_information_datagrid.SelectedItem; String model_no = dEV_I_Model.Model_no; //往history添加记录 HIS_Model hIS_Model = new HIS_Model(); hIS_Model.Model_no = model_no; Dao.DEV_DAO.WriteToHistory("hpo", hIS_Model); //页面跳转,传递model_no参数 HPO_Pump_Injector_Test hPO_Pump_Injector_Test_page = new HPO_Pump_Injector_Test(model_no); this.NavigationService.Navigate(hPO_Pump_Injector_Test_page); //NavigationService.GetNavigationService(this).Navigate(new Uri("Pages/Common_Rail_Injector_Test.xaml", UriKind.Relative)); }