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(); }
protected virtual void OnOrderStateChanged(object source, OrderStateChangedEventArgs args) { OrderStateChanged?.Invoke(this, args); }