Exemple #1
0
        protected override void OnPopCopy(WorkingCopyResult result)
        {
            ObjectsPack pack = CopyStack.Pop();

            if (result == WorkingCopyResult.Restore)
            {
                this.Name                  = (string)pack.Read();
                this.Description           = (string)pack.Read();
                this.Manufacturer          = (string)pack.Read();
                this.ManufacturerImageLink = (string)pack.Read();
                this.DatasheetSiteLink     = (string)pack.Read();
                this.DatasheetPdfLink      = (string)pack.Read();
                this.DatasheetPages        = (int)pack.Read();
                this.DatasheetSize         = (long)pack.Read();
                this.ManufacturerSite      = (string)pack.Read();
                this.LastUseDate           = (DateTime)pack.Read();
                this.Custom                = (bool)pack.Read();
                this.RelativeCustomPath    = (string)pack.Read();
            }

            Tags.PopCopy(result);
        }
        protected override void OnPopCopy(WorkingCopyResult result)
        {
            ObjectsPack pack = CopyStack.Pop();

            this.Value = (T)pack.Read();
        }