📄 program.cs
字号:
#region Using directives
using System;
using System.IO;
using System.Collections.Generic;
using System.Windows.Forms;
#endregion
namespace DocumentProtector
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
Application.EnableVisualStyles();
// Create a new DocumentProtectorFrom and if a
// document path was specified with a command
// line argument, open it in the form.
DocumentProtectorForm form = new DocumentProtectorForm();
form.Show();
if ((args.Length == 1) && File.Exists(Path.GetFullPath(args[0])))
form.OpenNewDocument(Path.GetFullPath(args[0]));
Application.Run(form);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -