public void CloseSer(DataPort portParam) { serilaPort1.Close(); }
public void ConnectSer(DataPort portParam) { serilaPort1.PortName = portParam.nameOfPort; serilaPort1.BaudRate = Convert.ToInt32(portParam.bandRateOfPOrt); serilaPort1.Open(); }
public void CloseSer(DataPort portParam) { serilaPort1.Close(); }
public void ConnectSer(DataPort portParam) { serilaPort1.PortName = portParam.nameOfPort; serilaPort1.BaudRate = Convert.ToInt32(portParam.bandRateOfPOrt); serilaPort1.Open(); }