Exemplo n.º 1
0
 public override void Update(Auction auction)
 {
     auction.SellerAmount *= Amount;
 }
Exemplo n.º 2
0
 public abstract void Update(Auction auction);
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 public override bool SendNotifications(Auction auction)
 {
     PostOffice.SendEMail(auction.Seller.UserEmail, "Sorry, your auction for " + auction.ItemDesc + " did not have any bidders.");
     return(true);
 }
Exemplo n.º 5
0
 public abstract bool SendNotifications(Auction auction);
Exemplo n.º 6
0
 public void AddAuction(Auction auction)
 {
     Auctions.Add(auction);
 }
Exemplo n.º 7
0
 public override void Update(Auction auction)
 {
     auction.BuyerAmount  = auction.CurrentPrice;
     auction.SellerAmount = auction.CurrentPrice;
 }
Exemplo n.º 8
0
 public override void Update(Auction auction)
 {
     auction.BuyerAmount += Amount;
 }