Exemplo n.º 1
0
        static bool Check(List <Card> deck)
        {
            List <string> warns = new List <string>(), errors = new List <string>();

            DeckIO.checkDeckStandart(deck, ref warns, ref errors);
            //ShowMessages(warns, errors);
            return(errors.Count == 0);
        }
Exemplo n.º 2
0
        public static bool Check(List <Card> deck, ConsoleWindowText window)
        {
            List <string> warns = new List <string>(), errors = new List <string>();

            DeckIO.checkDeckStandart(deck, ref warns, ref errors);
            window.ClearLogWindow();
            foreach (string w in warns)
            {
                window.AddLog("Warning: " + w, ConsoleColor.DarkYellow);
            }
            foreach (string e in errors)
            {
                window.AddLog("Error:   " + e, ConsoleColor.Red);
            }
            return(errors.Count == 0);
        }