Ejemplo n.º 1
0
 public Rent(MultimediaItem itemRented, DateTime dateOfRent, DateTime deadline)
 {
     this.ItemRented = itemRented;
     this.RentState  = RentState.Taken;
     this.DateOfRent = dateOfRent;
     this.DeadLine   = deadline;
 }
Ejemplo n.º 2
0
 public Rent(MultimediaItem itemRented, DateTime dateOfRent)
 {
     this.ItemRented = itemRented;
     this.RentState  = RentState.Taken;
     this.DateOfRent = dateOfRent;
     this.DeadLine   = dateOfRent.AddDays(30);
 }
Ejemplo n.º 3
0
 public Rent(MultimediaItem itemRented)
 {
     this.ItemRented = itemRented;
     this.RentState  = RentState.Taken;
     this.DateOfRent = DateTime.Now;
     this.DeadLine   = DateTime.Now.AddDays(30);
 }
Ejemplo n.º 4
0
 public Sale(MultimediaItem itemSold, DateTime dateOfPurchase)
 {
     this.ItemSold       = itemSold;
     this.DateOfPurchase = dateOfPurchase;
 }
Ejemplo n.º 5
0
 public Sale(MultimediaItem itemSold)
 {
     this.ItemSold       = itemSold;
     this.DateOfPurchase = DateTime.Now;
 }