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() ); }
public Win32Volume(IntPtr handle, Win32Book book, Win32Plugin plugin) { this.handle = handle; this.book = book; this.plugin = plugin; }