Example #1
0
 public VacationDateConstraint(Vacation vacation)
 {
     Vacation = vacation;
 }
Example #2
0
 public void RemoveVacationConstraint(Vacation vacation)
 {
     //removes all constraints based on given vacation
     NotAvailableConstraints.RemoveAll(c => c is VacationDateConstraint && ((VacationDateConstraint)c).Vacation == vacation);
 }