}// STOCK STATUS static public void StockStatusNum(List <Stock> stockList, StockMath math) // DISPLAYS STATUS OF ALL STOCKS, NUMBERS FOR BUYING/SELLING { int counter = 1; Console.WriteLine("uTrade TM:"); Console.Write("Num: Name:"); for (int i = 0; i < math.charCountMax(stockList); i++) { Console.Write(" "); } Console.WriteLine("Amt Owned Price History History Two"); foreach (Stock stockrelay in stockList) { Console.WriteLine(); Console.Write("[{0}] ", counter); Console.Write(" " + stockrelay.Name); for (int i = 0; i < math.charCountMax(stockList) - stockrelay.Name.Length; i++) { Console.Write(" "); } Console.Write(" " + stockrelay.Owned + " " + stockrelay.Price + " " + stockrelay.History + " " + stockrelay.HistoryTwo); Console.WriteLine(); counter++; } }// STOCK STATUS
}// main end static public void StockStatus(List <Stock> stockList, StockMath math, User user) // DISPLAYS STATUS OF ALL STOCKS { Console.WriteLine("uTrade TM:"); Console.Write("Name:"); for (int i = 0; i < math.charCountMax(stockList); i++) { Console.Write(" "); } Console.WriteLine("Amt Owned Price History History Two"); foreach (Stock stockrelay in stockList) { Console.Write(stockrelay.Name); for (int i = 0; i < math.charCountMax(stockList) - stockrelay.Name.Length; i++) { Console.Write(" "); } Console.Write(" " + stockrelay.Owned + " " + stockrelay.Price + " " + stockrelay.History + " " + stockrelay.HistoryTwo); Console.WriteLine(); } }// STOCK STATUS