コード例 #1
0
ファイル: MovieStore.cs プロジェクト: phillipphoenix/Projects
 public void rentOutMovie(Movie m, Customer c)
 {
     if (!m.RentedOut)
     {
         m.rentOutMovie(c);
     }
 }
コード例 #2
0
ファイル: Movie.cs プロジェクト: phillipphoenix/Projects
 public void rentOutMovie(Customer c)
 {
     rentedOut = true;
     c.rentMovie(this);
     Rentee = c;
 }
コード例 #3
0
ファイル: MovieStore.cs プロジェクト: phillipphoenix/Projects
        private Customer createCustomer(int id)
        {
            // Enter name.
            Console.WriteLine("Creating new customer! Please enter the customer's name:");
            String name = Console.ReadLine();

            Customer c = new Customer(id, name);
            customers.Add(c);

            Console.WriteLine("New customer created and saved!");

            return c;
        }