public override void Initialize()
 {
     base.Initialize();
     this._Parent    = new PersonalFolder();
     this._Childs    = new PersonalFolders();
     this._Documents = new GeneralDocuments();
     this._Owner     = new WFPerson();
 }
示例#2
0
 public override void Initialize()
 {
     base.Initialize();
     this._CorrelateObjectID = 0L;
     this._DocumentType      = new BasicInfoDetail();
     this._CorrelateOffer    = new Offer();
     this._FileVersions      = new WordDocuments();
     this._Owner             = new WFPerson();
     this._CorrelateFolder   = new PersonalFolder();
     this._IsLocked          = SbnBoolean.OutOfValue;
     this._IsHidden          = SbnBoolean.OutOfValue;
     this._IsProtected       = SbnBoolean.OutOfValue;
     this._IsZipped          = SbnBoolean.OutOfValue;
 }
        public override SbnObject Clone(string sNodeName)
        {
            PersonalFolder folder = new PersonalFolder {
                ID = base.ID
            };

            if (!object.ReferenceEquals(this.Parent, null))
            {
                folder.Parent = (PersonalFolder)this.Parent.Clone(sNodeName);
            }
            if (!object.ReferenceEquals(this.Childs, null))
            {
                folder.Childs = (PersonalFolders)this.Childs.Clone(sNodeName);
            }
            if (!object.ReferenceEquals(this.Documents, null))
            {
                folder.Documents = (GeneralDocuments)this.Documents.Clone(sNodeName);
            }
            if (!object.ReferenceEquals(this.Owner, null))
            {
                folder.Owner = (WFPerson)this.Owner.Clone(sNodeName);
            }
            return(folder);
        }