Example #1
0
        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("校准完成!");
        }
Example #2
0
        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();
            }
        }
Example #3
0
 public void SaveAllSettings()
 {
     TestPlanManager.CurrentTestPlan.SaveAllCal();
     Interface.SaveAllLocalSettings(TestPlanManager.CurrentTestPlan);
 }