Exemplo n.º 1
0
 public MainWindow()
 {
     InitializeComponent();
     cefBrowser.FrameLoadEnd += OnPageLoad;
     cefBrowser.RequestHandler = new SiteFilter(this);
     Comics = new ObservableCollection<Comic>(LoadComics());
     lvSites.ItemsSource = Comics;
     Comic last = Comics[0];
     foreach(Comic comic in Comics)
     {
         if(comic.LastVisited > last.LastVisited)
         {
             last = comic;
         }
     }
     Current = last;
     cefBrowser.Load(Current.Upto);
 }
Exemplo n.º 2
0
 private void LoadComic(object sender, RoutedEventArgs e)
 {
     if(Current != null)
     {
         Current.SaveChanges();
     }
     Current = this.lvSites.SelectedItem as Comic;
     cefBrowser.Load(Current.Upto);
 }