Exemple #1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            ComplementoEN t = obj as ComplementoEN;

            if (t == null)
            {
                return(false);
            }
            if (Id.Equals(t.Id))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemple #2
0
 public ComplementoEN(ComplementoEN complemento)
 {
     this.init(Id, complemento.Precio, complemento.Nombre, complemento.Foto, complemento.LineaPedido, complemento.NumVeces);
 }