Beispiel #1
0
 public Reader(Manga manga)
 {
     this.manga = manga;
     InitializeComponent();
     PageContent.Visibility = System.Windows.Visibility.Hidden;
     this.Closed += delegate
     {
         MangaList.Save();
         App.Window.Show();
     };
 }
Beispiel #2
0
        private void AddMangaSearchTile(Manga m, ImageSource img)
        {
            MangaBox box = new MangaBox();
            box.MangaTitle = m.Title;
            box.DatabaseText = (m.DatabaseParent == null ? "Local" : m.DatabaseParent.Name);

            Grid grid = FragmentHelper.ExtractUI<Grid>(box);
            Tile tile = new Tile();
            tile.Width = 225;
            tile.Height = 180;
            tile.Content = grid;
            tile.Click += delegate
            {
                Reader read = new Reader(m);
                read.Show();
                this.Hide();
            };
            Tiles.Children.Add(tile);

            box.MangaCover = img;
        }
Beispiel #3
0
        private void AddMangaTile(Manga m)
        {
            MangaBox box = new MangaBox();
            box.MangaTitle = m.Title;
            box.DatabaseText = (m.DatabaseParent == null ? "Local" : m.DatabaseParent.Name);

            Grid grid = FragmentHelper.ExtractUI<Grid>(box);
            Tile tile = new Tile();
            tile.Width = 225;
            tile.Height = 180;
            tile.Content = grid;
            tile.Click += delegate
            {
                Reader read = new Reader(m);
                read.Show();
                this.Hide();
            };
            this.grid.Children.Add(tile);

            Request request = new Request();
            request.manga = m;
            request.box = box;
            this.request.Add(request);
        }