Exemplo n.º 1
0
        private UiNode[] ExpandMovieChilds()
        {
            DbArchiveAccessor dbAccessor = new DbArchiveAccessor(_listing, _indices);
            WdbMovieArchiveListing wpdListing = WdbMovieArchiveListingReader.Read(dbAccessor);

            UiNode[] result = new UiNode[wpdListing.Count];
            for (int i = 0; i < result.Length; i++)
            {
                WdbMovieEntry movieEntry = wpdListing[i];
                result[i] = new UiWdbMovieLeaf(movieEntry.Name, movieEntry, wpdListing) { Parent = this };
            }
            return result;
        }
Exemplo n.º 2
0
 public WdbMovieArchiveListing(DbArchiveAccessor accessor, int entriesCount)
     : base(entriesCount)
 {
     Accessor = accessor;
 }
 public static WdbMovieArchiveListing Read(DbArchiveAccessor accessor)
 {
     WdbMovieArchiveListingReader reader = new WdbMovieArchiveListingReader(accessor);
     return reader.Read();
 }
 private WdbMovieArchiveListingReader(DbArchiveAccessor accessor)
 {
     _accessor = Exceptions.CheckArgumentNull(accessor, "accessor");
 }
Exemplo n.º 5
0
        public static WdbMovieArchiveListing Read(DbArchiveAccessor accessor)
        {
            WdbMovieArchiveListingReader reader = new WdbMovieArchiveListingReader(accessor);

            return(reader.Read());
        }
Exemplo n.º 6
0
 private WdbMovieArchiveListingReader(DbArchiveAccessor accessor)
 {
     _accessor = Exceptions.CheckArgumentNull(accessor, "accessor");
 }