Exemplo n.º 1
0
 internal static int LocoAddress(this LocoConfiguration me) =>
 me.IsLongAddress ?
 ((me.ExtendedAddressMsb - 192) * 256) + me.ExtendedAddressLsb :
 me.PrimaryAddress;
Exemplo n.º 2
0
 public IEnumerable <Message> Analyse(LocoConfiguration configuration) =>
 LocoAddressService.TryGetAddress(configuration.LocoAddress) is LocoAddressBooking booking?