修订Plc

master
nodyang 1 year ago
parent 25a475a47f
commit bdd2371ba4

File diff suppressed because it is too large Load Diff

@ -17,13 +17,7 @@ namespace Mesnac.DoUtils
{ {
public SerialPort serialPort = new SerialPort("COM5"); public SerialPort serialPort = new SerialPort("COM5");
private static readonly Lazy<DoControl> lazy = new Lazy<DoControl>(() => new DoControl()); private static readonly Lazy<DoControl> lazy = new Lazy<DoControl>(() => new DoControl());
public static DoControl Instance public static DoControl Instance => lazy.Value;
{
get
{
return lazy.Value;
}
}
private DoControl() private DoControl()
{ {

Loading…
Cancel
Save