Exemple #1
0
        public override void Read(BinaryReader reader)
        {
            base.Read(reader);

            byte[] body = reader.ReadBytes(this.HeaderOne - 12);
            Index = (PhotoDataSetIndex)ToInt32(body, 0);

            recordPadding = body.Length - 4;

            switch (Index)
            {
            case PhotoDataSetIndex.ImageList:
                Data = new ImageListRecord(IsBE);
                Data.Read(reader);
                break;

            case PhotoDataSetIndex.AlbumList:
                Data = new AlbumListRecord(IsBE);
                Data.Read(reader);
                break;

            case PhotoDataSetIndex.FileList:
                Data = new FileListRecord(IsBE);
                Data.Read(reader);
                break;

            default:
                break;
            }
        }
Exemple #2
0
        public PhotoDataSetRecord(bool isbe, PhotoDbRecord data, PhotoDataSetIndex index) : base(isbe)
        {
            this.Name     = "mhsd";
            recordPadding = 80;

            this.Data  = data;
            this.Index = index;
        }
Exemple #3
0
        public PhotoDataSetRecord this [PhotoDataSetIndex index] {
            get {
                foreach (PhotoDataSetRecord ds in children)
                {
                    if (ds.Index == index)
                    {
                        return(ds);
                    }
                }

                return(null);
            }
        }