/// <summary>
        /// Open file, not implemented
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void menuItemOpen_Click(object sender, RoutedEventArgs e)
        {
            ObservableCollection <Album> albums = albumManager.GetAlbums();
            RestoreAlbum restoreAlbum           = new RestoreAlbum(albums);

            if (restoreAlbum.ShowDialog() == true)
            {
                this.album = albumManager.GetAlbum(restoreAlbum.AlbumId);
                UpdateGUI();
            }
        }
Exemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.QueryString.Get("AI") != null)
     {
         int          id = int.Parse(Request.QueryString.Get("AI"));
         AlbumManager newsAndEventsManager = new AlbumManager();
         Session["album"] = newsAndEventsManager.GetAlbum(id);
     }
     else
     {
         Response.Redirect(Request.ApplicationPath + "/Gallery/Gallery.aspx");
     }
 }
        public IActionResult GetAlbum(int id = 0)
        {
            var album = manager.GetAlbum(id);

            return(View(album));
        }