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; }
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)); }