📄 program.cs
字号:
using System;
using System.Windows.Forms;
using System.Threading;
namespace PhotoSprite
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] files)
{
string fileName = "";
if (files.Length > 0)
fileName = files[0];
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
// 不允许在进程中打开多个 PhotoSprite 软件
bool createdNew;
Mutex m = new Mutex(true, "PhotoSprite", out createdNew);
if (createdNew)
{
Application.Run(new WinMain(fileName));
m.ReleaseMutex();
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -