?? imagechain.cs
字號(hào):
using System;
using System.Windows.Forms;
using System.Drawing ;
using CsharpPats;
namespace Chain
{
/// <summary>
/// Summary description for ImageChain.
/// </summary>
public class ImageChain :Chain {
PictureBox picBox; //image goes here
//-----
public ImageChain(PictureBox pc) {
picBox = pc; //save reference
}
//-----
public override void sendToChain(string mesg) {
//put image in picture box
string fname = mesg + ".jpg"; //assume jpg filename
csFile fl = new csFile(fname);
if(fl.exists())
picBox.Image = new Bitmap(fname);
else{
if (hasChain()){ //send off down chain
chn.sendToChain(mesg);
}
}
}
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -