Aura.Channel.World.Trade.Cancel C# (CSharp) Method

Cancel() public method

Cancels trade, returning all items and closing the trade window.
public Cancel ( ) : void
return void
		public void Cancel()
		{
			this.Creature1.Temp.ActiveTrade = null;
			this.Creature1.Inventory.MoveItemsToInvFrom(Pocket.Trade);
			Send.TradeRequestCanceled(this.Creature1, true);
			Send.TradeCancelR(this.Creature1, true);

			this.Creature2.Temp.ActiveTrade = null;
			this.Creature2.Inventory.MoveItemsToInvFrom(Pocket.Trade);
			Send.TradeRequestCanceled(this.Creature2, true);
			Send.TradeCancelR(this.Creature2, true);
		}