Esempio n. 1
0
 internal static void RaiseIfObsolete(Currency currency)
 {
     if (ObsoleteCurrencies.IsObsolete(currency))
     {
         ObsoleteCurrency?.Invoke(null, new ObsoleteCurrencyEventArgs(currency.IsoCode));
     }
 }
Esempio n. 2
0
 internal static void RaiseIfObsolete(CurrencyIsoCode code)
 {
     if (ObsoleteCurrencies.IsObsolete(code))
     {
         EventHandler <ObsoleteCurrencyEventArgs> handler = ObsoleteCurrency;
         handler?.Invoke(null, new ObsoleteCurrencyEventArgs(code));
     }
 }