Example #1
0
        public void CartoonsToevoegen(string name, string image, DateTime creatieDatum, string studio)
        {
            if (name != "" || image != "" || creatieDatum > DateTime.Now)
            {
                Warning = "";
                CartoonList.Add(new CartoonModel(name, image, creatieDatum, studio));
            }

            else
            {
                Warning = "U heeft iets niet goed ingevuld";
            }
        }
Example #2
0
 public void SetCartoons()
 {
     CartoonList.Add(new CartoonModel("mickey mouse", "Images/cat-mickey-mouse.jpg", new DateTime(2000, 10, 15), "Walt Disney"));
     CartoonList.Add(new CartoonModel("Arnold", "Images/Arnold.jpg", new DateTime(1980, 03, 31), "nickelodeon"));
     CartoonList.Add(new CartoonModel("Buzz Lightyear", "Images/Buzz lightyear.jpg", new DateTime(2000, 10, 15), "Walt Disney"));
 }