示例#1
0
 public Appartement(int nbp, int nbc, int s, int d, bool t, bool l, bool c,string na, int e, bool a, Localisation loc, int idpro)
     : base(nbp, nbc, s, d, t, l, c, loc, idpro, "Appartement")
 {
     _numAppartement = na;
     _etage = e;
     _ascenceur = a;
 }
示例#2
0
        public Logement(XmlNode x)
        {
            _id = int.Parse(x.ChildNodes[0].InnerText);
            globalid = Math.Max(globalid, _id);
            _idClient = int.Parse(x.ChildNodes[1].InnerText);
            _nbPieces = int.Parse(x.ChildNodes[2].InnerText);
            _nbChambres = int.Parse(x.ChildNodes[3].InnerText);
            _superficie = int.Parse(x.ChildNodes[4].InnerText);
            _distancePlage = int.Parse(x.ChildNodes[5].InnerText);
            _terasse = x.ChildNodes[6].InnerText == "True";
            _laveLinge = x.ChildNodes[7].InnerText == "True";
            _cuisineEquipe = x.ChildNodes[8].InnerText == "True";

            switch (x.ChildNodes[9].Attributes["type"].InnerText)
            {
                case "port":
                    _adresse = new Port(x.ChildNodes[9]);
                    break;

                case "camping":
                    _adresse = new Camping(x.ChildNodes[9]);
                    break;

                default:
                    _adresse = new Localisation(x.ChildNodes[9]);
                    break;
            }
        }
示例#3
0
        public Particulier(XmlNode x)
        {
            _id = int.Parse(x.ChildNodes[0].InnerText);

            // On tient a jour l'id global
            globalid = Math.Max(globalid, _id);

            _nom = x.ChildNodes[1].InnerText;
            _prenom = x.ChildNodes[2].InnerText;
            _numeroDeTelephone = x.ChildNodes[3].InnerText;
            _eMail = x.ChildNodes[4].InnerText;
            _locataire = x.ChildNodes[5].InnerText == "True";
            _proprietaire = x.ChildNodes[6].InnerText == "True";

            switch (x.ChildNodes[7].Attributes["type"].InnerText)
            {
                case "Port" :
                    _adresse = new Port(x.ChildNodes[7]);
                    break;

                case "Camping":
                    _adresse = new Camping(x.ChildNodes[7]);
                    break;

                default :
                    _adresse = new Localisation(x.ChildNodes[7]);
                    break;
            }
        }
示例#4
0
 public Maison(bool g, bool p, bool j, int nbp, int nbc, int s, int d, bool t, bool l, bool c, Localisation loc, int idpro)
     : base(nbp, nbc, s, d, t, l, c, loc, idpro, "Maison")
 {
     _garage = g;
     _piscine = p;
     _jardin = j;
 }
示例#5
0
 public Localisation(Localisation l)
 {
     _ville = l._ville;
     _codePostal = l._codePostal;
     _departement = l._departement;
     _numero = l._numero;
     _voie = l._voie;
 }
示例#6
0
 public Particulier(Particulier c)
 {
     _id = c._id;
     _nom = c._nom;
     _prenom = c._prenom;
     _numeroDeTelephone = c._numeroDeTelephone;
     _eMail = c._eMail;
     _adresse = c._adresse;
     _locataire = c.Locataire;
     _proprietaire = c.Proprietaire;
 }
示例#7
0
 public Particulier(string nom, string prenom, string NDT, string email, Localisation adresse)
 {
     _id = ++globalid;
     _nom = nom;
     _prenom = prenom;
     _numeroDeTelephone = NDT;
     _eMail = email;
     _adresse = adresse;
     _locataire = false;
     _proprietaire = false;
 }
示例#8
0
 public Logement(Logement l)
 {
     _id = l._id;
     _nbPieces = l.NbPiece;
     _nbChambres = l.NbChambres;
     _superficie = l.Superficie;
     _distancePlage = l.DistancePlage;
     _terasse = l.Terasse;
     _laveLinge = l.LaveLinge;
     _cuisineEquipe = l.CuisineEquipe;
     _adresse = l.Adresse;
     _type = l.Type;
 }
示例#9
0
 //public string
 public Logement(int nbp, int nbc, int s, int d, bool t, bool l, bool c, Localisation loc, int idClient, string Type)
 {
     _id = ++globalid;
     _nbPieces = nbc;
     _nbChambres = nbc;
     _superficie = s;
     _distancePlage = d;
     _terasse = t;
     _laveLinge = l;
     _cuisineEquipe = c;
     _adresse = loc;
     _idClient = idClient;
     _type = Type;
 }
示例#10
0
 public Professionnel(string siret, string denomination, string nom, string prenom, string NDT, string email, Localisation adresse)
     : base(nom, prenom, NDT, email, adresse)
 {
     _siret = siret;
     _denomnation = denomination;
 }
示例#11
0
 public MobilHome(int nbp, int nbc, int s, int d, bool t, bool l, bool c, Localisation loc, int idpro)
     : base(nbp, nbc, s, d, t, l, c, loc, idpro, "MobilHome")
 {
 }