private static void Main(string[] args) { // 不是Win10周年更新版本及以上的,设置DPI感知 var osVersion = Environment.OSVersion.Version; if (osVersion == null || osVersion.Major < 10 || osVersion.Build < 14393) { SETUNA.Main.WindowsAPI.SetProcessDPIAware(); } var instance = SingletonApplication.GetInstance(Application.ProductVersion, args); if (instance.Register()) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var mainform = new Mainform(); instance.AddSingletonFormListener(mainform); mainform.CommandRun(args); Application.Run(mainform); } }
// Token: 0x060001EE RID: 494 RVA: 0x0000A4C4 File Offset: 0x000086C4 public Mainform() { Instance = this; _isstart = false; _iscapture = false; _isoption = false; InitializeComponent(); scrapBook = new ScrapBook(this); scrapBook.addKeyPressListener(this); scrapBook.addScrapAddedListener(this); scrapBook.addScrapRemovedListener(this); optSetuna = new SetunaOption(); dustbox = new Queue <ScrapBase>(); scrapBook.DustBox = dustbox; scrapBook.DustBoxCapacity = 5; keyBook = optSetuna.GetKeyItemBook(); _imgpool = new List <ScrapSource>(); SetSubMenu(); Text = $"SETUNA {Application.ProductVersion}"; NetUtils.Init(); }