コード例 #1
0
ファイル: Program.cs プロジェクト: wsiewert/HumaneSociety
        static void Main(string[] args)
        {
            HumaneSocietyDBDataContext humaneSocietyDB = new HumaneSocietyDBDataContext();
            //Animal animal = new Animal
            //{
            //    ActivityLevel = 5,
            //    Age = 5,
            //    AdoptionStatus = false,
            //    Breed = "EXAMPLE",
            //    Name = "EXAMPLE",
            //    Species = "EXAMPLE",
            //    VaccinationStatus = false,
            //    FoodType = "EXAMPLE",
            //    FoodQuantity = 5,
            //};

            //humaneSocietyDB.Animals.InsertOnSubmit(animal);
            //humaneSocietyDB.SubmitChanges();

            //var roomNumber = humaneSocietyDB.Rooms.Where(x => x.OccupiedStatus == false);

            //foreach (var x in roomNumber)
            //{
            //    Console.WriteLine(x.RoomNumber);
            //}

            HumaneSociety humaneSociety = new HumaneSociety();

            //humaneSociety.AddAnimal();
            //humaneSociety.RemoveAnimalFromRoom(5);
            //humaneSociety.SetAdoptionStatus(6,true);
            //humaneSociety.VaccinateAnimal(6);
            //humaneSociety.DisplayRooms();
            humaneSociety.Start();

            Console.ReadLine();
        }
コード例 #2
0
ファイル: CustomerUI.cs プロジェクト: wsiewert/HumaneSociety
 public CustomerUI(HumaneSociety humaneSociety)
 {
     this.humaneSociety = humaneSociety;
 }
コード例 #3
0
ファイル: EmployeeUI.cs プロジェクト: wsiewert/HumaneSociety
 public EmployeeUI(HumaneSociety humaneSociety)
 {
     this.humaneSociety = humaneSociety;
 }