⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 program.cs

📁 一个C#开发的类似PHOTOSHOP的软件,用到了很多图形算法.
💻 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 + -