private XElement ConvertSpecialization(BE.Specialization specialization) { XElement newspecialization = new XElement("specialization", new XElement("specializationNumber", specialization.specializationNumber), new XElement("expertiseDomain", specialization.ExpertiseDomain), new XElement("minTarif", specialization.minTarif), new XElement("maxTarif", specialization.maxTarif), new XElement("employerDomain", specialization.EmployerDomain) ); return(newspecialization); }
public void deleteSpecialization(BE.Specialization s) { if (getSpecialization(s.number) == null) { throw new Exception("ERROR :this specialization doesn't exist"); } else { DataSources.specializationList.Remove(s); } return; }
public Nanny(String myFirstName, String myLastName, String myID, DateTime myDateOfBirth, String myEmail, String myLandLinePhone, String myMobile, Address myPersonAddress, Gender myNanyGender, List <Language> myNannyLanguage, Specialization myWorkField, bool myIsLift, int myExpYears, List <SKILLS> myNannySkills, int myMaxChildren, int myMinAge, int myMaxAge, decimal myCostPerHour, decimal myCostPerMonth, Dictionary <DayOfWeek, KeyValuePair <int, int> > myWorkhours, bool myVacation, List <String> myRecommendations, BankAccount myNannyAccount) : base(myFirstName, myLastName, myID, myDateOfBirth, myEmail, myLandLinePhone, myMobile, myPersonAddress) { nannyGender = myNanyGender; nannyLanguage = myNannyLanguage; workField = myWorkField; isLift = myIsLift; expYears = myExpYears; nannySkills = myNannySkills; maxChildren = myMaxChildren; minAge = myMinAge; maxAge = myMaxAge; costPerHour = myCostPerHour; costPerMonth = myCostPerMonth; workhours = new Dictionary <DayOfWeek, KeyValuePair <int, int> >(); workhours = myWorkhours; isVacation = myVacation; recommendations = myRecommendations; nannyAccount = myNannyAccount; }
public override bool Equals(object obj) { Specialization other = obj as Specialization; return(other != null && other.id == id); }