Example #1
0
        //[Browsable(false)]
        //public string TargetName
        //{
        //    get { return _targetName; }
        //    set { _targetName = value; }
        //}

        //private bool _active = true;
        //[Browsable(false)]
        //public bool Active
        //{
        //    get { return _active; }
        //    set { _active = value; }
        //}

        /// <summary>
        /// Function: Clone a LibraryAdapter
        /// Author  : Jerry Xu
        /// Date    : 2008-7-8
        /// </summary>
        /// <returns>LibraryAdapter</returns>
        public virtual LiveAdapter Copy()
        {
            LiveAdapter clone = NewInstance();

            clone.FromTo(this);
            return(clone);
        }
Example #2
0
 private void InternalFromTo(LiveAdapter item)
 {
     //TODO:
     if (item != null)
     {
         this.IsActive = (item as LiveCategoryAdapterInfo).IsActive;
     }
 }
 private void InternalFromTo(LiveAdapter item)
 {
     //TODO:
     if (item != null)
     {
         this.IsActive = (item as HotButtonItemAdapterInfo).IsActive;
     }
 }
Example #4
0
 /// <summary>
 /// Function: Get data from a object to current object
 /// Author  : Jerry Xu
 /// Date    : 2008-7-8
 /// </summary>
 /// <param name="memory">LibraryAdapter</param>
 public virtual void FromTo(LiveAdapter item)
 {
     this.Id     = item.Id;
     this.Name   = item.Name;
     _targetId   = item._targetId;
     _target     = item._target;
     _targetName = item._targetName;
     //_active = item._active;
 }
Example #5
0
 /// <summary>
 /// Function: Get data from a object to current object
 /// Author  : Jerry Xu
 /// Date    : 2008-7-8
 /// </summary>
 /// <param name="memory">LibraryAdapter</param>
 public override void FromTo(LiveAdapter item)
 {
     //this.Caption = memory.Caption;
     if (item != null)
     {
         base.FromTo(item);
         //TODO:
         InternalFromTo(item as LiveCategoryAdapterInfo);
     }
 }