static void Main(string[] args) { DogStore.AddPetToTheStore(new Dog() { Name = "Roki", Age = 1, GoodBoy = true, FavoriteFood = "AllFood", Type = "Yorki" }); DogStore.AddPetToTheStore(new Dog() { Name = "Lea", Age = 4, GoodBoy = false, FavoriteFood = "Beef", Type = "Retriver" }); CatStore.AddPetToTheStore(new Cat() { Name = "Garfild", Age = 2, isLazy = true, LifesLeft = 5, Type = "Abyssinian" }); CatStore.AddPetToTheStore(new Cat() { Name = "Claud", Age = 1, isLazy = false, LifesLeft = 1, Type = "Bengal" }); FishStore.AddPetToTheStore(new Fish() { Name = "Nemo", Age = 2, Color = "orange", Size = 2, Type = "clownfish" }); FishStore.AddPetToTheStore(new Fish() { Name = "Dori", Age = 1, Color = "blue", Size = 1, Type = "Paracanthurus hepatus" }); DogStore.BuyPet("Roki"); CatStore.BuyPet("idi"); Console.WriteLine("Dog Store:"); DogStore.PrintAll(); Console.WriteLine("Cat Store:"); CatStore.PrintAll(); Console.WriteLine("Fish Store:"); FishStore.PrintAll(); Console.ReadLine(); }
static void Main(string[] args) { PetStore.InsertPet(new Cat() { Name = "Cat1", Type = Enum.Type.Cat, Age = 2, Lazy = true, LifesLeft = 9 }); PetStore.InsertPet(new Cat() { Name = "Cat2", Type = Enum.Type.Cat, Age = 4, Lazy = false, LifesLeft = 4 }); PetStore.InsertPet(new Dog() { Name = "Dog1", Type = Enum.Type.Dog, Age = 2, GoodBoi = true, FavoriteFood = "snacks" }); PetStore.InsertPet(new Dog() { Name = "Dog2", Type = Enum.Type.Dog, Age = 4, GoodBoi = false, FavoriteFood = "Dog's food" }); PetStore.InsertPet(new Fish() { Name = "Fish1", Type = Enum.Type.Fish, Age = 2, Color = "Gold", Size = "Small" }); PetStore.InsertPet(new Fish() { Name = "Fish2", Type = Enum.Type.Fish, Age = 4, Color = "Black", Size = "Medium" }); PetStore.BuyPet("Jackie"); PetStore.BuyPet("Cat2"); PetStore.BuyPet("Roman"); PetStore.BuyPet("Dog1"); PetStore.PrintAll(); Console.ReadLine(); Console.WriteLine("Hello World!"); }
static void Main(string[] args) { dogPdb.printsPets(new Dog() { Name = "Djeki", Type = "BullDog", Age = 3, FavoriteFood = "People", GoodBoy = false }); dogPdb.printsPets(new Dog() { Name = "Luna", Type = "Chipin", Age = 5, FavoriteFood = "Dry Dog Food", GoodBoy = false }); dogPdb.printsPets(new Dog() { Name = "Kuche", Type = "Labrador", Age = 1, FavoriteFood = "Milk and Breed", GoodBoy = true }); dogPdb.printsPets(new Dog() { Name = "Irena", Type = "Australian Sherpherd", Age = 2, FavoriteFood = "Bones", GoodBoy = true }); dogPdb.printsPets(new Dog() { Name = "Riki", Type = "Doberman", Age = 3, FavoriteFood = "Castor & Pollux Chicken & Sweet Potato Dog Food", GoodBoy = false }); dogPdb.printsPets(new Dog() { Name = "Smocky", Type = "Chihuahua", Age = 1, FavoriteFood = "Dry Dog Food", GoodBoy = true }); catPdb.printsPets(new Cat() { Name = "Caty", Type = "Bengal cat", Age = 1, LivesLeft = 9, Lazy = true }); catPdb.printsPets(new Cat() { Name = "Machor", Type = "Ragamuffin Cat", Age = 6, LivesLeft = 9, Lazy = true }); catPdb.printsPets(new Cat() { Name = "Sam", Type = "Persian cat", Age = 2, LivesLeft = 3, Lazy = false }); catPdb.printsPets(new Cat() { Name = "Mimi", Type = "Siamese Cat", Age = 4, LivesLeft = 7, Lazy = false }); fishPdb.printsPets(new Fish() { Name = "Tihi", Type = "Guppy", Age = 2, Color = "Gray", Size = 3.1 }); fishPdb.printsPets(new Fish() { Name = "yellowish", Type = "Goldfish", Age = 1, Color = "Gold", Size = 2 }); fishPdb.printsPets(new Fish() { Name = "Marko", Type = "Mandarinfish", Age = 4, Color = "blue-orange-yellow", Size = 7.8 }); fishPdb.printsPets(new Fish() { Name = "Stana", Type = "Guppy", Age = 1, Color = "Gray", Size = 1.8 }); fishPdb.printsPets(new Fish() { Name = "Blue", Type = "Blue Tang", Age = 1, Color = "Blue", Size = 2.3 }); fishPdb.printsPets(new Fish() { Name = "Butcher", Type = "Piranha", Age = 6, Color = "black-gray-white", Size = 12 }); dogPdb.PrintAll(); catPdb.PrintAll(); fishPdb.PrintAll(); Console.WriteLine("============================"); Console.WriteLine("What fish you like?"); string buyFish = Console.ReadLine(); fishPdb.RemovePetName(buyFish); Console.WriteLine("============================"); Console.ResetColor(); fishPdb.PrintAll(); Console.WriteLine("============================"); Console.WriteLine("What dog you like?"); string buyDog = Console.ReadLine(); dogPdb.RemovePetName(buyDog); Console.WriteLine("============================"); Console.ResetColor(); dogPdb.PrintAll(); Console.WriteLine("============================"); Console.WriteLine("What cat you like?"); string buyCat = Console.ReadLine(); dogPdb.RemovePetName(buyCat); Console.WriteLine("============================"); Console.ResetColor(); catPdb.PrintAll(); Console.ReadLine(); }