Ejemplo n.º 1
0
        public override string ToString()
        {
            AuctionatorContext Context = new AuctionatorContext();
            string             bid     = "Bid: " + BidPrice.ToString() + " , Is Highestbid: ";

            Context.Auctions.ToList().ForEach(a =>
            {
                if (a.Id == Auction)
                {
                    if (a.HighestBid == Id)
                    {
                        bid += "You are highest Bidder!";
                    }
                    else
                    {
                        bid += "You are over bid!";
                    }
                }
            });
            return(bid);
        }
Ejemplo n.º 2
0
 public override string ToString()
 {
     return($"Status={Status}|Symbol={Symbol}|ExChange={ExChange}|AskPrice={AskPrice?.ToString()}|AskTime={AskTime?.ToString("yyyy-MM-dd HH:mm:ss.fff")}|BidPrice={BidPrice?.ToString()}|BidTime={BidTime?.ToString("yyyy-MM-dd HH:mm:ss.fff")}|TradePrice={TradePrice?.ToString()}|TradeTime={TradeTime?.ToString("yyyy-MM-dd HH:mm:ss.fff")}");
 }