public override void Update(Auction auction) { auction.SellerAmount *= Amount; }
public abstract void Update(Auction auction);
public override bool SendNotifications(Auction auction) { PostOffice.SendEMail(auction.HighestBidder.UserEmail, "Congratulations! You won an auction for a " + auction.ItemDesc + " from " + auction.Seller.UserName + " for " + auction.CurrentPrice.ToString("C2") + "."); PostOffice.SendEMail(auction.Seller.UserEmail, "Your " + auction.ItemDesc + " auction sold to bidder " + auction.HighestBidder.UserEmail + " for " + auction.CurrentPrice.ToString("C2") + "."); return(true); }
public override bool SendNotifications(Auction auction) { PostOffice.SendEMail(auction.Seller.UserEmail, "Sorry, your auction for " + auction.ItemDesc + " did not have any bidders."); return(true); }
public abstract bool SendNotifications(Auction auction);
public void AddAuction(Auction auction) { Auctions.Add(auction); }
public override void Update(Auction auction) { auction.BuyerAmount = auction.CurrentPrice; auction.SellerAmount = auction.CurrentPrice; }
public override void Update(Auction auction) { auction.BuyerAmount += Amount; }