コード例 #1
0
ファイル: CalibrationVM.cs プロジェクト: Maxzyl/Repos
        public void Confirm()
        {
            foreach (var conn in CopyManualConnList)
            {
                foreach (var stepNode in conn.SubTreeNodeList)
                {
                    //if (stepNode.IsSelected)
                    //{
                    (stepNode.NodeObj as TestStep).FinishCal();
                    //}
                }
            }
            foreach (var conn in CopyManualConnList)
            {
                foreach (var stepNode in conn.SubTreeNodeList)
                {
                    //if (stepNode.IsSelected)
                    //{
                    (stepNode.NodeObj as TestStep).SaveCal();
                    //}
                }
            }

            Interface.SaveAllLocalSettings(TestPlanManager.CurrentTestPlan);
            DXMessageBox.Show("校准完成!");
        }
コード例 #2
0
ファイル: MainCalVM.cs プロジェクト: Maxzyl/Repos
        private void CalIMD()
        {
            DXSplashScreen.Show <Cal_DXSplashScreen>();
            DXSplashScreen.Progress(0);
            TestPlanVM vm = (new ViewModelLocator()).CurrentTestPlanVm;

            if (!GeneTestSetup.Instance.IsSimulated)
            {
                foreach (var conn in ManualConnList)
                {
                    //foreach (var step in conn.TestStepList)
                    //{
                    //    if (step.IsTest)
                    //    {
                    //        (step.TestStep as IMDTestStep).CalIMDPower();
                    //    }
                    //}
                }
                Interface.SaveAllLocalSettings(vm);
            }
            DXSplashScreen.Progress(1);
            if (DXSplashScreen.IsActive)
            {
                DXSplashScreen.Close();
            }
        }
コード例 #3
0
 public void SaveAllSettings()
 {
     TestPlanManager.CurrentTestPlan.SaveAllCal();
     Interface.SaveAllLocalSettings(TestPlanManager.CurrentTestPlan);
 }