示例#1
0
文件: PortUser.cs 项目: terasato/Xbrt
 public void ChangePort(string newPortName)
 {
     lock (SynchronizationObject) {
         Port = PortFactory.NewOrNull(newPortName);
     }
 }
示例#2
0
文件: PortUser.cs 项目: terasato/Xbrt
 public void DisposePort()
 {
     lock (SynchronizationObject) {
         Port = null;
     }
 }