Example #1
0
        public static void CheckBookInput(string title, string author, string publishYear, string publishLocation, string publisher, string isbn, string pagesNumber, string note)
        {
            InputCheck.CheckFieldMain(title, true, false, false, "Titul");
            InputCheck.CheckFieldMain(author, true, false, false, "Autor");

            InputCheck.CheckFieldMain(publishYear, false, true, false, "Rok vydání");
            InputCheck.CheckFieldMain(pagesNumber, false, true, false, "Počet stran");

            InputCheck.CheckFieldMain(publishLocation, false, false, false, "Místo vydání");
            InputCheck.CheckFieldMain(publisher, false, false, false, "Nakladatelství");
            InputCheck.CheckFieldMain(isbn, false, false, false, "Isbn");

            InputCheck.CheckFieldMain(note, false, false, true, "Poznámka");
        }
Example #2
0
 public static void CheckEGCInput(string input)
 {
     InputCheck.CheckFieldMain(input, true, false, false, "Název");
 }