/* * Created by SharpDevelop. * User: allann * Date: 22-11-2004 * Time: 23:55 * */ using System; using System.Collections; namespace TouristicRental06 { /// /// Description of RentBike. /// public class RentBike { public RentBike(TouristicRental master, IList bicycles, IList rentals) { this.bicycles = bicycles; this.rentals = rentals; this.master = master; form = new RentBikeForm(this); } public void Run() { form.UpdateList(bicycles); form.Show(); } public void Done(String rentalId, Bicycle bicycle) { rentals.Add(new Rental(rentalId, bicycle)); master.RentDone(); } private TouristicRental master; private RentBikeForm form; private IList bicycles; private IList rentals; } }