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