private void FavoriteNovelCardToPanel(Cards.FavoriteNovelCard favoriteNovelCard) { if (this.flowLayoutPanel1.InvokeRequired) { this.flowLayoutPanel1.Invoke(new MethodInvoker(delegate() { flowLayoutPanel1.Controls.Add(favoriteNovelCard); })); } else { flowLayoutPanel1.Controls.Add(favoriteNovelCard); } }
private Cards.FavoriteNovelCard AddFavoriteNovelCardValue(string title, string novellink, string imglink, int sourcesite) { Cards.FavoriteNovelCard nfc = new Cards.FavoriteNovelCard(sourcesite); return(nfc.SendFavoriteNovelCardData(title, novellink, imglink)); }