Esempio n. 1
0
        private void next_Click(object sender, RoutedEventArgs e)
        {
            string model_no = MODEL_NO;
            //页面跳转,传递model_no参数
            Common_Rail_Injector_Test Common_Rail_Injector_Test_page = new Common_Rail_Injector_Test(model_no);

            this.NavigationService.Navigate(Common_Rail_Injector_Test_page);
            //NavigationService.GetNavigationService(this).Navigate(new Uri("Pages/Common_Rail_Injector_Test.xaml", UriKind.Relative));
        }
Esempio n. 2
0
        //private void confirm_Click(object sender, RoutedEventArgs e)
        //{
        //    //获取datagrid选中行,并获取其model_no
        //    Device_Information device_Information = new Device_Information();
        //    device_Information = (Device_Information) device_information_datagrid.SelectedItem;
        //    String model_no = device_Information.Model_no;
        //    //页面跳转,传递model_no参数
        //    Common_Rail_Injector_Test Common_Rail_Injector_Test_page = new Common_Rail_Injector_Test(model_no);
        //    this.NavigationService.Navigate(Common_Rail_Injector_Test_page);
        //    //NavigationService.GetNavigationService(this).Navigate(new Uri("Pages/Common_Rail_Injector_Test.xaml", UriKind.Relative));
        //}

        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("cri", hIS_Model);

            //页面跳转,传递model_no参数
            Common_Rail_Injector_Test Common_Rail_Injector_Test_page = new Common_Rail_Injector_Test(model_no);

            this.NavigationService.Navigate(Common_Rail_Injector_Test_page);
            //NavigationService.GetNavigationService(this).Navigate(new Uri("Pages/Common_Rail_Injector_Test.xaml", UriKind.Relative));
        }