コード例 #1
0
        private void SeedOutingList()
        {
            Outing outingOne = new Outing(EventType.Golf, 32, new DateTime(2020, 04, 23), 13.50);

            outing_Repo.AddOutingToDirectory(outingOne);
        }
コード例 #2
0
        public void DisplayOuting(Outing outing)
        {
            string format = "MMM d yyyy";

            Console.WriteLine(String.Format("{0,-15} {1,-14} {2,-14} {3,-18} {4}", outing.EventType, outing.NumberOfPeople, outing.DateOfOuting.ToString(format), outing.CostPerPerson, outing.CostOfEvent));
        }