コード例 #1
0
 public void Window_Loaded(object sender, RoutedEventArgs e)
 {
     //btnAddComicWindow.IsEnabled = false;
     hideAllTabs();
     RefreshComicsAvailable();
     _comics = _comicManager.RetrieveAvailableComics(true);
     dgComics.ItemsSource = _comics;
 }
コード例 #2
0
        // GET: Comics/Remove/5
        public ActionResult RemoveFromPull(int?id)
        {
            ComicManager _comicManager = new ComicManager();

            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var comic = _comicManager.RetrieveAvailableComics(true).Find(c => c.ComicID == id);

            if (comic == null)
            {
                return(HttpNotFound());
            }
            return(View(comic));
        }
コード例 #3
0
 // GET: Comics
 public ActionResult Index()
 {
     return(View(_comicManager.RetrieveAvailableComics(true)));
 }