public void Disconnect() => PLC.Disconnect();
public static void MyClassCleanup() { plc.Disconnect(); }
/// <summary> /// 断开连接 /// </summary> public void Disconnect() { PLC?.Disconnect(); NotifyOfPropertyChange(() => IsConnect); }