Beispiel #1
0
        public Win32Book(Uri uri, Win32Plugin plugin)
        {
            this.plugin = plugin;
            this.handle = plugin.wrapper.Activate(plugin.handle, uri.ToString());

            this.volumes = new Lazy <Win32Volume[]>(() =>
                                                    this.plugin.wrapper.Book_GetVolumes(this.handle)
                                                    .Select(volumeHandle => new Win32Volume(this.handle, this, plugin))
                                                    .ToArray()
                                                    );
        }
Beispiel #2
0
 public Win32Volume(IntPtr handle, Win32Book book, Win32Plugin plugin)
 {
     this.handle = handle;
     this.book   = book;
     this.plugin = plugin;
 }