Example #1
0
        public object Clone()
        {
            ProductProps p = new ProductProps();

            p.ID            = this.ID;
            p.quantity      = this.quantity;
            p.code          = this.code;
            p.price         = this.price;
            p.description   = this.description;
            p.ConcurrencyID = this.ConcurrencyID;
            return(p);
        }
Example #2
0
        /// <summary>
        /// Clones this object.
        /// </summary>
        /// <returns>A clone of this object.</returns>
        public Object Clone()
        {
            ProductProps p = new ProductProps();

            p.ID             = this.ID;
            p.ProductCode    = this.ProductCode;
            p.Description    = this.Description;
            p.UnitPrice      = this.UnitPrice;
            p.OnHandQuantity = this.OnHandQuantity;
            p.ConcurrencyID  = this.ConcurrencyID;
            return(p);
        }
Example #3
0
        public object Clone()
        {
            ProductProps p = new ProductProps();

            p.ID          = this.ID;
            p.code        = this.code;
            p.description = this.description;
            p.unitPrice   = this.unitPrice;
            p.quantity    = this.quantity;

            return(p);
        }
Example #4
0
        /// <summary>
        /// Clones this object. This is needed because IBaseProps
        /// has ICloneable, so it must be implemented in child class
        /// </summary>
        /// <returns>A clone of this object.</returns>
        public Object Clone()
        {
            ProductProps p = new ProductProps();

            p.ID             = this.ID;
            p.prodCode       = this.prodCode;
            p.description    = this.description;
            p.unitPrice      = this.unitPrice;
            p.onHandQuantity = this.onHandQuantity;
            p.ConcurrencyID  = this.ConcurrencyID;
            return(p);
        }
Example #5
0
        public void SetState(string xml)
        {
            XmlSerializer serializer = new XmlSerializer(this.GetType());
            StringReader  reader     = new StringReader(xml);
            ProductProps  p          = (ProductProps)serializer.Deserialize(reader);

            this.ID            = p.ID;
            this.quantity      = p.quantity;
            this.code          = p.code;
            this.price         = p.price;
            this.description   = p.description;
            this.ConcurrencyID = p.ConcurrencyID;
        }