Ejemplo n.º 1
0
        /// <summary>
        /// Clones this object.
        /// </summary>
        /// <returns>A clone of this object.</returns>
        public Object Clone()
        {
            EventProps p = new EventProps();

            p.ID            = this.ID;
            p.userID        = this.userID;
            p.date          = this.date;
            p.title         = this.title;
            p.description   = this.description;
            p.ConcurrencyID = this.ConcurrencyID;
            return(p);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Clones this object.
        /// </summary>
        /// <returns>A clone of this object.</returns>
        public Object Clone()                // So that I can clone an object
        {
            EventProps p = new EventProps(); //Puts properties out of objects that we have and puts into the properties we just created

            p.ID            = this.ID;
            p.userID        = this.userID;
            p.date          = this.date;
            p.title         = this.title;
            p.description   = this.description;
            p.ConcurrencyID = this.ConcurrencyID;
            return(p);
        }
Ejemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        public void SetState(string xml)
        {
            XmlSerializer serializer = new XmlSerializer(this.GetType());
            StringReader  reader     = new StringReader(xml);
            EventProps    p          = (EventProps)serializer.Deserialize(reader);

            this.ID            = p.ID;
            this.userID        = p.userID;
            this.date          = p.date;
            this.title         = p.title;
            this.description   = p.description;
            this.ConcurrencyID = p.ConcurrencyID;
        }