示例#1
0
        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);
        }
示例#2
0
 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;
 }
示例#3
0
 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;
 }
示例#4
0
        public override bool Equals(object obj)
        {
            Specialization other = obj as Specialization;

            return(other != null && other.id == id);
        }