Пример #1
0
 /// <summary>
 /// Fires the <see cref="MachineStatusChanged"/> event.
 /// </summary>
 /// <param name="machine">Machine instance.</param>
 /// <param name="oldConnectionStatus">Old connection status.</param>
 protected virtual void OnMachineStatusChanged(Machine machine, Machine.ConnectionStatusType oldConnectionStatus)
 {
     if (MachineStatusChanged != null)
     {
         MachineStatusChanged(machine, oldConnectionStatus);
     }
 }
Пример #2
0
 /// <summary>
 /// Fires the <see cref="MachineStatusChanged"/> event.
 /// </summary>
 /// <param name="machine">Machine instance.</param>
 /// <param name="oldConnectionStatus">Old connection status.</param>
 protected virtual void OnMachineStatusChanged(Machine machine, Machine.ConnectionStatusType oldConnectionStatus)
 {
     MachineStatusChanged?.Invoke(machine, oldConnectionStatus);
 }