?? filechain.cs
字號(hào):
using System;
using System.Windows.Forms ;
using System.IO ;
using System.IO.IsolatedStorage ;
using CsharpPats;
namespace Chain {
/// <summary>
/// Summary description for FileChain.
/// </summary>
public class FileChain : Chain {
ListBox flist;
public FileChain(ListBox lb) {
flist = lb;
}
//-----
public override void sendToChain( string mesg) {
//if the string matches any part of a filename
//put those filenames in the file list box
string[] files;
string fname = mesg + "*.*";
files = Directory.GetFiles(Directory.GetCurrentDirectory(), fname);
//add them all to the listbox
if (files.Length > 0){
for (int i = 0; i< files.Length; i++) {
csFile vbf = new csFile(files[i]);
flist.Items.Add(vbf.getRootName());
}
}
else {
if ( hasChain()) {
chn.sendToChain(mesg);
}
}
}
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -