public void RunSDTest(bool single, bool stop) { if (single) { SD sd = new SD(F1, COMPort); sd.Start_Test(); } else { if (F1.getCheckStatus((COMPort == 1) ? (F1.SDCheck) : (F1.SDCheck2)) && !stop) { SD sd = new SD(F1, COMPort); sd.Start_Test(); } } }