internal void DoBeforeLoadPackage(LoadPackageEventArgs e) { var handler = BeforeLoadPackage; if (handler != null) { handler(this, e); } }
/// <summary> /// This event is raised by the View when a book needs to be opened from a reference to /// an opf file. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void View_LoadPackage(object sender, LoadPackageEventArgs e) { // Retrieve the package from the BookFileSystem IFile file = base.MainState.BookFileSystem.GetFile(e.PackageFullPath); file.OpenAsyncComplete += file_OpenAsyncComplete; file.OpenAsync(e.PackageFullPath); }