예제 #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;
 }