Example #1
0
 private void DeliverITEngine_OrderStateChanged(object sender, OrderStateChangedEventArgs args)
 {
     Console.ForegroundColor = ConsoleColor.DarkYellow;
     Console.WriteLine($"Order {args.ID} status changed from {args.LAST_STATE} to {args.CURRENT_STATE}");
     Console.ResetColor();
 }
Example #2
0
 protected virtual void OnOrderStateChanged(object source, OrderStateChangedEventArgs args)
 {
     OrderStateChanged?.Invoke(this, args);
 }