Ejemplo n.º 1
0
        public static void addToList(Favorite favorite)
        {
            UcCardFavorito card = new UcCardFavorito(favorite);

            card.Name = "card" + favorite.id;
            flowPanel.Controls.Add(card);

            flowPanel.Refresh();
        }
Ejemplo n.º 2
0
 public static void loadFlowPanel(List <Favorite> favorites)
 {
     if (flowPanel != null)
     {
         favorites.ForEach(favorite =>
         {
             UcCardFavorito card = new UcCardFavorito(favorite);
             card.Name           = "card" + favorite.id;
             card.Anchor         = AnchorStyles.Left;
             flowPanel.Controls.Add(card);
         });
         flowPanel.Refresh();
     }
 }