[WinForm] 시리얼통신 문자에서 StopBits ,Parity 변환
public StopBits SetStopBit(string org_stopbit) { /// /// String형을 StopBit로 변환 /// StopBits Stop; switch (Uplostr(org_stopbit)) { case "None": Stop = StopBits.None; break; case "One": Stop = StopBits.One; break; case "Two": Stop = StopBits.Two; break; case "OnePointFive": Stop = StopBits.OnePointFive; break; default: Stop = StopBits.One; break; } return Stop; } public Parity SetParity(string org_..
2011.11.24