示例#1
0
        public void Copy <TMODELE>(TMODELE modele) where TMODELE : ISynchronizable
        {
            TypeModulePlacable typeModulePlacable = modele as TypeModulePlacable;

            Nom         = typeModulePlacable.Nom;
            Icone       = typeModulePlacable.Icone;
            MiseAJour   = typeModulePlacable.MiseAJour;
            Creation    = typeModulePlacable.Creation;
            Suppression = typeModulePlacable.Suppression;
        }
示例#2
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            TypeModulePlacable t = (TypeModulePlacable)obj;

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