1 Star 0 Fork 0

loop/千词砍

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
Page_Home.cs 1.08 KB
Copy Edit Raw Blame History
gitee authored 2019-10-22 22:26 . apes_admin第一次提交
using System;
using System.Collections.Generic;
using System.Threading;
using System.Windows.Forms;
using WinFormProject.XiangHongLi;
namespace WinFormProject
{
public partial class Page_Home : UserControl
{
public Page_Home(List<Content> contents)
{
InitializeComponent();
DoubleBuffered = true;
contents.Reverse();
foreach (var content in contents)
{
this.panel_scroll.Controls.Add(new NewsMain(content)
{
Dock = DockStyle.Top,
});
}
}
public Page_Home()
{
InitializeComponent();
this.DoubleBuffered = true;
CheckForIllegalCrossThreadCalls = false;
List<Content> list = new NewsSpider().GetNews();
list.Reverse();
foreach (var content in list)
{
this.panel_scroll.Controls.Add(new NewsMain(content)
{
Dock = DockStyle.Top,
});
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/GunNRoses/qiancikan.git
git@gitee.com:GunNRoses/qiancikan.git
GunNRoses
qiancikan
千词砍
master

Search