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

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

            Composant c = (Composant)obj;

            return((Nom == c.Nom) && (Creation == c.Creation) && (Prix == c.Prix));
        }