예제 #1
0
        public void Copy <TMODELE>(TMODELE modele) where TMODELE : ISynchronizable
        {
            TypeIsolant typeIsolant = modele as TypeIsolant;

            Nom         = typeIsolant.Nom;
            Qualite     = typeIsolant.Qualite;
            MiseAJour   = typeIsolant.MiseAJour;
            Creation    = typeIsolant.Creation;
            Suppression = typeIsolant.Suppression;
        }
예제 #2
0
        public void Copy <TMODELE>(TMODELE modele) where TMODELE : ISynchronizable
        {
            Isolant isolant = modele as Isolant;

            Nom         = isolant.Nom;
            MiseAJour   = isolant.MiseAJour;
            Creation    = isolant.Creation;
            Suppression = isolant.Suppression;
            TypeIsolant = isolant.TypeIsolant;
        }
예제 #3
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            TypeIsolant t = (TypeIsolant)obj;

            return((Nom == t.Nom) && (Creation == t.Creation));
        }