Esempio n. 1
0
 /// <summary>
 ///Copy  Constructor for mother requests
 /// </summary>
 public MotherRequest(MotherRequest mp)
 {
     Address          = mp.Address;
     SearchAddress    = mp.SearchAddress;
     DistanceWanted   = mp.DistanceWanted;
     DistanceAccepted = mp.DistanceAccepted;
     P = new Planning(mp.P.Plan);
 }
Esempio n. 2
0
 /// <summary>
 /// Constructor for mother requests
 /// </summary>
 public MotherRequest()
 {
     Address          = ""; //Address();
     SearchAddress    = ""; // Address();
     DistanceWanted   = 0;
     DistanceAccepted = 0;
     P = new Planning();
 }
Esempio n. 3
0
        //---------------
        //  CONSTRUCTOR
        //---------------

        /// <summary>
        /// Constructor for nannies' class
        /// </summary>
        public Nanny()
        {
            ID              = 0;
            FamilyName      = "";
            FirstName       = "";
            Phone           = "";
            Address         = "";
            Elevator        = false;
            MinAge          = 3;
            MaxAge          = 36;
            MaxChilds       = 5;
            Birth           = DateTime.Parse("01/01/1980");
            IsSalaryPerHour = true;
            SalaryType      = PaymentType.Hour;
            Salary          = 0;
            Recommandation  = "";
            Vacation        = VacationType.Education;
            P = new Planning();
        }
Esempio n. 4
0
 public Nanny(Nanny n)
 {
     ID              = n.ID;
     Phone           = n.Phone;
     FamilyName      = n.FamilyName;
     FirstName       = n.FirstName;
     Birth           = new DateTime(n.Birth.Year, n.Birth.Month, n.Birth.Day);
     Address         = n.Address;
     Elevator        = n.Elevator;
     Floor           = n.Floor;
     Seniority       = n.Seniority;
     MaxChilds       = n.MaxChilds;
     MinAge          = n.MinAge;
     MaxAge          = n.MaxAge;
     IsSalaryPerHour = n.IsSalaryPerHour;
     Salary          = n.Salary;
     p              = n.p;
     SalaryType     = n.SalaryType;
     Recommandation = n.Recommandation;
     CountChild     = n.CountChild;
     Vacation       = n.Vacation;
     P              = new Planning(n.P.Plan);
 }