個人檔案
個人圖檔
ID:tsdn
暱稱:天空部落測試員
生日:1973/01/4
地區:臺中縣

自由欄位
BlogAD

文章分類
tsdn的最近文章發表
tsdn的最新的回應
AD

台灣檜木精油
Blog Look Score and Rank
人氣指數
當日人次:
累積人次:
搜尋此頻道內容
搜尋:
我推薦誰
誰推薦我
誰來我家
RSS 訂閱
RSS2
ATOM
贊助商
其它資訊
本部落所刊登之內容,皆由作者個人所提供,不代表 yam天空部落 本身立場。
POWERED BY
POWERED BY
會員登入免費註冊
October 19, 2007
加入書籤: HemiDemiGoogle BookmarksYahoo! My WebDel.icio.usfurltechnorati加入此網頁到:你推我報MyShareUDN共享書籤BlogLive

syntaxhighlighter   TEST

部落格 貼 程式碼 測試 
555
private void cmdSort_Click(object sender, System.EventArgs e)
{
// In order for this procedure to work, the items contained in the array
// must support comparsion. This is accomplished by objects by implementing
// the IComparable interface.
// See the Customer object definition below for more information.
this.lblDataAfter.Text = "Data After Sort";

if (this.optstrings.Checked)
{
string[] strData = {"Joe Hasterman", "Ted Mattison", "Joe Rummel", "Brian Gurnure", "Doug Landal"};
Array.Sort(strData);
DisplayArrayData(strData, WhichListBox.BoxTwo);
}
else
{
Customer[] objData = {new Customer(3423, "Joe Hasterman"), new Customer(9348, "Ted Mattison"), new Customer(3581, "Joe Rummel"), new Customer(7642, "Brian Gurnure"), new Customer(2985, "Doug Landal")};
Array.Sort(objData);
DisplayArrayData(objData, WhichListBox.BoxTwo);
}
}
 

熱門:
引用 (你可以針對此文寫一篇屬於自己的blog/想法,並給作者一個通告)
引用
相關閱讀
留言 (0筆)
發表你的留言 (字數限制 最多 2000 個中文字)
私密留言:
Name:






內容: