以前總在博客園看別人寫的博客
我以前開發 程序較多
廢話少說
程序開發難免會有大數據量操作
接下來看看效果
可能會有很多同學笑我了
再接下來是實現方式
usingSystem;
usingSystem
usingSystem
usingSystem
usingSystem
usingSystem
namespaceDemo
{
publicclassProduct
{
publicintProductID { set;get;}
publicstringProductName { set;get;}
publicintCount { set;get;}
publicdoublePice { set;get;}
publicstringUint { set;get;}
}
}
下面看主窗體的實現代碼
usingSystem;
usingSystem
usingSystem
usingSystem
usingSystem
usingSystem
usingSystem
usingDevExpress
usingSystem
usingSystem
namespacedevDemo
{
publicpartialclassFormMain : Form
{
publicFormMain()
{
InitializeComponent();
}
frmLoading loading = newfrmLoading();//閃屏窗體
#region委托
///<summary>
///關閉閃屏///</summary>
publicdelegatevoidCloseloading();
///<summary>
///綁定數據///</summary>
///<param name=
publicdelegatevoidBindedData(List<Product> ls);
#endregion
privatevoidFormMain_Load(objectsender
{
}
///<summary>
///讀取按鈕點擊事件///</summary>
privatevoidbutton
{
newAction(ReadData)
loading
}
///<summary>
///讀取數據///</summary>
publicvoidReadData()
{
List<Product> productList = newList<Product>();
//裝載模擬數據
for(inti =
{
productList
{
ProductID = i +
Count = newRandom()
Pice = System
Uint =
ProductName = string
});
Thread
}
this
//綁定數據
this
})
}
///<summary>
///關閉loading///</summary>
///<param name=
publicvoidCloseLoading(IAsyncResult ar)
{
this
}
}
}
至此這個Demo完成
另外
From:http://tw.wingwit.com/Article/program/net/201311/13480.html