Beispiel #1
0
 public MangaState(string currentPage, Rectangle pageLocation, MangaConfiguration configuration, bool pinned)
 {
     this.CurrentPage = currentPage;
     this.PageLocation = pageLocation;
     this.Configuration = configuration;
     this.Pinned = pinned;
 }
 /// <summary>
 /// Constructs a page viewer that adapts to the specified MangaConfiguration
 /// </summary>
 /// <param name="configuration">Parameters indicating how the manga is to be read.</param>
 public MangaPageViewer(MangaConfiguration configuration)
 {
     configuration.PropertyChanged+=configuration_PropertyChanged;
     _viewTransformation = new Matrix();
 }
 internal void CopyFrom(MangaConfiguration configuration)
 {
     ViewMode = configuration.ViewMode;
     Translation = configuration.Translation;
     ReadingDirection = configuration.ReadingDirection;
 }
        private void LoadManga(string BaseFile, MangaConfiguration configuration = null)
        {
            book = new Manga(BaseFile);
            SetCurrentPage(book.GetPage(BaseFile));

            if (configuration != null)
                book.Configuration.CopyFrom(configuration);

            applyOptions();
        }