static void Main(string[] args) { var card = new LottoCard(); var filling = card.GetFilling(); ViewCard.DrawCardInConsole(card); //blablalba Console.ReadKey(); }
public static void DrawCardInConsole(LottoCard lotoCard) { Console.WriteLine("*****GENERATED LOTO CARD*****"); if (lotoCard != null) { for (int i = 0; i < lotoCard.CardInfo.RowsNumber; i++) { for (int j = 0; j < lotoCard.CardInfo.ColumnsNumber; j++) { Console.Write((lotoCard.CardFilling.Numbers[i, j] == 0 ? "_" : lotoCard.CardFilling.Numbers[i, j].ToString()) + " "); } Console.WriteLine(); } } else { Console.WriteLine("ERROR OCCURRED"); } }