opencommand.cs
来自「C#设计模式随书源代码.全书一共介绍了23种设计模式」· CS 代码 · 共 17 行
CS
17 行
using System;
using System.Windows.Forms ;
namespace CHolder
{
/// <summary>
/// Summary description for OpenCommand.
/// </summary>
public class OpenCommand :Command {
public OpenCommand()
{}
public void Execute() {
OpenFileDialog fd = new OpenFileDialog ();
fd.ShowDialog ();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?