Esempio n. 1
0
 public void rentOutMovie(Movie m, Customer c)
 {
     if (!m.RentedOut)
     {
         m.rentOutMovie(c);
     }
 }
Esempio n. 2
0
 public void rentOutMovie(Customer c)
 {
     rentedOut = true;
     c.rentMovie(this);
     Rentee = c;
 }
Esempio n. 3
0
        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;
        }