DESKTOP-Kang hace 6 años
padre
commit
7fcfe7a159
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      Dev/OHV/VehicleControlSystem/ControlLayer/IO/EzIO.cs

+ 4 - 4
Dev/OHV/VehicleControlSystem/ControlLayer/IO/EzIO.cs

@@ -89,9 +89,9 @@ namespace VehicleControlSystem.ControlLayer.IO
                 this.isConnectError = value;
 
                 if (isConnectError)
-                    this.qQ.Enqueue(new QoDiconnected());
+                    this.qQ.Enqueue(new QoDiconnected() { Arg0 = "EzIO"} );
                 else
-                    this.qQ.Enqueue(new QoConnected());
+                    this.qQ.Enqueue(new QoConnected() { Arg0 = "EzIO" } );
 
             }
         }
@@ -554,9 +554,9 @@ namespace VehicleControlSystem.ControlLayer.IO
                     var o = qQ.Dequeue();
 
                     if (o is QoConnected)
-                        DelegateUtils.Invoke(OnContd);
+                        DelegateUtils.Invoke(OnContd, o.Arg0);
                     else if (o is QoDiconnected)
-                        DelegateUtils.Invoke(OnDiscontd);
+                        DelegateUtils.Invoke(OnDiscontd, o.Arg0);
                     else if (o is QoChangedIO)
                         DelegateUtils.Invoke(OnChangedIO, o.Arg0);
                     else if (o is QoWriteIO)