コード例 #1
0
ファイル: Reservation.cs プロジェクト: newnamtab/CarRental
 public Reservation(CarCategory bilcat, string startstation, DateTime start, DateTime end)
 {
     this.Customer           = new Customer();
     this.BilCat             = new CarCategory();
     this.StartStation       = new RentalStation();
     this.EndStation         = new RentalStation();
     this.StartDate          = start;
     this.EndDate            = end;
     this.BilCat             = bilcat;
     this.StartStation       = new DB.FakeDB().MatchStation(startstation);
     this.TotalPrize         = 0;
     this.Reservationsnummer = "UNASSIGNED";
     this.Status             = Status.Active;
 }
コード例 #2
0
ファイル: Reservation.cs プロジェクト: newnamtab/CarRental
 public Reservation(DateTime startDate, DateTime endDate, CarCategory bilCat, string startStation, string endStation, string firstName, string lastName, string address, int telephoneNumber, string email)
 {
     this._Customer                = new Customer();
     this._BookedCategory          = new CarCategory();
     this._RentalStation           = new RentalStation();
     this._ReturnStation           = new RentalStation();
     this.StartDate                = startDate;
     this.EndDate                  = endDate;
     this.BilCat                   = bilCat;
     this.StartStation             = new DB.FakeDB().MatchStation(startStation);
     this.EndStation               = new DB.FakeDB().MatchStation(endStation);
     this.Customer.FirstName       = firstName;
     this.Customer.LastName        = lastName;
     this.Customer.Street          = address;
     this.Customer.TelephoneNumber = telephoneNumber.ToString();
     this.Customer.Email           = email;
     this.Status                   = Status.Active;
 }
コード例 #3
0
ファイル: Reservation.cs プロジェクト: newnamtab/CarRental
 //PRIVATE CONSTRUCTOR FOR INTERNAL USE
 private Reservation(string reservationsnummer, DateTime startDate, DateTime endDate, CarCategory bilCat, RentalStation startStation, RentalStation endStation, string firstName, string lastName, string address, int telephoneNumber, string email, double totalPrize)
 {
     // NOT IMPLEMENTED OR USED YET
     this.Reservationsnummer       = reservationsnummer;
     this.StartDate                = startDate;
     this.EndDate                  = endDate;
     this.BilCat                   = bilCat;
     this.StartStation             = startStation;
     this.EndStation               = endStation;
     this.Customer.FirstName       = firstName;
     this.Customer.LastName        = lastName;
     this.Customer.Street          = address;
     this.Customer.TelephoneNumber = telephoneNumber.ToString();
     this.Customer.Email           = email;
     this.TotalPrize               = totalPrize;
     this.Status                   = Status.Active;
 }