public void Copy <TMODELE>(TMODELE modele) where TMODELE : ISynchronizable { TypeModuleTypeSlot typeModuleTypeSlot = modele as TypeModuleTypeSlot; TypeSlot = typeModuleTypeSlot.TypeSlot; TypeModule = typeModuleTypeSlot.TypeModule; MiseAJour = typeModuleTypeSlot.MiseAJour; Creation = typeModuleTypeSlot.Creation; Suppression = typeModuleTypeSlot.Suppression; }
public override bool Equals(object obj) { if (obj == null || GetType() != obj.GetType()) { return(false); } TypeModuleTypeSlot t = (TypeModuleTypeSlot)obj; return(Creation == t.Creation); }