public virtual void AddOrderNoteTokens(IList<Token> tokens, OrderNote orderNote)
        {
            tokens.Add(new Token("Order.NewNoteText", orderNote.FormatOrderNoteText(), true));
            tokens.Add(new Token("Order.OrderNoteAttachmentUrl", string.Format("{0}download/ordernotefile/{1}", GetStoreUrl(orderNote.Order.StoreId), orderNote.Id), true));

            //event notification
            _eventPublisher.EntityTokensAdded(orderNote, tokens);
        }
        public virtual void AddOrderNoteTokens(IList<Token> tokens, OrderNote orderNote)
        {
            tokens.Add(new Token("Order.NewNoteText", orderNote.FormatOrderNoteText(), true));

            //event notification
            _eventPublisher.EntityTokensAdded(orderNote, tokens);
        }
 public virtual void AddOrderNoteTokens(IList<Token> tokens, OrderNote orderNote)
 {
     tokens.Add(new Token("Order.NewNoteText", orderNote.FormatOrderNoteText(), true));
     var order = EngineContext.Current.Resolve<IOrderService>().GetOrderById(orderNote.OrderId);
     tokens.Add(new Token("Order.OrderNoteAttachmentUrl", string.Format("{0}download/ordernotefile/{1}", GetStoreUrl(order.StoreId), orderNote.Id), true));
     //event notification
     _eventPublisher.EntityTokensAdded(orderNote, tokens);
 }
 public virtual void AddOrderNoteTokens(IList<Token> tokens, OrderNote orderNote)
 {
     tokens.Add(new Token("Order.NewNoteText", orderNote.FormatOrderNoteText(), true));
 }
        public virtual void AddOrderNoteTokens(IList<Token> tokens, OrderNote orderNote)
        {
            tokens.Add(new Token("Order.NewNoteText", orderNote.FormatOrderNoteText(), true));

            //UNDONE: should we display a link to download an attached file (if exists)?

            //event notification
            _eventPublisher.EntityTokensAdded(orderNote, tokens);
        }