Esempio n. 1
0
 /// <summary>
 /// Highest priced Quote
 /// </summary>
 /// <param name="A"></param>
 /// <param name="B"></param>
 /// <returns></returns>
 public static StockQuote MaxPrice(StockQuote A, StockQuote B)
 {
     if (A.Price > B.Price)
     {
         return(A);
     }
     return(B);
 }
Esempio n. 2
0
 /// <summary>
 /// Highest priced Quote
 /// </summary>
 /// <param name="A"></param>
 /// <param name="B"></param>
 /// <returns></returns>
 public static StockQuote MaxPrice(StockQuote A, StockQuote B)
 {
     if (A.Price > B.Price)
         return A;
     return B;
 }
Esempio n. 3
0
 /// <summary>
 /// Handle a new quote coming in
 /// </summary>
 /// <param name="quote"></param>
 private void SubscribeCallback(StockQuote quote)
 {
     Quotes.Insert(0, quote);
 }