public void SendAuctionCommandResult(AuctionEntry auction, AuctionAction action, AuctionError errorCode, uint bidError = 0) { AuctionCommandResult auctionCommandResult = new AuctionCommandResult(); auctionCommandResult.InitializeAuction(auction); auctionCommandResult.Command = action; auctionCommandResult.ErrorCode = errorCode; SendPacket(auctionCommandResult); }
public BuyAuctionsView(ToBuyAuction auctionToBuy, AuctionAction action) { InitializeComponent(); this.auctionToBuy = auctionToBuy; this.action = action; BuyOrSellLabel.Text = "How many auctions do you want to " + ((action == AuctionAction.BOUGHT) ? "buy" : "sell") + "?"; BindingContext = this; }
public AuctionBundleForHistory(string symbol, string name, double openValueAtDateBought, double closeValueAtDateBought, string dateBought, string number, AuctionAction action) { Symbol = symbol; Name = name; OpenValueAtDateBought = openValueAtDateBought; CloseValueAtDateBought = closeValueAtDateBought; DateBought = dateBought; Number = number; Action = action; }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == null) { return(""); } if (value is AuctionAction) { AuctionAction v = (AuctionAction)value; return(v == AuctionAction.BOUGHT ? "BOUGHT":"SOLD"); } return(value); }
public static void SendAuctionCommandResult(IPacketReceiver client, Auction auction, AuctionAction action, AuctionError error) { using (var packet = new RealmPacketOut(RealmServerOpCode.SMSG_AUCTION_COMMAND_RESULT, 12)) { if (auction != null) { packet.Write(auction.ItemLowId); } else { packet.Write(0u); } packet.Write((uint)action); packet.Write((uint)error); client.Send(packet, addEnd: false); } }
public static void SendAuctionCommandResult(IPacketReceiver client, Auction auction, AuctionAction action, AuctionError error) { using (var packet = new RealmPacketOut(RealmServerOpCode.SMSG_AUCTION_COMMAND_RESULT, 12)) { if (auction != null) { packet.Write(auction.ItemLowId); } else { packet.Write(0u); } packet.Write((uint)action); packet.Write((uint)error); client.Send(packet); } }