?? copy of listadapter.cs
字號(hào):
using System;
using System.Windows.Forms;
namespace LstAdapter
{
/// <summary>
/// Summary description for ListAdapter.
/// </summary>
public class ListAdapter
{
private ListBox listbox;
public ListAdapter(ListBox lb) {
listbox = lb;
}
public void Add(string s) {
listbox.Items.Add (s);
}
public void Add(Swimmer sw) {
listbox.Items.Add (sw.getName()+"\t"+sw.getTime());
}
public int SelectedIndex() {
return listbox.SelectedIndex;
}
public void Clear() {
listbox.Items.Clear ();
}
public void clearSelection() {
int i = SelectedIndex();
if(i >= 0) {
listbox.SelectedIndex =-1;
}
}
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -