예제 #1
0
        public static FicheAlbum ShowAlbum(Guid ID_Album)
        {
            FicheAlbum f = new FicheAlbum();

            f.ID_Album = ID_Album;
            //f.Dock = DockStyle.Fill;
            return(f);
        }
예제 #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     this.panel1.SuspendLayout();
     try
     {
         if (panel1.Controls.Count > 0)
         {
             panel1.Controls.RemoveAt(0);
             FicheAlbum.ShowAlbum(StringUtils.StringToGuid("{023BD595-6CEE-42FF-A852-2432C18A2952}")).Parent = this.panel1;
         }
         else
         {
             FicheAlbum.ShowAlbum(StringUtils.StringToGuid("{02B4F98D-3697-4CE8-B04D-028A9CFCD4C0}")).Parent = this.panel1;
         }
     }
     finally
     {
         panel1.Controls[0].Dock = DockStyle.Fill;
         this.panel1.ResumeLayout();
     }
 }