//main function -------------------------------------------// //normal production bool _run_All() { Thread zzz = new Thread(new ThreadStart(() => { //set off lamp VNPT_Lamp.Output(LampStatus.AllOFF); //run check var runall = new imp_RunAll(); if (!runall.Execute()) { _jud_fail(); } else { _jud_pass(); } })); zzz.IsBackground = true; zzz.Start(); return(true); }
//normal production bool _run_All() { Thread zzz = new Thread(new ThreadStart(() => { //run check var runall = new imp_RunAll(); bool r = runall.Execute(); if (!r) { _jud_fail(); } else { _jud_pass(); } //save log new LogSystem(globalParameter.LogStationName.UidLabel.ToString(), stationVariable.myTesting.MacAddress, stationVariable.myTesting.TotalResult).saveDataToLogFile(stationVariable.myTesting.ErrorMessage); })); zzz.IsBackground = true; zzz.Start(); return(true); }