Esempio n. 1
0
 public MangaState(string currentPage, Rectangle pageLocation, MangaConfiguration configuration, bool pinned)
 {
     this.CurrentPage = currentPage;
     this.PageLocation = pageLocation;
     this.Configuration = configuration;
     this.Pinned = pinned;
 }
Esempio n. 2
0
 /// <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;
 }
Esempio n. 4
0
        private void LoadManga(string BaseFile, MangaConfiguration configuration = null)
        {
            book = new Manga(BaseFile);
            SetCurrentPage(book.GetPage(BaseFile));

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

            applyOptions();
        }