[
  {
    "path": ".gitattributes",
    "content": "###############################################################################\n# Set default behavior to automatically normalize line endings.\n###############################################################################\n* text=auto\n\n###############################################################################\n# Set default behavior for command prompt diff.\n#\n# This is need for earlier builds of msysgit that does not have it on by\n# default for csharp files.\n# Note: This is only used by command line\n###############################################################################\n#*.cs     diff=csharp\n\n###############################################################################\n# Set the merge driver for project and solution files\n#\n# Merging from the command prompt will add diff markers to the files if there\n# are conflicts (Merging from VS is not affected by the settings below, in VS\n# the diff markers are never inserted). Diff markers may cause the following \n# file extensions to fail to load in VS. An alternative would be to treat\n# these files as binary and thus will always conflict and require user\n# intervention with every merge. To do so, just uncomment the entries below\n###############################################################################\n#*.sln       merge=binary\n#*.csproj    merge=binary\n#*.vbproj    merge=binary\n#*.vcxproj   merge=binary\n#*.vcproj    merge=binary\n#*.dbproj    merge=binary\n#*.fsproj    merge=binary\n#*.lsproj    merge=binary\n#*.wixproj   merge=binary\n#*.modelproj merge=binary\n#*.sqlproj   merge=binary\n#*.wwaproj   merge=binary\n\n###############################################################################\n# behavior for image files\n#\n# image files are treated as binary by default.\n###############################################################################\n#*.jpg   binary\n#*.png   binary\n#*.gif   binary\n\n###############################################################################\n# diff behavior for common document formats\n# \n# Convert binary document formats to text before diffing them. This feature\n# is only available from the command line. Turn it on by uncommenting the \n# entries below.\n###############################################################################\n#*.doc   diff=astextplain\n#*.DOC   diff=astextplain\n#*.docx  diff=astextplain\n#*.DOCX  diff=astextplain\n#*.dot   diff=astextplain\n#*.DOT   diff=astextplain\n#*.pdf   diff=astextplain\n#*.PDF   diff=astextplain\n#*.rtf   diff=astextplain\n#*.RTF   diff=astextplain\n"
  },
  {
    "path": ".gitignore",
    "content": "## Ignore Visual Studio temporary files, build results, and\n## files generated by popular Visual Studio add-ons.\n##\n## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore\n\n# User-specific files\n*.rsuser\n*.suo\n*.user\n*.userosscache\n*.sln.docstates\n\n# User-specific files (MonoDevelop/Xamarin Studio)\n*.userprefs\n\n# Build results\n[Dd]ebug/\n[Dd]ebugPublic/\n[Rr]elease/\n[Rr]eleases/\nx64/\nx86/\n[Aa][Rr][Mm]/\n[Aa][Rr][Mm]64/\nbld/\n[Bb]in/\n[Oo]bj/\n[Ll]og/\n\n# Visual Studio 2015/2017 cache/options directory\n.vs/\n# Uncomment if you have tasks that create the project's static files in wwwroot\n#wwwroot/\n\n# Visual Studio 2017 auto generated files\nGenerated\\ Files/\n\n# MSTest test Results\n[Tt]est[Rr]esult*/\n[Bb]uild[Ll]og.*\n\n# NUNIT\n*.VisualState.xml\nTestResult.xml\n\n# Build Results of an ATL Project\n[Dd]ebugPS/\n[Rr]eleasePS/\ndlldata.c\n\n# Benchmark Results\nBenchmarkDotNet.Artifacts/\n\n# .NET Core\nproject.lock.json\nproject.fragment.lock.json\nartifacts/\n\n# StyleCop\nStyleCopReport.xml\n\n# Files built by Visual Studio\n*_i.c\n*_p.c\n*_h.h\n*.ilk\n*.meta\n*.obj\n*.iobj\n*.pch\n*.pdb\n*.ipdb\n*.pgc\n*.pgd\n*.rsp\n*.sbr\n*.tlb\n*.tli\n*.tlh\n*.tmp\n*.tmp_proj\n*_wpftmp.csproj\n*.log\n*.vspscc\n*.vssscc\n.builds\n*.pidb\n*.svclog\n*.scc\n\n# Chutzpah Test files\n_Chutzpah*\n\n# Visual C++ cache files\nipch/\n*.aps\n*.ncb\n*.opendb\n*.opensdf\n*.sdf\n*.cachefile\n*.VC.db\n*.VC.VC.opendb\n\n# Visual Studio profiler\n*.psess\n*.vsp\n*.vspx\n*.sap\n\n# Visual Studio Trace Files\n*.e2e\n\n# TFS 2012 Local Workspace\n$tf/\n\n# Guidance Automation Toolkit\n*.gpState\n\n# ReSharper is a .NET coding add-in\n_ReSharper*/\n*.[Rr]e[Ss]harper\n*.DotSettings.user\n\n# JustCode is a .NET coding add-in\n.JustCode\n\n# TeamCity is a build add-in\n_TeamCity*\n\n# DotCover is a Code Coverage Tool\n*.dotCover\n\n# AxoCover is a Code Coverage Tool\n.axoCover/*\n!.axoCover/settings.json\n\n# Visual Studio code coverage results\n*.coverage\n*.coveragexml\n\n# NCrunch\n_NCrunch_*\n.*crunch*.local.xml\nnCrunchTemp_*\n\n# MightyMoose\n*.mm.*\nAutoTest.Net/\n\n# Web workbench (sass)\n.sass-cache/\n\n# Installshield output folder\n[Ee]xpress/\n\n# DocProject is a documentation generator add-in\nDocProject/buildhelp/\nDocProject/Help/*.HxT\nDocProject/Help/*.HxC\nDocProject/Help/*.hhc\nDocProject/Help/*.hhk\nDocProject/Help/*.hhp\nDocProject/Help/Html2\nDocProject/Help/html\n\n# Click-Once directory\npublish/\n\n# Publish Web Output\n*.[Pp]ublish.xml\n*.azurePubxml\n# Note: Comment the next line if you want to checkin your web deploy settings,\n# but database connection strings (with potential passwords) will be unencrypted\n*.pubxml\n*.publishproj\n\n# Microsoft Azure Web App publish settings. Comment the next line if you want to\n# checkin your Azure Web App publish settings, but sensitive information contained\n# in these scripts will be unencrypted\nPublishScripts/\n\n# NuGet Packages\n*.nupkg\n# Uncomment if necessary however generally it will be regenerated when needed\n#!**/[Pp]ackages/repositories.config\n# NuGet v3's project.json files produces more ignorable files\n*.nuget.props\n*.nuget.targets\n\n# Microsoft Azure Build Output\ncsx/\n*.build.csdef\n\n# Microsoft Azure Emulator\necf/\nrcf/\n\n# Windows Store app package directories and files\nAppPackages/\nBundleArtifacts/\nPackage.StoreAssociation.xml\n_pkginfo.txt\n*.appx\n\n# Visual Studio cache files\n# files ending in .cache can be ignored\n*.[Cc]ache\n# but keep track of directories ending in .cache\n!?*.[Cc]ache/\n\n# Others\nClientBin/\n~$*\n*~\n*.dbmdl\n*.dbproj.schemaview\n*.jfm\n*.pfx\n*.publishsettings\norleans.codegen.cs\n\n# Including strong name files can present a security risk\n# (https://github.com/github/gitignore/pull/2483#issue-259490424)\n#*.snk\n\n# Since there are multiple workflows, uncomment next line to ignore bower_components\n# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)\n#bower_components/\n\n# RIA/Silverlight projects\nGenerated_Code/\n\n# Backup & report files from converting an old project file\n# to a newer Visual Studio version. Backup files are not needed,\n# because we have git ;-)\n_UpgradeReport_Files/\nBackup*/\nUpgradeLog*.XML\nUpgradeLog*.htm\nServiceFabricBackup/\n*.rptproj.bak\n\n# SQL Server files\n*.mdf\n*.ldf\n*.ndf\n\n# Business Intelligence projects\n*.rdl.data\n*.bim.layout\n*.bim_*.settings\n*.rptproj.rsuser\n*- Backup*.rdl\n\n# Microsoft Fakes\nFakesAssemblies/\n\n# GhostDoc plugin setting file\n*.GhostDoc.xml\n\n# Node.js Tools for Visual Studio\n.ntvs_analysis.dat\nnode_modules/\n\n# Visual Studio 6 build log\n*.plg\n\n# Visual Studio 6 workspace options file\n*.opt\n\n# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)\n*.vbw\n\n# Visual Studio LightSwitch build output\n**/*.HTMLClient/GeneratedArtifacts\n**/*.DesktopClient/GeneratedArtifacts\n**/*.DesktopClient/ModelManifest.xml\n**/*.Server/GeneratedArtifacts\n**/*.Server/ModelManifest.xml\n_Pvt_Extensions\n\n# Paket dependency manager\n.paket/paket.exe\npaket-files/\n\n# FAKE - F# Make\n.fake/\n\n# JetBrains Rider\n.idea/\n*.sln.iml\n\n# CodeRush personal settings\n.cr/personal\n\n# Python Tools for Visual Studio (PTVS)\n__pycache__/\n*.pyc\n\n# Cake - Uncomment if you are using it\n# tools/**\n# !tools/packages.config\n\n# Tabs Studio\n*.tss\n\n# Telerik's JustMock configuration file\n*.jmconfig\n\n# BizTalk build output\n*.btp.cs\n*.btm.cs\n*.odx.cs\n*.xsd.cs\n\n# OpenCover UI analysis results\nOpenCover/\n\n# Azure Stream Analytics local run output\nASALocalRun/\n\n# MSBuild Binary and Structured Log\n*.binlog\n\n# NVidia Nsight GPU debugger configuration file\n*.nvuser\n\n# MFractors (Xamarin productivity tool) working folder\n.mfractor/\n\n# Local History for Visual Studio\n.localhistory/\n\n# BeatPulse healthcheck temp database\nhealthchecksdb\n\n# Mac Files\n.DS_Store"
  },
  {
    "path": "App.config",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<configuration>\n  <startup>\n    <supportedRuntime version=\"v4.0\" sku=\".NETFramework,Version=v4.6\"/>\n  </startup>\n  <appSettings>\n    <add key=\"AutoCheckUpdate\" value=\"true\"/>\n    <add key=\"EnableWindowsFormsHighDpiAutoResizing\" value=\"true\"/>\n  </appSettings>\n</configuration>\n"
  },
  {
    "path": "AppConfig.cs",
    "content": "﻿using System.IO;\nusing System.Text;\nusing System.Configuration;\n\nnamespace AppConfig_cs\n{\n    public class AppConfig\n    {\n        /// <summary>\n        /// 读取程序自身配置文件\n        /// </summary>\n        /// <param name=\"Key\">项</param>\n        /// <param name=\"Default\">默认值，为空是返回</param>\n        /// <param name=\"ConfigPath\">配置文件路径</param>\n        /// <returns>成功返回项的值，值为空返回 Default 参数</returns>\n        public static string GetValue(string Key, string Default, string ConfigPath)\n        {\n            if (!File.Exists(ConfigPath))\n            {\n                File.WriteAllText(ConfigPath, 磁贴美化小工具.Properties.Resources.AppConfig, Encoding.UTF8);\n            }\n            Configuration App_Config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);\n            if (App_Config.AppSettings.Settings[Key] == null || App_Config.AppSettings.Settings[Key].Value == null)\n            {\n                return Default;\n            }\n            return App_Config.AppSettings.Settings[Key].Value;\n        }\n\n        /// <summary>\n        /// 写出程序自身配置文件\n        /// </summary>\n        /// <param name=\"Key\">项</param>\n        /// <param name=\"Value\">值</param>\n        /// <param name=\"ConfigPath\">配置文件路径</param>\n        public static void SetValue(string Key, string Value, string ConfigPath)\n        {\n            if (!File.Exists(ConfigPath))\n            {\n                File.WriteAllText(ConfigPath, 磁贴美化小工具.Properties.Resources.AppConfig, Encoding.UTF8);\n            }\n            Configuration App_Config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);\n            if(App_Config.AppSettings.Settings[Key] == null)\n            {\n                App_Config.AppSettings.Settings.Add(Key, Value);\n            }\n            else\n            {\n                App_Config.AppSettings.Settings[Key].Value = Value;\n            }\n            App_Config.Save(ConfigurationSaveMode.Modified);\n            ConfigurationManager.RefreshSection(\"appSettings\");\n        }\n    }\n}\n"
  },
  {
    "path": "File.cs",
    "content": "﻿using IWshRuntimeLibrary;\nusing System.Diagnostics;\n\nnamespace File_cs\n{\n    public class Shortcut\n    {\n        /// <summary>\n        /// 获取快捷方式目标路径\n        /// </summary>\n        /// <param name=\"Shortcut_Path\">快捷方式路径</param>\n        /// <returns>成功返回 快捷方式目标路径，失败返回 null</returns>\n        public static string Get_Shortcut_TargetPath(string Shortcut_Path)\n        {\n            if (System.IO.File.Exists(Shortcut_Path))\n            {\n                WshShell Shell = new WshShell();\n                IWshShortcut Shortcut = (IWshShortcut)Shell.CreateShortcut(Shortcut_Path);\n                return Shortcut.TargetPath;\n            }\n            return null;\n        }\n\n        /// <summary>\n        /// 从快捷方式数组中匹配目标路径\n        /// </summary>\n        /// <param name=\"Shortcut_Path\">快捷方式路径，字符串数组</param>\n        /// <param name=\"Path\">目标路径</param>\n        /// <returns>成功返回 匹配目标路径的快捷方式路径，失败返回 null</returns>\n        public static string Get_Shortcut_TargetPath_Array(string[] Shortcut_Path, string Path)\n        {\n            if (Shortcut_Path.Length > 0)\n            {\n                foreach (string Temp_Shortcut_Path in Shortcut_Path)\n                {\n                    //Debug.Print(Temp_Shortcut_Path);\n                    if (Get_Shortcut_TargetPath(Temp_Shortcut_Path) == Path)\n                    {\n                        return Temp_Shortcut_Path;\n                    }\n                }\n            }\n            return null;\n        }\n        \n        /// <summary>\n        /// 创建快捷方式\n        /// </summary>\n        /// <param name=\"LinkPath\">快捷方式路径</param>\n        /// <param name=\"TargetPath\">目标路径</param>\n        /// <param name=\"IconPath\">图标路径，为空时使用目标程序的图标</param>\n        public static void Create_Shortcut(string LinkPath, string TargetPath, string IconPath = \"\")\n        {\n            WshShell shell = new WshShell();\n            IWshShortcut Shortcut = (IWshShortcut)shell.CreateShortcut(LinkPath);\n            Shortcut.TargetPath = TargetPath;\n            if (IconPath != \"\")\n            {\n                Shortcut.IconLocation = IconPath;\n            }\n            Shortcut.Save();\n        }\n    }\n    public class File\n    {\n        /// <summary>\n        /// 枚举文件\n        /// </summary>\n        /// <param name=\"Path\">欲寻找的路径</param>\n        /// <param name=\"FileName\">欲寻找的文件名，支持通配符，例：*.lnk</param>\n        /// <param name=\"Traversal\">是否遍历子目录</param>\n        /// <returns>返回 找到的文件数组（完整路径）</returns>\n        public static string[] File_Enumeration(string Path, string FileName, bool Traversal)\n        {\n            if (Traversal == true)\n            {\n                return System.IO.Directory.GetFiles(Path, FileName, System.IO.SearchOption.AllDirectories);\n            }\n            else\n            {\n                return System.IO.Directory.GetFiles(Path, FileName, System.IO.SearchOption.TopDirectoryOnly);\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "FileDropAdmin.cs",
    "content": "﻿using System;\nusing System.ComponentModel;\nusing System.Runtime.InteropServices;\nusing System.Text;\nusing System.Windows.Forms;\n\nnamespace FileDropAdmin_cs\n{\n    // 解决管理员权限下无法拖放文件的问题\n    public sealed class FileDropAdmin : IMessageFilter, IDisposable\n    {\n\n        #region native members\n\n        [DllImport(\"user32.dll\", SetLastError = true, CallingConvention = CallingConvention.Winapi)]\n        [return: MarshalAs(UnmanagedType.Bool)]\n        private static extern bool ChangeWindowMessageFilterEx(IntPtr hWnd, uint message, ChangeFilterAction action, in ChangeFilterStruct pChangeFilterStruct);\n\n        [DllImport(\"shell32.dll\", SetLastError = false, CallingConvention = CallingConvention.Winapi)]\n        private static extern void DragAcceptFiles(IntPtr hWnd, bool fAccept);\n\n        [DllImport(\"shell32.dll\", SetLastError = false, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Winapi)]\n        private static extern uint DragQueryFile(IntPtr hWnd, uint iFile, StringBuilder lpszFile, int cch);\n\n        [DllImport(\"shell32.dll\", SetLastError = false, CallingConvention = CallingConvention.Winapi)]\n        private static extern void DragFinish(IntPtr hDrop);\n\n        [StructLayout(LayoutKind.Sequential)]\n        private struct ChangeFilterStruct\n        {\n            public uint CbSize;\n            public ChangeFilterStatu ExtStatus;\n        }\n\n        private enum ChangeFilterAction : uint\n        {\n            MSGFLT_RESET,\n            MSGFLT_ALLOW,\n            MSGFLT_DISALLOW\n        }\n\n        private enum ChangeFilterStatu : uint\n        {\n            MSGFLTINFO_NONE,\n            MSGFLTINFO_ALREADYALLOWED_FORWND,\n            MSGFLTINFO_ALREADYDISALLOWED_FORWND,\n            MSGFLTINFO_ALLOWED_HIGHER\n        }\n\n        private const uint WM_COPYGLOBALDATA = 0x0049;\n        private const uint WM_COPYDATA = 0x004A;\n        private const uint WM_DROPFILES = 0x0233;\n\n        #endregion\n\n\n        private const uint GetIndexCount = 0xFFFFFFFFU;\n\n        private Control _ContainerControl;\n\n        private readonly bool _DisposeControl;\n\n        public Control ContainerControl { get; }\n\n        public FileDropAdmin(Control containerControl) : this(containerControl, false) { }\n\n        public FileDropAdmin(Control containerControl, bool releaseControl)\n        {\n            _ContainerControl = containerControl ?? throw new ArgumentNullException(\"control\", \"control is null.\");\n\n            if (containerControl.IsDisposed) throw new ObjectDisposedException(\"control\");\n\n            _DisposeControl = releaseControl;\n\n            var status = new ChangeFilterStruct() { CbSize = 8 };\n\n            if (!ChangeWindowMessageFilterEx(containerControl.Handle, WM_DROPFILES, ChangeFilterAction.MSGFLT_ALLOW, in status)) throw new Win32Exception(Marshal.GetLastWin32Error());\n            if (!ChangeWindowMessageFilterEx(containerControl.Handle, WM_COPYGLOBALDATA, ChangeFilterAction.MSGFLT_ALLOW, in status)) throw new Win32Exception(Marshal.GetLastWin32Error());\n            if (!ChangeWindowMessageFilterEx(containerControl.Handle, WM_COPYDATA, ChangeFilterAction.MSGFLT_ALLOW, in status)) throw new Win32Exception(Marshal.GetLastWin32Error());\n            DragAcceptFiles(containerControl.Handle, true); // 允许控件接收拖放消息\n\n            Application.AddMessageFilter(this);\n        }\n\n        public bool PreFilterMessage(ref Message m)\n        {\n            if (_ContainerControl == null || _ContainerControl.IsDisposed) return false;\n            if (_ContainerControl.AllowDrop) return _ContainerControl.AllowDrop = false;\n            if (m.Msg == WM_DROPFILES)\n            {\n                var handle = m.WParam;\n\n                var fileCount = DragQueryFile(handle, GetIndexCount, null, 0); // 获取拖放进来的文件数量\n                //Debug.Print(fileCount.ToString());\n                var fileNames = new string[fileCount]; // 创建数组\n                var sb = new StringBuilder(262); // 创建缓冲区\n                var charLength = sb.Capacity;\n                for (uint i = 0; i < fileCount; i++) // 循环添加到数组中\n                {\n                    if (DragQueryFile(handle, i, sb, charLength) > 0) // 判断是否为空\n                    {\n                        fileNames[i] = sb.ToString(); // 获取拖放进来的文件名\n                        //Debug.Print(fileNames[i]);\n                    }\n                }\n                DragFinish(handle); // 拖放结束，释放缓冲区\n                _ContainerControl.AllowDrop = true; // 开启控件的允许拖放选项\n                _ContainerControl.DoDragDrop(fileNames, DragDropEffects.All); // 执行拖放操作\n                _ContainerControl.AllowDrop = false; // 关闭控件的允许拖放选项\n                return true;\n            }\n            return false;\n        }\n\n        public void Dispose() // 释放\n        {\n            if (_ContainerControl == null)\n            {\n                if (_DisposeControl && !_ContainerControl.IsDisposed) _ContainerControl.Dispose();\n                Application.RemoveMessageFilter(this);\n                _ContainerControl = null;\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "Form.Designer.cs",
    "content": "﻿namespace 磁贴美化小工具\n{\n    partial class Form\n    {\n        /// <summary>\n        /// 必需的设计器变量。\n        /// </summary>\n        private System.ComponentModel.IContainer components = null;\n\n        /// <summary>\n        /// 清理所有正在使用的资源。\n        /// </summary>\n        /// <param name=\"disposing\">如果应释放托管资源，为 true；否则为 false。</param>\n        protected override void Dispose(bool disposing)\n        {\n            if (disposing && (components != null))\n            {\n                components.Dispose();\n            }\n            base.Dispose(disposing);\n        }\n\n        #region Windows 窗体设计器生成的代码\n\n        /// <summary>\n        /// 设计器支持所需的方法 - 不要修改\n        /// 使用代码编辑器修改此方法的内容。\n        /// </summary>\n        private void InitializeComponent()\n        {\n            this.components = new System.ComponentModel.Container();\n            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form));\n            this.TextBox_程序路径 = new System.Windows.Forms.TextBox();\n            this.Label_程序路径 = new System.Windows.Forms.Label();\n            this.PictureBox_磁贴图片预览 = new System.Windows.Forms.PictureBox();\n            this.TextBox_磁贴名称 = new System.Windows.Forms.TextBox();\n            this.Label_磁贴名称 = new System.Windows.Forms.Label();\n            this.TextBox_磁贴图片 = new System.Windows.Forms.TextBox();\n            this.Label_磁贴图片 = new System.Windows.Forms.Label();\n            this.TextBox_磁贴图标 = new System.Windows.Forms.TextBox();\n            this.Label_磁贴图标 = new System.Windows.Forms.Label();\n            this.Button_添加磁贴 = new System.Windows.Forms.Button();\n            this.Button_查看 = new System.Windows.Forms.Button();\n            this.Button_初始化 = new System.Windows.Forms.Button();\n            this.Button_显示文字 = new System.Windows.Forms.Button();\n            this.Button_添加右键菜单 = new System.Windows.Forms.Button();\n            this.Button_查看磁贴目录 = new System.Windows.Forms.Button();\n            this.Button_自动检查更新 = new System.Windows.Forms.Button();\n            this.Button_检查更新 = new System.Windows.Forms.Button();\n            this.PictureBox_磁贴图标预览 = new System.Windows.Forms.PictureBox();\n            this.Label_磁贴名称预览 = new System.Windows.Forms.Label();\n            this.toolTip = new System.Windows.Forms.ToolTip(this.components);\n            this.Button_旧版磁贴模式 = new System.Windows.Forms.Button();\n            ((System.ComponentModel.ISupportInitialize)(this.PictureBox_磁贴图片预览)).BeginInit();\n            ((System.ComponentModel.ISupportInitialize)(this.PictureBox_磁贴图标预览)).BeginInit();\n            this.SuspendLayout();\n            // \n            // TextBox_程序路径\n            // \n            this.TextBox_程序路径.BackColor = System.Drawing.Color.WhiteSmoke;\n            this.TextBox_程序路径.BorderStyle = System.Windows.Forms.BorderStyle.None;\n            this.TextBox_程序路径.Font = new System.Drawing.Font(\"微软雅黑\", 10F);\n            this.TextBox_程序路径.ForeColor = System.Drawing.SystemColors.WindowFrame;\n            this.TextBox_程序路径.Location = new System.Drawing.Point(16, 11);\n            this.TextBox_程序路径.Name = \"TextBox_程序路径\";\n            this.TextBox_程序路径.ReadOnly = true;\n            this.TextBox_程序路径.Size = new System.Drawing.Size(390, 18);\n            this.TextBox_程序路径.TabIndex = 0;\n            this.TextBox_程序路径.TabStop = false;\n            this.toolTip.SetToolTip(this.TextBox_程序路径, \"拖入 [应用程序、快捷方式、开始菜单磁贴(非UWP)]\\r\\n按下 [退格键(Backspace)] 可清空。\");\n            this.TextBox_程序路径.TextChanged += new System.EventHandler(this.TextBox_程序路径_TextChanged);\n            this.TextBox_程序路径.Enter += new System.EventHandler(this.TextBox_程序路径_Enter);\n            this.TextBox_程序路径.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TextBox_程序路径_KeyPress);\n            this.TextBox_程序路径.Leave += new System.EventHandler(this.TextBox_程序路径_Leave);\n            // \n            // Label_程序路径\n            // \n            this.Label_程序路径.BackColor = System.Drawing.Color.WhiteSmoke;\n            this.Label_程序路径.Cursor = System.Windows.Forms.Cursors.IBeam;\n            this.Label_程序路径.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\n            this.Label_程序路径.Font = new System.Drawing.Font(\"微软雅黑\", 10F);\n            this.Label_程序路径.ForeColor = System.Drawing.SystemColors.ControlDark;\n            this.Label_程序路径.Location = new System.Drawing.Point(-8, 0);\n            this.Label_程序路径.Name = \"Label_程序路径\";\n            this.Label_程序路径.Size = new System.Drawing.Size(430, 40);\n            this.Label_程序路径.TabIndex = 1;\n            this.Label_程序路径.Text = \"     程序路径\";\n            this.Label_程序路径.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;\n            this.toolTip.SetToolTip(this.Label_程序路径, \"拖入 [应用程序、快捷方式、开始菜单磁贴(非UWP)]\\r\\n按下 [退格键(Backspace)] 可清空。\");\n            this.Label_程序路径.MouseClick += new System.Windows.Forms.MouseEventHandler(this.Label_程序路径_MouseClick);\n            // \n            // PictureBox_磁贴图片预览\n            // \n            this.PictureBox_磁贴图片预览.BackColor = System.Drawing.Color.WhiteSmoke;\n            this.PictureBox_磁贴图片预览.Location = new System.Drawing.Point(423, 41);\n            this.PictureBox_磁贴图片预览.Name = \"PictureBox_磁贴图片预览\";\n            this.PictureBox_磁贴图片预览.Size = new System.Drawing.Size(100, 100);\n            this.PictureBox_磁贴图片预览.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;\n            this.PictureBox_磁贴图片预览.TabIndex = 2;\n            this.PictureBox_磁贴图片预览.TabStop = false;\n            this.toolTip.SetToolTip(this.PictureBox_磁贴图片预览, \"磁贴预览框：\\r\\n按下 [鼠标左键] 开始屏幕取色，松开 [鼠标左键] 停止取色。\\r\\n单击 [鼠标右键] 重置为系统主题色。\\r\\n\\r\\n注意：系统 2004 版本及以上\" +\n        \"/开启新版磁贴样式后，请开启下方的 [旧版磁贴模式] 才能使用 [屏幕取色] 功能。\\r\\n注意：图标预览时可能会出现锯齿等显示问题，但实际磁贴显示正常！\");\n            this.PictureBox_磁贴图片预览.BackColorChanged += new System.EventHandler(this.PictureBox_磁贴图片预览_BackColorChanged);\n            this.PictureBox_磁贴图片预览.MouseClick += new System.Windows.Forms.MouseEventHandler(this.PictureBox_磁贴图片预览_MouseClick);\n            this.PictureBox_磁贴图片预览.MouseDown += new System.Windows.Forms.MouseEventHandler(this.PictureBox_磁贴图片预览_MouseDown);\n            this.PictureBox_磁贴图片预览.MouseMove += new System.Windows.Forms.MouseEventHandler(this.PictureBox_磁贴图片预览_MouseMove);\n            this.PictureBox_磁贴图片预览.MouseUp += new System.Windows.Forms.MouseEventHandler(this.PictureBox_磁贴图片预览_MouseUp);\n            // \n            // TextBox_磁贴名称\n            // \n            this.TextBox_磁贴名称.BackColor = System.Drawing.Color.WhiteSmoke;\n            this.TextBox_磁贴名称.BorderStyle = System.Windows.Forms.BorderStyle.None;\n            this.TextBox_磁贴名称.Font = new System.Drawing.Font(\"微软雅黑\", 10F);\n            this.TextBox_磁贴名称.ForeColor = System.Drawing.SystemColors.WindowFrame;\n            this.TextBox_磁贴名称.Location = new System.Drawing.Point(16, 52);\n            this.TextBox_磁贴名称.Name = \"TextBox_磁贴名称\";\n            this.TextBox_磁贴名称.Size = new System.Drawing.Size(390, 18);\n            this.TextBox_磁贴名称.TabIndex = 1;\n            this.TextBox_磁贴名称.TabStop = false;\n            this.toolTip.SetToolTip(this.TextBox_磁贴名称, \"磁贴显示的文字\");\n            this.TextBox_磁贴名称.TextChanged += new System.EventHandler(this.TextBox_磁贴名称_TextChanged);\n            this.TextBox_磁贴名称.Enter += new System.EventHandler(this.TextBox_磁贴名称_Enter);\n            this.TextBox_磁贴名称.Leave += new System.EventHandler(this.TextBox_磁贴名称_Leave);\n            // \n            // Label_磁贴名称\n            // \n            this.Label_磁贴名称.BackColor = System.Drawing.Color.WhiteSmoke;\n            this.Label_磁贴名称.Cursor = System.Windows.Forms.Cursors.IBeam;\n            this.Label_磁贴名称.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\n            this.Label_磁贴名称.Font = new System.Drawing.Font(\"微软雅黑\", 10F);\n            this.Label_磁贴名称.ForeColor = System.Drawing.SystemColors.ControlDark;\n            this.Label_磁贴名称.Location = new System.Drawing.Point(-8, 41);\n            this.Label_磁贴名称.Name = \"Label_磁贴名称\";\n            this.Label_磁贴名称.Size = new System.Drawing.Size(430, 40);\n            this.Label_磁贴名称.TabIndex = 4;\n            this.Label_磁贴名称.Text = \"     磁贴名称\";\n            this.Label_磁贴名称.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;\n            this.toolTip.SetToolTip(this.Label_磁贴名称, \"磁贴显示的文字\");\n            this.Label_磁贴名称.MouseClick += new System.Windows.Forms.MouseEventHandler(this.Label_磁贴名称_MouseClick);\n            // \n            // TextBox_磁贴图片\n            // \n            this.TextBox_磁贴图片.BackColor = System.Drawing.Color.WhiteSmoke;\n            this.TextBox_磁贴图片.BorderStyle = System.Windows.Forms.BorderStyle.None;\n            this.TextBox_磁贴图片.Font = new System.Drawing.Font(\"微软雅黑\", 10F);\n            this.TextBox_磁贴图片.ForeColor = System.Drawing.SystemColors.WindowFrame;\n            this.TextBox_磁贴图片.Location = new System.Drawing.Point(16, 93);\n            this.TextBox_磁贴图片.Name = \"TextBox_磁贴图片\";\n            this.TextBox_磁贴图片.ReadOnly = true;\n            this.TextBox_磁贴图片.Size = new System.Drawing.Size(390, 18);\n            this.TextBox_磁贴图片.TabIndex = 2;\n            this.TextBox_磁贴图片.TabStop = false;\n            this.toolTip.SetToolTip(this.TextBox_磁贴图片, \"拖入 [图片文件( .png .jpg .jpeg )]，与磁贴图标二选一\\r\\n按下 [退格键(Backspace)] 可清空。\\r\\n\");\n            this.TextBox_磁贴图片.TextChanged += new System.EventHandler(this.TextBox_磁贴图片_TextChanged);\n            this.TextBox_磁贴图片.Enter += new System.EventHandler(this.TextBox_磁贴图片_Enter);\n            this.TextBox_磁贴图片.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TextBox_磁贴图片_KeyPress);\n            this.TextBox_磁贴图片.Leave += new System.EventHandler(this.TextBox_磁贴图片_Leave);\n            // \n            // Label_磁贴图片\n            // \n            this.Label_磁贴图片.BackColor = System.Drawing.Color.WhiteSmoke;\n            this.Label_磁贴图片.Cursor = System.Windows.Forms.Cursors.IBeam;\n            this.Label_磁贴图片.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\n            this.Label_磁贴图片.Font = new System.Drawing.Font(\"微软雅黑\", 10F);\n            this.Label_磁贴图片.ForeColor = System.Drawing.SystemColors.ControlDark;\n            this.Label_磁贴图片.Location = new System.Drawing.Point(-8, 82);\n            this.Label_磁贴图片.Name = \"Label_磁贴图片\";\n            this.Label_磁贴图片.Size = new System.Drawing.Size(430, 40);\n            this.Label_磁贴图片.TabIndex = 6;\n            this.Label_磁贴图片.Text = \"     磁贴图片\";\n            this.Label_磁贴图片.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;\n            this.toolTip.SetToolTip(this.Label_磁贴图片, \"拖入 [图片文件( .png .jpg .jpeg )]，与磁贴图标二选一\\r\\n按下 [退格键(Backspace)] 可清空。\");\n            this.Label_磁贴图片.MouseClick += new System.Windows.Forms.MouseEventHandler(this.Label_磁贴图片_MouseClick);\n            // \n            // TextBox_磁贴图标\n            // \n            this.TextBox_磁贴图标.BackColor = System.Drawing.Color.WhiteSmoke;\n            this.TextBox_磁贴图标.BorderStyle = System.Windows.Forms.BorderStyle.None;\n            this.TextBox_磁贴图标.Font = new System.Drawing.Font(\"微软雅黑\", 10F);\n            this.TextBox_磁贴图标.ForeColor = System.Drawing.SystemColors.WindowFrame;\n            this.TextBox_磁贴图标.Location = new System.Drawing.Point(16, 134);\n            this.TextBox_磁贴图标.Name = \"TextBox_磁贴图标\";\n            this.TextBox_磁贴图标.ReadOnly = true;\n            this.TextBox_磁贴图标.Size = new System.Drawing.Size(390, 18);\n            this.TextBox_磁贴图标.TabIndex = 3;\n            this.TextBox_磁贴图标.TabStop = false;\n            this.toolTip.SetToolTip(this.TextBox_磁贴图标, \"拖入 [图标文件( .ico )]，与磁贴图片二选一\\r\\n按下 [退格键(Backspace)] 可清空。\\r\\n\");\n            this.TextBox_磁贴图标.TextChanged += new System.EventHandler(this.TextBox_磁贴图标_TextChanged);\n            this.TextBox_磁贴图标.Enter += new System.EventHandler(this.TextBox_磁贴图标_Enter);\n            this.TextBox_磁贴图标.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TextBox_磁贴图标_KeyPress);\n            this.TextBox_磁贴图标.Leave += new System.EventHandler(this.TextBox_磁贴图标_Leave);\n            // \n            // Label_磁贴图标\n            // \n            this.Label_磁贴图标.BackColor = System.Drawing.Color.WhiteSmoke;\n            this.Label_磁贴图标.Cursor = System.Windows.Forms.Cursors.IBeam;\n            this.Label_磁贴图标.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\n            this.Label_磁贴图标.Font = new System.Drawing.Font(\"微软雅黑\", 10F);\n            this.Label_磁贴图标.ForeColor = System.Drawing.SystemColors.ControlDark;\n            this.Label_磁贴图标.Location = new System.Drawing.Point(-8, 123);\n            this.Label_磁贴图标.Name = \"Label_磁贴图标\";\n            this.Label_磁贴图标.Size = new System.Drawing.Size(430, 40);\n            this.Label_磁贴图标.TabIndex = 8;\n            this.Label_磁贴图标.Text = \"     磁贴图标  与磁贴图片二选一\";\n            this.Label_磁贴图标.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;\n            this.toolTip.SetToolTip(this.Label_磁贴图标, \"拖入 [图标文件( .ico )]，与磁贴图片二选一\\r\\n按下 [退格键(Backspace)] 可清空。\");\n            this.Label_磁贴图标.MouseClick += new System.Windows.Forms.MouseEventHandler(this.Label_磁贴图标_MouseClick);\n            // \n            // Button_添加磁贴\n            // \n            this.Button_添加磁贴.BackColor = System.Drawing.Color.LightGray;\n            this.Button_添加磁贴.Cursor = System.Windows.Forms.Cursors.Hand;\n            this.Button_添加磁贴.Enabled = false;\n            this.Button_添加磁贴.FlatAppearance.BorderSize = 0;\n            this.Button_添加磁贴.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\n            this.Button_添加磁贴.Font = new System.Drawing.Font(\"微软雅黑\", 11F);\n            this.Button_添加磁贴.ForeColor = System.Drawing.SystemColors.WindowFrame;\n            this.Button_添加磁贴.Location = new System.Drawing.Point(-8, 164);\n            this.Button_添加磁贴.Name = \"Button_添加磁贴\";\n            this.Button_添加磁贴.Size = new System.Drawing.Size(536, 40);\n            this.Button_添加磁贴.TabIndex = 9;\n            this.Button_添加磁贴.TabStop = false;\n            this.Button_添加磁贴.Text = \"添加/更新磁贴\";\n            this.toolTip.SetToolTip(this.Button_添加磁贴, \"点击后添加或更新磁贴\\r\\n\\r\\n注意：C:\\\\Program Files 等权限敏感目录下的程序，需要 [以管理员身份运行] 本软件才能添加/更新磁贴！\");\n            this.Button_添加磁贴.UseVisualStyleBackColor = false;\n            this.Button_添加磁贴.Click += new System.EventHandler(this.Button_添加磁贴_Click);\n            // \n            // Button_查看\n            // \n            this.Button_查看.BackColor = System.Drawing.Color.WhiteSmoke;\n            this.Button_查看.Cursor = System.Windows.Forms.Cursors.Hand;\n            this.Button_查看.FlatAppearance.BorderSize = 0;\n            this.Button_查看.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\n            this.Button_查看.Font = new System.Drawing.Font(\"微软雅黑\", 9F);\n            this.Button_查看.ForeColor = System.Drawing.SystemColors.ControlDark;\n            this.Button_查看.Location = new System.Drawing.Point(423, 0);\n            this.Button_查看.Name = \"Button_查看\";\n            this.Button_查看.Size = new System.Drawing.Size(43, 40);\n            this.Button_查看.TabIndex = 17;\n            this.Button_查看.TabStop = false;\n            this.Button_查看.Text = \"查看\";\n            this.Button_查看.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n            this.toolTip.SetToolTip(this.Button_查看, \"打开程序所在文件夹\");\n            this.Button_查看.UseVisualStyleBackColor = false;\n            this.Button_查看.Click += new System.EventHandler(this.Button_查看_Click);\n            // \n            // Button_初始化\n            // \n            this.Button_初始化.BackColor = System.Drawing.Color.WhiteSmoke;\n            this.Button_初始化.Cursor = System.Windows.Forms.Cursors.Hand;\n            this.Button_初始化.FlatAppearance.BorderSize = 0;\n            this.Button_初始化.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\n            this.Button_初始化.Font = new System.Drawing.Font(\"微软雅黑\", 9F);\n            this.Button_初始化.ForeColor = System.Drawing.SystemColors.ControlDark;\n            this.Button_初始化.Location = new System.Drawing.Point(467, 0);\n            this.Button_初始化.Name = \"Button_初始化\";\n            this.Button_初始化.Size = new System.Drawing.Size(57, 40);\n            this.Button_初始化.TabIndex = 18;\n            this.Button_初始化.TabStop = false;\n            this.Button_初始化.Text = \"初始化\";\n            this.toolTip.SetToolTip(this.Button_初始化, \"初始化磁贴配置文件\");\n            this.Button_初始化.UseVisualStyleBackColor = false;\n            this.Button_初始化.Click += new System.EventHandler(this.Button_初始化_Click);\n            // \n            // Button_显示文字\n            // \n            this.Button_显示文字.BackColor = System.Drawing.Color.WhiteSmoke;\n            this.Button_显示文字.Cursor = System.Windows.Forms.Cursors.Hand;\n            this.Button_显示文字.FlatAppearance.BorderSize = 0;\n            this.Button_显示文字.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\n            this.Button_显示文字.Font = new System.Drawing.Font(\"微软雅黑\", 8F);\n            this.Button_显示文字.ForeColor = System.Drawing.SystemColors.ControlDark;\n            this.Button_显示文字.Location = new System.Drawing.Point(423, 142);\n            this.Button_显示文字.Name = \"Button_显示文字\";\n            this.Button_显示文字.Size = new System.Drawing.Size(101, 21);\n            this.Button_显示文字.TabIndex = 19;\n            this.Button_显示文字.TabStop = false;\n            this.Button_显示文字.Text = \"隐藏文字\";\n            this.toolTip.SetToolTip(this.Button_显示文字, \"显示或隐藏磁贴文字\");\n            this.Button_显示文字.UseVisualStyleBackColor = false;\n            this.Button_显示文字.TextChanged += new System.EventHandler(this.Button_显示文字_TextChanged);\n            this.Button_显示文字.Click += new System.EventHandler(this.Button_显示文字_Click);\n            this.Button_显示文字.MouseDown += new System.Windows.Forms.MouseEventHandler(this.PictureBox_磁贴图片预览_MouseDown);\n            // \n            // Button_添加右键菜单\n            // \n            this.Button_添加右键菜单.BackColor = System.Drawing.Color.Gainsboro;\n            this.Button_添加右键菜单.Cursor = System.Windows.Forms.Cursors.Hand;\n            this.Button_添加右键菜单.FlatAppearance.BorderSize = 0;\n            this.Button_添加右键菜单.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\n            this.Button_添加右键菜单.Font = new System.Drawing.Font(\"微软雅黑\", 8F);\n            this.Button_添加右键菜单.ForeColor = System.Drawing.SystemColors.WindowFrame;\n            this.Button_添加右键菜单.Location = new System.Drawing.Point(0, 205);\n            this.Button_添加右键菜单.Name = \"Button_添加右键菜单\";\n            this.Button_添加右键菜单.Size = new System.Drawing.Size(115, 22);\n            this.Button_添加右键菜单.TabIndex = 20;\n            this.Button_添加右键菜单.TabStop = false;\n            this.Button_添加右键菜单.Text = \"添加右键菜单 [√]\";\n            this.toolTip.SetToolTip(this.Button_添加右键菜单, \"开启后，右键任意 应用程序(.exe)、快捷方式(.lnk) 可看到 [自定义并固定到\\\"开始\\\"屏幕]\\r\\n[√]：添加右键菜单\\r\\n[×]：取消右键菜单（即未添加）\");\n            this.Button_添加右键菜单.UseVisualStyleBackColor = false;\n            this.Button_添加右键菜单.Click += new System.EventHandler(this.Button_添加右键菜单_Click);\n            // \n            // Button_查看磁贴目录\n            // \n            this.Button_查看磁贴目录.BackColor = System.Drawing.Color.Gainsboro;\n            this.Button_查看磁贴目录.Cursor = System.Windows.Forms.Cursors.Hand;\n            this.Button_查看磁贴目录.FlatAppearance.BorderSize = 0;\n            this.Button_查看磁贴目录.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\n            this.Button_查看磁贴目录.Font = new System.Drawing.Font(\"微软雅黑\", 8F);\n            this.Button_查看磁贴目录.ForeColor = System.Drawing.SystemColors.WindowFrame;\n            this.Button_查看磁贴目录.Location = new System.Drawing.Point(348, 205);\n            this.Button_查看磁贴目录.Name = \"Button_查看磁贴目录\";\n            this.Button_查看磁贴目录.Size = new System.Drawing.Size(95, 22);\n            this.Button_查看磁贴目录.TabIndex = 21;\n            this.Button_查看磁贴目录.TabStop = false;\n            this.Button_查看磁贴目录.Text = \"查看磁贴目录\";\n            this.toolTip.SetToolTip(this.Button_查看磁贴目录, \"打开磁贴对应的快捷方式所在文件夹\");\n            this.Button_查看磁贴目录.UseVisualStyleBackColor = false;\n            this.Button_查看磁贴目录.Click += new System.EventHandler(this.Button_查看磁贴目录_Click);\n            // \n            // Button_自动检查更新\n            // \n            this.Button_自动检查更新.BackColor = System.Drawing.Color.Gainsboro;\n            this.Button_自动检查更新.Cursor = System.Windows.Forms.Cursors.Hand;\n            this.Button_自动检查更新.FlatAppearance.BorderSize = 0;\n            this.Button_自动检查更新.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\n            this.Button_自动检查更新.Font = new System.Drawing.Font(\"微软雅黑\", 8F);\n            this.Button_自动检查更新.ForeColor = System.Drawing.SystemColors.WindowFrame;\n            this.Button_自动检查更新.Location = new System.Drawing.Point(116, 205);\n            this.Button_自动检查更新.Name = \"Button_自动检查更新\";\n            this.Button_自动检查更新.Size = new System.Drawing.Size(115, 22);\n            this.Button_自动检查更新.TabIndex = 22;\n            this.Button_自动检查更新.TabStop = false;\n            this.Button_自动检查更新.Text = \"自动检查更新 [×]\";\n            this.toolTip.SetToolTip(this.Button_自动检查更新, \"[√]：启动软件后检查更新\\r\\n[×]：启动软件后不检查更新\");\n            this.Button_自动检查更新.UseVisualStyleBackColor = false;\n            this.Button_自动检查更新.Click += new System.EventHandler(this.Button_自动检查更新_Click);\n            // \n            // Button_检查更新\n            // \n            this.Button_检查更新.BackColor = System.Drawing.Color.Gainsboro;\n            this.Button_检查更新.Cursor = System.Windows.Forms.Cursors.Hand;\n            this.Button_检查更新.FlatAppearance.BorderSize = 0;\n            this.Button_检查更新.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\n            this.Button_检查更新.Font = new System.Drawing.Font(\"微软雅黑\", 8F);\n            this.Button_检查更新.ForeColor = System.Drawing.SystemColors.WindowFrame;\n            this.Button_检查更新.Location = new System.Drawing.Point(444, 205);\n            this.Button_检查更新.Name = \"Button_检查更新\";\n            this.Button_检查更新.Size = new System.Drawing.Size(80, 22);\n            this.Button_检查更新.TabIndex = 23;\n            this.Button_检查更新.TabStop = false;\n            this.Button_检查更新.Text = \"检查更新\";\n            this.toolTip.SetToolTip(this.Button_检查更新, \"立即检查更新\");\n            this.Button_检查更新.UseVisualStyleBackColor = false;\n            this.Button_检查更新.Click += new System.EventHandler(this.Button_检查更新_Click);\n            // \n            // PictureBox_磁贴图标预览\n            // \n            this.PictureBox_磁贴图标预览.BackColor = System.Drawing.Color.WhiteSmoke;\n            this.PictureBox_磁贴图标预览.Location = new System.Drawing.Point(457, 75);\n            this.PictureBox_磁贴图标预览.Name = \"PictureBox_磁贴图标预览\";\n            this.PictureBox_磁贴图标预览.Size = new System.Drawing.Size(32, 32);\n            this.PictureBox_磁贴图标预览.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;\n            this.PictureBox_磁贴图标预览.TabIndex = 24;\n            this.PictureBox_磁贴图标预览.TabStop = false;\n            this.toolTip.SetToolTip(this.PictureBox_磁贴图标预览, \"磁贴预览框：\\r\\n按下 [鼠标左键] 开始屏幕取色，松开 [鼠标左键] 停止取色。\\r\\n单击 [鼠标右键] 重置为系统主题色。\\r\\n\\r\\n注意：系统 2004 版本及以上\" +\n        \"/开启新版磁贴样式后，请开启下方的 [旧版磁贴模式] 才能使用 [屏幕取色] 功能。\\r\\n注意：图标预览时可能会出现锯齿等显示问题，但实际磁贴显示正常！\");\n            this.PictureBox_磁贴图标预览.Visible = false;\n            this.PictureBox_磁贴图标预览.MouseClick += new System.Windows.Forms.MouseEventHandler(this.PictureBox_磁贴图片预览_MouseClick);\n            this.PictureBox_磁贴图标预览.MouseDown += new System.Windows.Forms.MouseEventHandler(this.PictureBox_磁贴图片预览_MouseDown);\n            this.PictureBox_磁贴图标预览.MouseMove += new System.Windows.Forms.MouseEventHandler(this.PictureBox_磁贴图片预览_MouseMove);\n            this.PictureBox_磁贴图标预览.MouseUp += new System.Windows.Forms.MouseEventHandler(this.PictureBox_磁贴图片预览_MouseUp);\n            // \n            // Label_磁贴名称预览\n            // \n            this.Label_磁贴名称预览.AutoEllipsis = true;\n            this.Label_磁贴名称预览.BackColor = System.Drawing.Color.Transparent;\n            this.Label_磁贴名称预览.Cursor = System.Windows.Forms.Cursors.Arrow;\n            this.Label_磁贴名称预览.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\n            this.Label_磁贴名称预览.Font = new System.Drawing.Font(\"微软雅黑\", 9F);\n            this.Label_磁贴名称预览.ForeColor = System.Drawing.SystemColors.Window;\n            this.Label_磁贴名称预览.Location = new System.Drawing.Point(428, 120);\n            this.Label_磁贴名称预览.Margin = new System.Windows.Forms.Padding(0);\n            this.Label_磁贴名称预览.Name = \"Label_磁贴名称预览\";\n            this.Label_磁贴名称预览.Size = new System.Drawing.Size(92, 16);\n            this.Label_磁贴名称预览.TabIndex = 25;\n            this.Label_磁贴名称预览.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;\n            this.toolTip.SetToolTip(this.Label_磁贴名称预览, \"磁贴文字预览：\\r\\n点击下面的 [显示文字/隐藏文字] 按钮即可切换。\\r\\n文字颜色会智能识别磁贴图片/背景颜色。\");\n            this.Label_磁贴名称预览.MouseClick += new System.Windows.Forms.MouseEventHandler(this.PictureBox_磁贴图片预览_MouseClick);\n            this.Label_磁贴名称预览.MouseDown += new System.Windows.Forms.MouseEventHandler(this.PictureBox_磁贴图片预览_MouseDown);\n            this.Label_磁贴名称预览.MouseMove += new System.Windows.Forms.MouseEventHandler(this.PictureBox_磁贴图片预览_MouseMove);\n            this.Label_磁贴名称预览.MouseUp += new System.Windows.Forms.MouseEventHandler(this.PictureBox_磁贴图片预览_MouseUp);\n            // \n            // toolTip\n            // \n            this.toolTip.AutoPopDelay = 10000;\n            this.toolTip.BackColor = System.Drawing.SystemColors.HighlightText;\n            this.toolTip.ForeColor = System.Drawing.SystemColors.WindowFrame;\n            this.toolTip.InitialDelay = 500;\n            this.toolTip.ReshowDelay = 100;\n            this.toolTip.ShowAlways = true;\n            // \n            // Button_旧版磁贴模式\n            // \n            this.Button_旧版磁贴模式.BackColor = System.Drawing.Color.Gainsboro;\n            this.Button_旧版磁贴模式.Cursor = System.Windows.Forms.Cursors.Hand;\n            this.Button_旧版磁贴模式.FlatAppearance.BorderSize = 0;\n            this.Button_旧版磁贴模式.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\n            this.Button_旧版磁贴模式.Font = new System.Drawing.Font(\"微软雅黑\", 8F);\n            this.Button_旧版磁贴模式.ForeColor = System.Drawing.SystemColors.WindowFrame;\n            this.Button_旧版磁贴模式.Location = new System.Drawing.Point(232, 205);\n            this.Button_旧版磁贴模式.Name = \"Button_旧版磁贴模式\";\n            this.Button_旧版磁贴模式.Size = new System.Drawing.Size(115, 22);\n            this.Button_旧版磁贴模式.TabIndex = 26;\n            this.Button_旧版磁贴模式.TabStop = false;\n            this.Button_旧版磁贴模式.Text = \"旧版磁贴模式 [×]\";\n            this.toolTip.SetToolTip(this.Button_旧版磁贴模式, \"[√]：适合正在使用旧版磁贴的电脑 (支持自定义磁贴背景颜色、屏幕取色等)\\r\\n[×]：适合正在使用新版磁贴/系统 2004 版本以上的电脑\");\n            this.Button_旧版磁贴模式.UseVisualStyleBackColor = false;\n            this.Button_旧版磁贴模式.Click += new System.EventHandler(this.Button_旧版磁贴模式_Click);\n            // \n            // Form\n            // \n            this.AllowDrop = true;\n            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);\n            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;\n            this.BackColor = System.Drawing.SystemColors.Window;\n            this.ClientSize = new System.Drawing.Size(523, 227);\n            this.Controls.Add(this.Button_旧版磁贴模式);\n            this.Controls.Add(this.Label_磁贴名称预览);\n            this.Controls.Add(this.PictureBox_磁贴图标预览);\n            this.Controls.Add(this.Button_初始化);\n            this.Controls.Add(this.Button_查看);\n            this.Controls.Add(this.Button_添加磁贴);\n            this.Controls.Add(this.Label_磁贴图标);\n            this.Controls.Add(this.Label_磁贴图片);\n            this.Controls.Add(this.Label_磁贴名称);\n            this.Controls.Add(this.PictureBox_磁贴图片预览);\n            this.Controls.Add(this.Label_程序路径);\n            this.Controls.Add(this.TextBox_磁贴图标);\n            this.Controls.Add(this.TextBox_磁贴图片);\n            this.Controls.Add(this.TextBox_磁贴名称);\n            this.Controls.Add(this.TextBox_程序路径);\n            this.Controls.Add(this.Button_显示文字);\n            this.Controls.Add(this.Button_检查更新);\n            this.Controls.Add(this.Button_自动检查更新);\n            this.Controls.Add(this.Button_查看磁贴目录);\n            this.Controls.Add(this.Button_添加右键菜单);\n            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;\n            this.Icon = ((System.Drawing.Icon)(resources.GetObject(\"$this.Icon\")));\n            this.MaximizeBox = false;\n            this.MinimizeBox = false;\n            this.Name = \"Form\";\n            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\n            this.Text = \"磁贴美化小工具\";\n            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form_FormClosing);\n            this.Load += new System.EventHandler(this.Form_Load);\n            this.DragDrop += new System.Windows.Forms.DragEventHandler(this.Form_DragDrop);\n            this.DragEnter += new System.Windows.Forms.DragEventHandler(this.Form_DragEnter);\n            ((System.ComponentModel.ISupportInitialize)(this.PictureBox_磁贴图片预览)).EndInit();\n            ((System.ComponentModel.ISupportInitialize)(this.PictureBox_磁贴图标预览)).EndInit();\n            this.ResumeLayout(false);\n            this.PerformLayout();\n\n        }\n\n        #endregion\n\n        private System.Windows.Forms.TextBox TextBox_程序路径;\n        private System.Windows.Forms.Label Label_程序路径;\n        private System.Windows.Forms.PictureBox PictureBox_磁贴图片预览;\n        private System.Windows.Forms.TextBox TextBox_磁贴名称;\n        private System.Windows.Forms.Label Label_磁贴名称;\n        private System.Windows.Forms.TextBox TextBox_磁贴图片;\n        private System.Windows.Forms.Label Label_磁贴图片;\n        private System.Windows.Forms.TextBox TextBox_磁贴图标;\n        private System.Windows.Forms.Label Label_磁贴图标;\n        private System.Windows.Forms.Button Button_添加磁贴;\n        private System.Windows.Forms.Button Button_查看;\n        private System.Windows.Forms.Button Button_初始化;\n        private System.Windows.Forms.Button Button_显示文字;\n        private System.Windows.Forms.Button Button_添加右键菜单;\n        private System.Windows.Forms.Button Button_查看磁贴目录;\n        private System.Windows.Forms.Button Button_自动检查更新;\n        private System.Windows.Forms.Button Button_检查更新;\n        private System.Windows.Forms.PictureBox PictureBox_磁贴图标预览;\n        private System.Windows.Forms.Label Label_磁贴名称预览;\n        private System.Windows.Forms.ToolTip toolTip;\n        private System.Windows.Forms.Button Button_旧版磁贴模式;\n    }\n}\n\n"
  },
  {
    "path": "Form.cs",
    "content": "﻿using System;\nusing System.IO;\nusing System.Drawing;\nusing System.Threading.Tasks;\nusing System.Windows.Forms;\nusing System.Diagnostics;\nusing System.Xml.Linq;\nusing WebClient_cs;\nusing FileDropAdmin_cs;\nusing AppConfig_cs;\nusing Registry_cs;\n\nnamespace 磁贴美化小工具\n{\n    public partial class Form : System.Windows.Forms.Form\n    {\n        private readonly string AppConfig_Path = Application.ExecutablePath + \".config\"; // 本程序配置文件路径\n        readonly string Line = Environment.NewLine; // 换行符\n        readonly string[] args; // 启动参数（右键菜单启动）\n        private System.Threading.Mutex newMutex; // 互斥体\n        public FileDropAdmin FileDroper; // 管理员权限下拖放文件\n        private bool IsRunAsAdmin; // 是否为管理员权限\n        private bool ScreenColorFlag; // 取色\n        private bool NewTileState;\n        private string Now_VerInfo; // 软件版本号\n        private string SystemColor; // 系统主题色\n        private string UserColor; // 用户颜色\n        private string Config_Path; // 磁贴配置文件路径\n        private string Old_Shortcut_Path; // 快捷方式文件路径\n        private string Old_Square150x150Logo_Path; // 旧图片文件路径\n\n        public Form(string[] args)\n        {\n            InitializeComponent();\n            this.args = args;\n        }\n\n        private void Form_Load(object sender, EventArgs e) // 主窗口创建前\n        {\n            // 创建互斥体，防止多开\n            newMutex = new System.Threading.Mutex(true, \"a8851f5e-cbb5-4466-bd72-d95c9bea4dea\", out bool WExist);\n            if (WExist == false)\n            {\n                // 判断是不是右键菜单启动的\n                if (args.Length > 0 && args[0] != \"\")\n                {\n                    Kill_SameNameProcess();\n                }\n                else\n                {\n                    _ = MessageBox.Show(\"请勿多开！\", \"注意：\", MessageBoxButtons.OK, MessageBoxIcon.Information);//弹出提示信息\n                    Environment.Exit(0);\n                }\n            }\n\n            // 判断系统版本\n            if (Environment.OSVersion.Version.Major != 10)\n            {\n                _ = MessageBox.Show(\"该软件仅支持 Windows10 系统！\", \"错误：\", MessageBoxButtons.OK);\n            }\n\n            // 获取软件当前版本号\n            Now_VerInfo = FileVersionInfo.GetVersionInfo(Application.ExecutablePath).FileVersion;\n            Now_VerInfo = Now_VerInfo.Substring(0,Now_VerInfo.Length - 2);\n            this.Text = \"磁贴美化小工具 v\" + Now_VerInfo;\n\n            // 检查DLL依赖\n            Check_Dll();\n\n            // 获取主题色并设置图片框背景颜色\n            SystemColor = \"#\" + Registry_SystemColor.Get_SystemColor();\n            PictureBox_磁贴图片预览.BackColor = ColorTranslator.FromHtml(SystemColor);\n            NewTileState = Registry_Other.Get_NewTileState(); // 获取是否开启新版磁贴样式，或系统 2004 版本以上\n            //Debug.Print(NewTileState.ToString());\n\n            // 磁贴预览标签背景透明\n            Label_磁贴名称预览.BackColor = Color.Transparent;\n            Label_磁贴名称预览.Parent = PictureBox_磁贴图片预览;\n            Label_磁贴名称预览.Location = new Point(5, 79);\n\n            // 检查是否以管理员身份运行\n            IsRunAsAdmin = Other_cs.Other.IsRunAsAdmin();\n            if (IsRunAsAdmin)\n            {\n                this.AllowDrop = false;\n                FileDroper = new FileDropAdmin(this);\n            }\n            Debug.Print(Button_自动检查更新.Text);\n            // 读入程序配置文件\n            Read_AppConfig();\n            Debug.Print(Button_自动检查更新.Text);\n\n            // 创建线程检查更新\n            if (Button_自动检查更新.Text == \"自动检查更新 [√]\")\n            {\n                _ = Task.Run(() => Check_Update(false));\n            }\n\n            // 检查是否添加右键菜单\n            Check_RightClickMenu();\n\n            if (args.Length > 0 && args[0] != \"\")\n            {\n                File_DragDrop(args[0]);\n                // Debug.Print(args[0]);\n            }\n        }\n        \n        private void Kill_SameNameProcess() // 结束同名进程\n        {\n            // 获取当前进程信息\n            Process Now_Process = Process.GetCurrentProcess();\n            // 获取同名进程信息\n            Process[] ALL_Process = Process.GetProcesses();\n            foreach (Process Temp_Process in ALL_Process)\n            {\n                // 判断该进程主窗口标题是否含有 XXX 字符串\n                if (Temp_Process.MainWindowTitle.Contains(\"磁贴美化小工具 v\"))\n                {\n                    // 如果不是当前进程，就结束它\n                    if(Temp_Process.Id != Now_Process.Id)\n                    {\n                        Temp_Process.Kill();\n                    }\n                }\n            }\n        }\n        \n        private void Recognize_Text_Color(byte r = 0, byte g = 0, byte b = 0) // 智能识别文字颜色\n        {\n            if (PictureBox_磁贴图片预览.Image == null)\n            {\n                if (r * 0.299 + g * 0.578 + b * 0.114 >= 168)\n                {\n                    Label_磁贴名称预览.ForeColor = Color.Black;\n                }\n                else\n                {\n                    Label_磁贴名称预览.ForeColor = Color.White;\n                }\n            }\n            else\n            {\n                // 创建一份磁贴(预览框)背景颜色的 Bitmap，在遇到有透明图层(png)的图片时，透明的像素点以背景颜色为准，保证磁贴颜色识别准确\n                Bitmap BackColor = new Bitmap(100, 100);\n                Graphics Temp_BackColor = Graphics.FromImage(BackColor);\n                Temp_BackColor.Clear(PictureBox_磁贴图片预览.BackColor);\n                Temp_BackColor.Dispose();\n                Color Back_PixelColor = BackColor.GetPixel(50, 50);\n\n                Bitmap ImageColor = new Bitmap((Bitmap)PictureBox_磁贴图片预览.Image, new Size(100, 100)); // 和图片框一样强制拉伸到 100*100 像素\n                double Red = 0, Green = 0, Blue = 0;\n                //double Alpha = 0;\n                for (int temp_y = 0; temp_y < 30; temp_y++)\n                {\n                    for (int temp_x = 0; temp_x < 92; temp_x++)\n                    {\n                        Color Image_PixelColor = ImageColor.GetPixel(5 + temp_x, 65 + temp_y);\n                        if (Image_PixelColor.A == 0)\n                        {\n                            //Alpha += Back_PixelColor.A;\n                            Red += Back_PixelColor.R;\n                            Green += Back_PixelColor.G;\n                            Blue += Back_PixelColor.B;\n                            //Debug.Print(Alpha.ToString() + \" \" + Red.ToString() + \" \" + Green.ToString() + \" \" + Blue.ToString() + \" \" + (Red * 0.299 + Green * 0.578 + Blue * 0.114).ToString());\n                        }\n                        else\n                        {\n                            //Alpha += Image_PixelColor.A;\n                            Red += Image_PixelColor.R;\n                            Green += Image_PixelColor.G;\n                            Blue += Image_PixelColor.B;\n                        }\n                    }\n                }\n                //BackColor.Dispose();\n                //ImageColor.Dispose();\n                //Alpha /= 2760;\n                Red /= 2760;\n                Green /= 2760;\n                Blue /= 2760;\n                //Debug.Print(Red.ToString() + \" \" + Green.ToString() + \" \" + Blue.ToString() + \" \" + (Red * 0.299 + Green * 0.578 + Blue * 0.114).ToString());\n                if (Red * 0.299 + Green * 0.578 + Blue * 0.114 >= 168)\n                {\n                    Label_磁贴名称预览.ForeColor = Color.Black;\n                }\n                else\n                {\n                    Label_磁贴名称预览.ForeColor = Color.White;\n                }\n            }\n        }\n        \n        private void Form_FormClosing(object sender, FormClosingEventArgs e) // 主窗口退出前\n        {\n            Write_AppConfig();\n        }\n        \n        private void Read_AppConfig() // 读入程序配置文件\n        {\n            if (AppConfig.GetValue(\"AutoCheckUpdate\", \"false\", AppConfig_Path) == \"true\")\n            {\n                Button_自动检查更新.Text = \"自动检查更新 [√]\";\n            }\n            else\n            {\n                Button_自动检查更新.Text = \"自动检查更新 [×]\";\n            }\n            if (AppConfig.GetValue(\"LegacyTileMode\", \"false\", AppConfig_Path) == \"true\")\n            {\n                Button_旧版磁贴模式.Text = \"旧版磁贴模式 [√]\";\n            }\n            else\n            {\n                Button_旧版磁贴模式.Text = \"旧版磁贴模式 [×]\";\n            }\n        }\n        \n        private void Write_AppConfig() // 写出程序配置文件\n        {\n            if (Button_自动检查更新.Text == \"自动检查更新 [√]\")\n            {\n                AppConfig.SetValue(\"AutoCheckUpdate\", \"true\", AppConfig_Path);\n            }\n            else\n            {\n                AppConfig.SetValue(\"AutoCheckUpdate\", \"false\", AppConfig_Path);\n            }\n            if (Button_旧版磁贴模式.Text == \"旧版磁贴模式 [√]\")\n            {\n                AppConfig.SetValue(\"LegacyTileMode\", \"true\", AppConfig_Path);\n            }\n            else\n            {\n                AppConfig.SetValue(\"LegacyTileMode\", \"false\", AppConfig_Path);\n            }\n        }\n        \n        private void Form_DragEnter(object sender, DragEventArgs e) // 拖放\n        {\n            if (IsRunAsAdmin)\n            {\n                e.Effect = DragDropEffects.All;\n            }\n            else\n            {\n                e.Effect = DragDropEffects.Link;\n            }\n        }\n        \n        private void Form_DragDrop(object sender, DragEventArgs e) // 收到拖放，判断当前是不是以管理员身份运行\n        {\n            if (IsRunAsAdmin)\n            {\n                File_DragDrop(((string[])e.Data.GetData(typeof(string[])))[0]);\n            }\n            else\n            {\n                File_DragDrop(((string[])e.Data.GetData(DataFormats.FileDrop))[0]);\n            }\n        }\n        \n        private bool File_DragDrop(string Drag_File_Path) // 处理拖放进来的文件\n        {\n            string Drag_File_Path_Extension = Path.GetExtension(Drag_File_Path).ToLower();\n            if (Drag_File_Path_Extension == \".exe\") // 后缀为应用程序\n            {\n                Init_Config();\n                TextBox_程序路径.Text = Drag_File_Path;\n            }\n            else if (Drag_File_Path_Extension == \".lnk\") // 后缀为快捷方式\n            {\n                string Shortcut_TargetPath = File_cs.Shortcut.Get_Shortcut_TargetPath(Drag_File_Path);\n                if (!System.IO.File.Exists(Shortcut_TargetPath))\n                {\n                    _ = MessageBox.Show(\"该快捷方式目标程序不存在！\" + Line + Shortcut_TargetPath, \"错误：\", MessageBoxButtons.OK);\n                    return false;\n                }\n                TextBox_程序路径.Text = Shortcut_TargetPath;\n            }\n            else if (Drag_File_Path_Extension == \".ico\") // 后缀为图标文件\n            {\n                TextBox_磁贴图标.Text = Drag_File_Path;\n            }\n            else if (Drag_File_Path_Extension == \".png\" || Drag_File_Path_Extension == \".jpg\" || Drag_File_Path_Extension == \".jpeg\") // 后缀为图片文件\n            {\n                TextBox_磁贴图片.Text = Drag_File_Path;\n            }\n            else // 都不是\n            {\n                _ = MessageBox.Show(\"不支持 [\" + Drag_File_Path_Extension + \"] 文件后缀！\" + Line + \"仅支持后缀：应用程序 [.exe / .lnk]，磁贴图片 [.png / .jpg / .jpeg]，磁贴图标 [.ico]\", \"错误：\", MessageBoxButtons.OK);\n                return false;\n            }\n            return true;\n        }\n        \n        private void Read_Config() // 读入磁贴配置文件\n        {\n            if (System.IO.File.Exists(Config_Path))\n            {\n                XDocument XML_xDoc = XDocument.Load(Config_Path);\n                XElement XML_Application = XML_xDoc.Element(\"Application\");\n                XElement XML_VisualElements = XML_Application.Element(\"VisualElements\");\n                //Debug.Print(XML_VisualElements.ToString());\n                if (XML_VisualElements.Attribute(\"BackgroundColor\") != null) // 磁贴背景颜色\n                {\n                    if (Button_旧版磁贴模式.Text == \"旧版磁贴模式 [√]\" || NewTileState == false) // 如果没有开启新版磁贴样式/开启了旧版磁贴模式，则使用系统主题色\n                    {\n                        UserColor = XML_VisualElements.Attribute(\"BackgroundColor\").Value.ToString();\n                    }\n                    else\n                    {\n                        UserColor = SystemColor;\n                    }\n                    PictureBox_磁贴图片预览.BackColor = ColorTranslator.FromHtml(UserColor);\n                }\n                else\n                {\n                    PictureBox_磁贴图片预览.BackColor = ColorTranslator.FromHtml(SystemColor);\n                }\n                if (XML_VisualElements.Attribute(\"ShowNameOnSquare150x150Logo\") != null) // 显示/隐藏磁贴文字\n                {\n                    if (XML_VisualElements.Attribute(\"ShowNameOnSquare150x150Logo\").Value.ToString() == \"off\")\n                    {\n                        Button_显示文字.Text = \"显示文字\";\n                    }\n                    else\n                    {\n                        Button_显示文字.Text = \"隐藏文字\";\n                    }\n                }\n                //XML_VisualElements.Attribute(\"ForegroundText\").Value.ToString();\n                if (XML_VisualElements.Attribute(\"Square150x150Logo\") != null) // 磁贴大图\n                {\n                    string Temp_Square150x150Logo = XML_VisualElements.Attribute(\"Square150x150Logo\").Value.ToString(); // 获取值\n                    if (Temp_Square150x150Logo != \"\") // 如果不等于空，则判断文件是否存在\n                    {\n                        if (System.IO.File.Exists(Path.GetDirectoryName(TextBox_程序路径.Text) + @\"\\\" + Temp_Square150x150Logo))\n                        {\n                            TextBox_磁贴图片.Text = Path.GetDirectoryName(TextBox_程序路径.Text) + @\"\\\" + Temp_Square150x150Logo;\n                            Old_Square150x150Logo_Path = TextBox_磁贴图片.Text; // 旧图片文件\n                        }\n                    }\n                    else\n                    {\n                        Old_Square150x150Logo_Path = \"\";\n                    }\n                }\n                /*if (XML_VisualElements.Attribute(\"Square70x70Logo\") != null) // 磁贴大图\n                {\n                    string Temp_Square70x70Logo = XML_VisualElements.Attribute(\"Square70x70Logo\").Value.ToString();\n                }*/\n                if (XML_VisualElements.Attribute(\"Lnk32x32Logo\") != null) // 磁贴图标\n                {\n                    string Temp_Lnk32x32Logo = XML_VisualElements.Attribute(\"Lnk32x32Logo\").Value.ToString(); // 获取值\n                    if (Temp_Lnk32x32Logo != \"\") // 如果不等于空，则判断文件是否存在\n                    {\n                        if (System.IO.File.Exists(Temp_Lnk32x32Logo))\n                        {\n                            TextBox_磁贴图标.Text = Temp_Lnk32x32Logo;\n                        }\n                    }\n                }\n            }\n            else\n            {\n                if (TextBox_磁贴图片.Text == \"\")\n                {\n                    TextBox_磁贴图标.Text = TextBox_程序路径.Text;\n                }\n            }\n        }\n        private void Write_Config() // 写出磁贴配置文件\n        {\n            string Temp_BackgroundColor;\n            string Temp_ShowNameOnSquare150x150Logo;\n            string Temp_ForegroundText;\n            string Temp_Square150x150Logo;\n\n            // 磁贴背景颜色\n            if (UserColor == \"\" || UserColor == null)\n            {\n                Temp_BackgroundColor = SystemColor;\n            }\n            else\n            {\n                Temp_BackgroundColor = UserColor;\n            }\n\n            // 磁贴是否显示文字\n            if (Button_显示文字.Text == \"显示文字\")\n            {\n                Temp_ShowNameOnSquare150x150Logo = \"off\";\n            }\n            else\n            {\n                Temp_ShowNameOnSquare150x150Logo = \"on\";\n            }\n\n            // 磁贴文字颜色\n            if (Label_磁贴名称预览.ForeColor == Color.White)\n            {\n                Temp_ForegroundText = \"light\";\n            }\n            else\n            {\n                Temp_ForegroundText = \"dark\";\n            }\n\n            // 磁贴图片\n            if (TextBox_磁贴图片.Text == \"\")\n            {\n                Temp_Square150x150Logo = \"\";\n            }\n            else\n            {\n                Temp_Square150x150Logo = Path.GetFileNameWithoutExtension(TextBox_程序路径.Text) + \".150x150Logo\" + Path.GetExtension(TextBox_磁贴图片.Text);\n            }\n            //Debug.Print(Temp_BackgroundColor + \"|\" + Temp_ShowNameOnSquare150x150Logo + \"|\" + Temp_ForegroundText + \"|\" + Temp_Square150x150Logo + \"|\" + TextBox_磁贴图标.Text);\n            // 开始写入配置\n            XElement XML_Application = new XElement(\"Application\",\n                    new XAttribute(XNamespace.Xmlns + \"xsi\", \"http://www.w3.org/2001/XMLSchema-instance\"));\n            XElement XML_VisualElements = new XElement(\"VisualElements\",\n                    new XAttribute(\"BackgroundColor\", Temp_BackgroundColor),\n                    new XAttribute(\"ShowNameOnSquare150x150Logo\", Temp_ShowNameOnSquare150x150Logo),\n                    new XAttribute(\"ForegroundText\", Temp_ForegroundText),\n                    new XAttribute(\"Square150x150Logo\", Temp_Square150x150Logo),\n                    new XAttribute(\"Square70x70Logo\", Temp_Square150x150Logo),\n                    new XAttribute(\"Lnk32x32Logo\", TextBox_磁贴图标.Text)\n                    );\n            XML_Application.Add(XML_VisualElements);\n            XML_Application.Save(Config_Path); // 保存配置文件文件\n            Copy_Img(); // 复制图片文件\n        }\n\n        private void Copy_Img() // 复制磁贴图片\n        {\n            if (TextBox_磁贴图片.Text != \"\") // 图片路径不等于空时继续\n            {\n                //Debug.Print(TextBox_磁贴图片.Text);\n                //Debug.Print(Old_Square150x150Logo_Path);\n                if (TextBox_磁贴图片.Text != Old_Square150x150Logo_Path) // 如果图片已更改，则复制到程序目录下。\n                {\n                    System.IO.File.Copy(TextBox_磁贴图片.Text, Path.GetDirectoryName(TextBox_程序路径.Text) + @\"\\\" + Path.GetFileNameWithoutExtension(TextBox_程序路径.Text) + \".150x150Logo\" + Path.GetExtension(TextBox_磁贴图片.Text), true);\n                }\n            }\n        }\n\n        private void Button_添加磁贴_Click(object sender, EventArgs e) // 添加/更新磁贴\n        {\n            Write_Config(); // 写出磁贴配置文件\n            Add_Tile(); // 固定到开始屏幕、处理磁贴快捷方式\n        }\n        private void Add_Tile() // 固定到开始屏幕、处理磁贴快捷方式\n        {\n            if (Old_Shortcut_Path == \"\") // 旧快捷方式路径等于空，说明是该程序没有固定为磁贴\n            {\n                Add_Tile_Dll(); // 固定为磁贴\n                if(TextBox_磁贴名称.Text != Path.GetFileNameWithoutExtension(TextBox_程序路径.Text)) // 如果磁贴名称与磁贴快捷方式名称不一致，则重命名快捷方式\n                {\n                    Rename_Shortcut(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Programs) + @\"\\\" + Path.GetFileNameWithoutExtension(TextBox_程序路径.Text) + \".lnk\", System.Environment.GetFolderPath(System.Environment.SpecialFolder.Programs) + @\"\\\" + TextBox_磁贴名称.Text + \".lnk\");\n                }\n            }\n            else\n            {\n                System.IO.File.Delete(Old_Shortcut_Path); // 删除旧快捷方式文件，并创建一个新的快捷方式\n                File_cs.Shortcut.Create_Shortcut(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Programs) + @\"\\\" + TextBox_磁贴名称.Text + \".lnk\", TextBox_程序路径.Text, TextBox_磁贴图标.Text);\n            }\n\n            for (int Temp_i = 1; Temp_i < 100; Temp_i += 1) // 循环等待，判断新快捷方式文件是否存在，如果存在则跳出循环\n            {\n                System.Threading.Thread.Sleep(10);\n                if (System.IO.File.Exists(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Programs) + @\"\\\" + TextBox_磁贴名称.Text + \".lnk\"))\n                {\n                    break;\n                }\n            }\n            // 如果新快捷方式不存在（用于判断前面的循环等待是否超时），则提示消息\n            if (!System.IO.File.Exists(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Programs) + @\"\\\" + TextBox_磁贴名称.Text + \".lnk\"))\n            {\n                _ = MessageBox.Show(\"磁贴快捷方式重命名失败！\" + Line + \"原因：没有找到旧快捷方式或新快捷方式。\" + Line + \"旧快捷方式：\" + System.Environment.GetFolderPath(System.Environment.SpecialFolder.Programs) + @\"\\\" + Path.GetFileNameWithoutExtension(TextBox_程序路径.Text) + \".lnk\" + Line + \"新快捷方式：\" + System.Environment.GetFolderPath(System.Environment.SpecialFolder.Programs) + @\"\\\" + TextBox_磁贴名称.Text + \".lnk\" + Line + \"程序路径：\" + TextBox_程序路径.Text, \"错误：\", MessageBoxButtons.OK);\n            }\n            else\n            {\n                Reload_Tile(); // 重载磁贴\n            }\n        }\n\n        private void Rename_Shortcut(string OldPath, string NewPath) // 重命名快捷方式\n        {\n            for (int Temp_i = 1; Temp_i < 100; Temp_i += 1) // 循环等待，判断新快捷方式文件是否存在\n            {\n                System.Threading.Thread.Sleep(10);\n                if (System.IO.File.Exists(OldPath)) // 如果旧快捷方式存在，则重命名 并 跳出循环\n                {\n                    System.IO.File.Move(OldPath, NewPath);\n                    break;\n                }\n                if (System.IO.File.Exists(NewPath)) // 如果新快捷方式存在(?.?)，则跳出循环\n                {\n                    break;\n                }\n            }\n        }\n\n        private void Add_Tile_Dll() // 固定磁贴\n        {\n            Check_Dll(); // DLL 文件检查\n            if (IsRunAsAdmin) // 以管理员身份运行时，则以普通用户权限去固定磁贴\n            {\n                ProcessStartInfo Tile = new ProcessStartInfo\n                {\n                    //FileName = \"runas.exe\",\n                    FileName = Application.StartupPath + @\"\\syspin.dll\",\n                    //WindowStyle = ProcessWindowStyle.Hidden,\n                    UseShellExecute = false,\n                    CreateNoWindow = true,\n                    Verb = \"explorer\",\n                    //Arguments = \"/trustlevel:0x20000 \" + '\"' + @\"\\\" + '\"' + Application.StartupPath + @\"\\syspin.dll\" + @\"\\\" + '\"' + \" \" + @\"\\\" + '\"' + TextBox_程序路径.Text + @\"\\\" + '\"' + \" 51201\" + '\"'\n                    Arguments = '\"' + TextBox_程序路径.Text + '\"' + \" 51201\"\n                };\n                //Debug.Print(Tile.Arguments);\n                Process.Start(Tile);\n            }\n            else\n            {\n                ProcessStartInfo Tile = new ProcessStartInfo\n                {\n                    FileName = Application.StartupPath + @\"\\syspin.dll\",\n                    //WindowStyle = ProcessWindowStyle.Hidden,\n                    CreateNoWindow = true,\n                    UseShellExecute = false,\n                    Arguments = '\"' + TextBox_程序路径.Text + '\"' + \" 51201\"\n                };\n                Process.Start(Tile);\n            }\n        }\n\n        private void Reload_Tile() // 重载磁贴配置\n        {\n            string Temp_Path = TextBox_程序路径.Text;\n            TextBox_程序路径.Text = \"\";\n            File_DragDrop(Temp_Path);\n        }\n\n        private void Init_Config() // 初始化当前载入的配置\n        {\n            Button_添加磁贴.Enabled = false; // 程序路径等于空时，禁用添加磁贴等按钮\n            TextBox_程序路径.Text = TextBox_磁贴名称.Text = TextBox_磁贴图片.Text = TextBox_磁贴图标.Text = Old_Square150x150Logo_Path = \"\";\n            PictureBox_磁贴图片预览.Image = PictureBox_磁贴图标预览.Image = null;\n        }\n        private void Button_查看_Click(object sender, EventArgs e) // 显示并定位程序路径文件\n        {\n            if (TextBox_程序路径.Text != \"\" && System.IO.File.Exists(TextBox_程序路径.Text))\n            {\n                _ = Process.Start(\"explorer\", \"/select,\" + TextBox_程序路径.Text);\n            }\n        }\n        \n        private void Button_初始化_Click(object sender, EventArgs e) // 初始化磁贴配置文件\n        {\n            if (System.IO.File.Exists(Config_Path))\n            {\n                if (MessageBox.Show(\"初始化将删除磁贴配置文件，是否删除？\" + Line + \"删除后不影响应用程序使用，背景图片及图标文件均不会被删除。\", \"提示：\", MessageBoxButtons.YesNo) == DialogResult.Yes)\n                {\n                    System.IO.File.Delete(Config_Path);\n                    if (System.IO.File.Exists(Config_Path))\n                    {\n                        _ = MessageBox.Show(\"删除配置文件失败！\" + Line + \"一般是因为文件位于 [C盘] 权限敏感目录，请 [以管理员身份运行] 本软件后再初始化磁贴（或手动删除并随意修改下磁贴对应的快捷方式文件名）。\" + Line + Line + Config_Path, \"错误：\", MessageBoxButtons.OK);\n                    }\n                    else\n                    {\n                        Reload_Tile(); // 重载磁贴\n                    }\n                }\n            }\n        }\n        \n        private void Button_显示文字_Click(object sender, EventArgs e) // 显示/隐藏磁贴文字\n        {\n            if (Button_显示文字.Text == \"显示文字\")\n            {\n                Button_显示文字.Text = \"隐藏文字\";\n            }\n            else\n            {\n                Button_显示文字.Text = \"显示文字\";\n            }\n        }\n        private void Button_显示文字_TextChanged(object sender, EventArgs e)\n        {\n            if (Button_显示文字.Text == \"显示文字\")\n            {\n                Label_磁贴名称预览.Visible = false;\n            }\n            else\n            {\n                Label_磁贴名称预览.Visible = true;\n            }\n        }\n        \n        private void Button_添加右键菜单_Click(object sender, EventArgs e) // 添加右键菜单\n        {\n            if (IsRunAsAdmin)\n            {\n                if (Button_添加右键菜单.Text == \"添加右键菜单 [√]\")\n                {\n                    if (Registry_RightClickMenu.Del(\"自定义并固定到\" + '\"' + \"开始\" + '\"' + \"屏幕\", \"exe\"))\n                    {\n                        Button_添加右键菜单.Text = \"添加右键菜单 [×]\";\n                    }\n                    else\n                    {\n                        _ = MessageBox.Show(\"删除右键菜单失败！\", \"错误：\", MessageBoxButtons.OK);\n                    }\n\n                }\n                else\n                {\n                    if (Registry_RightClickMenu.Add(\"自定义并固定到\" + '\"' + \"开始\" + '\"' + \"屏幕\", Application.ExecutablePath, false, \"\", \"exe\", \"\"))\n                    {\n                        Button_添加右键菜单.Text = \"添加右键菜单 [√]\";\n                    }\n                    else\n                    {\n                        _ = MessageBox.Show(\"添加右键菜单失败！\", \"错误：\", MessageBoxButtons.OK);\n                    }\n                }\n            }\n            else\n            {\n                _ = MessageBox.Show(\"只有 [以管理员身份允许] 时才有权限修改注册表！\", \"错误：\", MessageBoxButtons.OK);\n            }\n        }\n        private void Check_RightClickMenu() // 检查是否添加右键菜单\n        {\n            if(Registry_RightClickMenu.Check(\"自定义并固定到\" + '\"' + \"开始\" + '\"' + \"屏幕\", \"exe\"))\n            {\n                Button_添加右键菜单.Text = \"添加右键菜单 [√]\";\n            }\n            else\n            {\n                Button_添加右键菜单.Text = \"添加右键菜单 [×]\";\n            }\n        }\n\n        private void Button_查看磁贴目录_Click(object sender, EventArgs e) // 查看磁贴目录\n        {\n            _ = Process.Start(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Programs));\n        }\n\n        private void Button_旧版磁贴模式_Click(object sender, EventArgs e) // 旧版磁贴模式\n        {\n            if (Button_旧版磁贴模式.Text == \"旧版磁贴模式 [√]\")\n            {\n                Button_旧版磁贴模式.Text = \"旧版磁贴模式 [×]\";\n            }\n            else\n            {\n                Button_旧版磁贴模式.Text = \"旧版磁贴模式 [√]\";\n            }\n        }\n\n        private void Button_自动检查更新_Click(object sender, EventArgs e) // 自动检查更新\n        {\n            if (Button_自动检查更新.Text == \"自动检查更新 [√]\")\n            {\n                Button_自动检查更新.Text = \"自动检查更新 [×]\";\n            }\n            else\n            {\n                Button_自动检查更新.Text = \"自动检查更新 [√]\";\n            }\n        }\n        \n        private void Button_检查更新_Click(object sender, EventArgs e) // 立即检查更新\n        {\n            _ = Task.Run(() => Check_Update(true));\n        }\n           \n        private void Check_Dll() // 检查 syspin.dll 是否存在\n        {\n            if (!System.IO.File.Exists(Application.StartupPath + @\"\\syspin.dll\"))\n            {\n                _ = MessageBox.Show(\"找不到 [syspin.dll] 文件！请检查或重新下载！\", \"错误：\", MessageBoxButtons.OK);\n                Environment.Exit(0);\n            }\n        }\n        \n        private void Check_Update(bool Tip) // 检查更新\n        {\n            string strHTML = GetHTTP.Get_HTTP(\"https://api.xiu2.xyz/ver/win10kscdmhxgj.txt\", 10000, \"utf-8\");\n            string[] Ver_Info = strHTML.Split('\\n');\n            if (Ver_Info.Length > 2 && Ver_Info[1] != Now_VerInfo)\n            {\n                if (MessageBox.Show(\"发现新版本 [v\" + Ver_Info[1] + \"]！是否前往更新？\", \"发现新版本！\", MessageBoxButtons.YesNo) == DialogResult.Yes)\n                {\n                    Process.Start(Ver_Info[2]);\n                }\n            }\n            else\n            {\n                if (Tip == true)\n                {\n                    MessageBox.Show(\"当前已是最新版本 \" + Now_VerInfo + \" ！\", \"信息：\", MessageBoxButtons.OK);\n                }\n            }\n        }\n        \n        private void TextBox_程序路径_TextChanged(object sender, EventArgs e) // 内容更改后，读入程序路径\n        {\n            TextBox_程序路径_Leave_2();\n            if (TextBox_程序路径.Text != \"\")\n            {\n                string Temp_Shortcut_Path;\n                string Temp_Shortcut_Name; // 临时快捷方式文件名\n                Button_添加磁贴.Enabled = Button_查看.Enabled = Button_初始化.Enabled = true; // 程序路径不等于空时，允许添加磁贴等按钮\n                Temp_Shortcut_Path = File_cs.Shortcut.Get_Shortcut_TargetPath_Array(File_cs.File.File_Enumeration(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Programs), \"*.lnk\", true), TextBox_程序路径.Text);\n                // 如果没找到磁贴快捷方式，那就去所有用户的程序目录找下\n                if (Temp_Shortcut_Path == null)\n                {\n                    Temp_Shortcut_Path = File_cs.Shortcut.Get_Shortcut_TargetPath_Array(File_cs.File.File_Enumeration(System.Environment.GetFolderPath(System.Environment.SpecialFolder.CommonPrograms), \"*.lnk\", true), TextBox_程序路径.Text);\n                }\n                //Debug.Print(\"Temp_Shortcut_Path \" + Temp_Shortcut_Path);\n                // 如果找到了磁贴快捷方式，就设置全局变量 快捷方式文件名、快捷方式路径\n                if (Temp_Shortcut_Path != null)\n                {\n                    Old_Shortcut_Path = Temp_Shortcut_Path;\n                    //Debug.Print(Old_Shortcut_Path);\n                    Temp_Shortcut_Name = Path.GetFileNameWithoutExtension(Temp_Shortcut_Path);\n                    //Debug.Print(Temp_Shortcut_Name);\n                }\n                else\n                {\n                    Old_Shortcut_Path = Temp_Shortcut_Name = \"\";\n                }\n                // 如果快捷方式文件名为空，则磁贴名称设置为程序文件名\n                if (Temp_Shortcut_Name != \"\")\n                {\n                    TextBox_磁贴名称.Text = Temp_Shortcut_Name;\n                    if (TextBox_磁贴名称.Text == \"\")\n                    {\n                        TextBox_磁贴名称.Text = Path.GetFileNameWithoutExtension(TextBox_程序路径.Text);\n                    }\n                }\n                else\n                {\n                    TextBox_磁贴名称.Text = Path.GetFileNameWithoutExtension(TextBox_程序路径.Text);\n                }\n                //Debug.Print(\"333\" + TextBox_磁贴名称.Text);\n                // 设置程序配置文件路径\n                Config_Path = Path.GetDirectoryName(TextBox_程序路径.Text) + @\"\\\" + Path.GetFileNameWithoutExtension(TextBox_程序路径.Text) + \".VisualElementsManifest.xml\";\n                //Debug.Print(Config_Path);\n                // 磁贴图片、磁贴图标清空\n                TextBox_磁贴图片.Text = TextBox_磁贴图标.Text = \"\";\n                PictureBox_磁贴图片预览.Image = PictureBox_磁贴图标预览.Image = null;\n                Read_Config();\n            }\n        }\n        private void TextBox_磁贴名称_TextChanged(object sender, EventArgs e)\n        {\n            TextBox_磁贴名称_Leave_2();\n            Label_磁贴名称预览.Text = TextBox_磁贴名称.Text;\n            if (TextBox_磁贴名称.Text == \"\")\n            {\n                Button_添加磁贴.Enabled = false; // 磁贴名称等于空时，禁用添加磁贴按钮\n            }\n            else\n            {\n                Button_添加磁贴.Enabled = true; // 磁贴名称不等于空时，允许添加磁贴按钮\n            }\n        }\n        private void TextBox_磁贴图片_TextChanged(object sender, EventArgs e) // 内容更改后，读入图片\n        {\n            if (TextBox_磁贴图片.Text != \"\")\n            {\n                if (System.IO.File.Exists(TextBox_磁贴图片.Text))\n                {\n                    if (PictureBox_磁贴图片预览.Image != null)\n                    {\n                        PictureBox_磁贴图片预览.Image.Dispose(); // 释放旧资源\n                    }\n                    FileStream Temp_ImageStream = new FileStream(TextBox_磁贴图片.Text, FileMode.Open, FileAccess.Read); // 打开文件流\n                    int Temp_ImageByteLength = (int)Temp_ImageStream.Length;\n                    byte[] Temp_ImageFileBytes = new byte[Temp_ImageByteLength];\n                    Temp_ImageStream.Read(Temp_ImageFileBytes, 0, Temp_ImageByteLength);\n                    Temp_ImageStream.Close(); // 文件流关闭，文件解除锁定\n                    PictureBox_磁贴图片预览.Image = Image.FromStream(new MemoryStream(Temp_ImageFileBytes)); // 从流中读入图片\n                    //PictureBox_磁贴图片预览.Image = Image.FromFile(TextBox_磁贴图片.Text); // 旧载入方式，会锁定文件\n                    Recognize_Text_Color(); // 识别图片颜色\n                    TextBox_磁贴图标.Text = \"\";\n                    PictureBox_磁贴图标预览.Image = null;\n                    TextBox_磁贴图标_Leave_2();\n                    TextBox_磁贴图片_Leave_2();\n                    //TextBox_磁贴图片.Focus();\n                    //Button_添加磁贴.Focus();\n                    PictureBox_磁贴图标预览.Visible = false;\n                }\n                else\n                {\n                    TextBox_磁贴图片.Text = \"\";\n                    PictureBox_磁贴图片预览.Image = null;\n                }\n            }\n            else\n            {\n                TextBox_磁贴图片_Leave_2();\n            }\n        }\n        private void TextBox_磁贴图标_TextChanged(object sender, EventArgs e) // 内容更改后，读入图标\n        {\n            if(TextBox_磁贴图标.Text != \"\")\n            {\n                if (System.IO.File.Exists(TextBox_磁贴图标.Text))\n                {\n                    if (PictureBox_磁贴图标预览.Image != null)\n                    {\n                        PictureBox_磁贴图标预览.Image.Dispose(); // 释放旧资源\n                    }\n                    if (Path.GetExtension(TextBox_磁贴图标.Text).ToLower() == \".exe\")\n                    {\n                        PictureBox_磁贴图标预览.Image = System.Drawing.Icon.ExtractAssociatedIcon(TextBox_磁贴图标.Text).ToBitmap();\n                        //PictureBox_磁贴图标预览.Image = Bitmap.FromHicon(System.Drawing.Icon.ExtractAssociatedIcon(TextBox_磁贴图标.Text).Handle); // 旧载入方式，有锯齿\n                    }\n                    else if(Path.GetExtension(TextBox_磁贴图标.Text).ToLower() == \".ico\")\n                    {\n                        FileStream Temp_IconStream = new FileStream(TextBox_磁贴图标.Text, FileMode.Open, FileAccess.Read); // 打开文件流\n                        int Temp_IconByteLength = (int)Temp_IconStream.Length;\n                        byte[] Temp_IconFileBytes = new byte[Temp_IconByteLength];\n                        Temp_IconStream.Read(Temp_IconFileBytes, 0, Temp_IconByteLength);\n                        Temp_IconStream.Close(); // 文件流关闭，文件解除锁定\n                        PictureBox_磁贴图标预览.Image = Image.FromStream(new MemoryStream(Temp_IconFileBytes)); // 从流中读入图标\n\n                        //PictureBox_磁贴图标预览.ImageLocation = TextBox_磁贴图标.Text; // 旧载入方式，无锯齿，但会锁定文件\n                        //PictureBox_磁贴图标预览.Image = Bitmap.FromHicon(new Icon(TextBox_磁贴图标.Text, 32, 32).Handle); // 旧载入方式，有锯齿\n                    }\n                    TextBox_磁贴图片.Text = \"\";\n                    PictureBox_磁贴图片预览.Image = null;\n                    TextBox_磁贴图片_Leave_2();\n                    TextBox_磁贴图标_Leave_2();\n                    //TextBox_磁贴图标.Focus();\n                    //Button_添加磁贴.Focus();\n                    PictureBox_磁贴图标预览.Visible = true;\n                }\n                else\n                {\n                    TextBox_磁贴图标.Text = \"\";\n                    PictureBox_磁贴图标预览.Image = null;\n                    PictureBox_磁贴图标预览.Visible = false;\n                }\n            }\n            else\n            {\n                TextBox_磁贴图标_Leave_2();\n            }\n        }\n        \n        private void TextBox_磁贴图片_KeyPress(object sender, KeyPressEventArgs e) // 按下退格键清理输入框和图片框，下同\n        {\n            if (e.KeyChar == 8)\n            {\n                TextBox_磁贴图片.Text = null;\n                PictureBox_磁贴图片预览.Image = null;\n                if (TextBox_磁贴图标.Text == \"\") // 如果图标路径也是空的话，那就指定为程序文件\n                {\n                    TextBox_磁贴图标.Text = TextBox_程序路径.Text;\n                }\n            }\n        }\n        private void TextBox_磁贴图标_KeyPress(object sender, KeyPressEventArgs e)\n        {\n            if (e.KeyChar == 8)\n            {\n                if (TextBox_磁贴图标.Text != TextBox_程序路径.Text) // 如果图标路径等于程序路径，那就没必要继续无意义动作了\n                {\n                    TextBox_磁贴图标.Text = null;\n                    PictureBox_磁贴图标预览.Image = null;\n                    if (TextBox_磁贴图片.Text == \"\") // 如果图片路径也是空的话，那就指定图标为程序路径\n                    {\n                        TextBox_磁贴图标.Text = TextBox_程序路径.Text;\n                    }\n                }\n            }\n        }\n        private void TextBox_程序路径_KeyPress(object sender, KeyPressEventArgs e)\n        {\n            if (e.KeyChar == 8)\n            {\n                Init_Config();\n            }\n        }\n        \n        private void TextBox_程序路径_Enter(object sender, EventArgs e) // 输入框获得焦点后，置顶并修改背景颜色，下同\n        {\n            TextBox_程序路径.BringToFront();\n            TextBox_程序路径.BackColor = Color.Gainsboro;\n            Label_程序路径.BackColor = Color.Gainsboro;\n        }\n        private void TextBox_程序路径_Leave(object sender, EventArgs e) // 输入框失去焦点后，置底并修改背景颜色，下同\n        {\n            TextBox_程序路径_Leave_2();\n        }\n        private void TextBox_程序路径_Leave_2()\n        {\n            if (TextBox_程序路径.Text == \"\")\n            {\n                TextBox_程序路径.SendToBack();\n            }\n            else\n            {\n                TextBox_程序路径.BringToFront();\n            }\n            TextBox_程序路径.BackColor = Color.WhiteSmoke;\n            Label_程序路径.BackColor = Color.WhiteSmoke;\n        }\n        private void TextBox_磁贴名称_Enter(object sender, EventArgs e)\n        {\n            TextBox_磁贴名称.BringToFront();\n            TextBox_磁贴名称.BackColor = Color.Gainsboro;\n            Label_磁贴名称.BackColor = Color.Gainsboro;\n        }\n        private void TextBox_磁贴名称_Leave(object sender, EventArgs e)\n        {\n            TextBox_磁贴名称_Leave_2();\n        }\n        private void TextBox_磁贴名称_Leave_2()\n        {\n            if (TextBox_磁贴名称.Text == \"\")\n            {\n                TextBox_磁贴名称.SendToBack();\n            }\n            else\n            {\n                TextBox_磁贴名称.BringToFront();\n            }\n            TextBox_磁贴名称.BackColor = Color.WhiteSmoke;\n            Label_磁贴名称.BackColor = Color.WhiteSmoke;\n        }\n        private void TextBox_磁贴图片_Enter(object sender, EventArgs e)\n        {\n            TextBox_磁贴图片.BringToFront();\n            TextBox_磁贴图片.BackColor = Color.Gainsboro;\n            Label_磁贴图片.BackColor = Color.Gainsboro;\n        }\n        private void TextBox_磁贴图片_Leave(object sender, EventArgs e)\n        {\n            TextBox_磁贴图片_Leave_2();\n        }\n        private void TextBox_磁贴图片_Leave_2()\n        {\n            if (TextBox_磁贴图片.Text == \"\")\n            {\n                TextBox_磁贴图片.SendToBack();\n                if (PictureBox_磁贴图片预览.Image != null)\n                {\n                    PictureBox_磁贴图片预览.Image.Dispose();\n                }\n            }\n            else\n            {\n                TextBox_磁贴图片.BringToFront();\n            } \n            TextBox_磁贴图片.BackColor = Color.WhiteSmoke;\n            Label_磁贴图片.BackColor = Color.WhiteSmoke;\n        }\n        private void TextBox_磁贴图标_Enter(object sender, EventArgs e)\n        {\n            TextBox_磁贴图标.BringToFront();\n            TextBox_磁贴图标.BackColor = Color.Gainsboro;\n            Label_磁贴图标.BackColor = Color.Gainsboro;\n        }\n        private void TextBox_磁贴图标_Leave(object sender, EventArgs e)\n        {\n            TextBox_磁贴图标_Leave_2();\n        }\n        private void TextBox_磁贴图标_Leave_2()\n        {\n            if (TextBox_磁贴图标.Text == \"\")\n            {\n                TextBox_磁贴图标.SendToBack();\n                if (PictureBox_磁贴图标预览.Image != null)\n                {\n                    PictureBox_磁贴图标预览.Image.Dispose();\n                }\n            }\n            else\n            {\n                TextBox_磁贴图标.BringToFront();\n            }\n            TextBox_磁贴图标.BackColor = Color.WhiteSmoke;\n            Label_磁贴图标.BackColor = Color.WhiteSmoke;\n        }\n        \n        private void Label_程序路径_MouseClick(object sender, MouseEventArgs e) // 点击标签后，置焦点为输入框，下同\n        {\n            TextBox_程序路径.Focus();\n        }\n        private void Label_磁贴名称_MouseClick(object sender, MouseEventArgs e)\n        {\n            TextBox_磁贴名称.Focus();\n        }\n        private void Label_磁贴图片_MouseClick(object sender, MouseEventArgs e)\n        {\n            TextBox_磁贴图片.Focus();\n        }\n        private void Label_磁贴图标_MouseClick(object sender, MouseEventArgs e)\n        {\n            TextBox_磁贴图标.Focus();\n        }\n        \n        private void PictureBox_磁贴图片预览_MouseDown(object sender, MouseEventArgs e) // 图片预览框 鼠标按下开始取色\n        {\n            if (e.Button == MouseButtons.Left)\n            {\n                if (Button_旧版磁贴模式.Text == \"旧版磁贴模式 [√]\" || NewTileState == false) // 如果没有开启新版磁贴样式/开启了旧版磁贴模式，则允许取色\n                {\n                    PictureBox_磁贴图片预览.Cursor = Cursors.Cross;\n                    ScreenColorFlag = true;\n                }\n            }\n        }\n        private void PictureBox_磁贴图片预览_MouseMove(object sender, MouseEventArgs e) // 图片预览框 鼠标移动 取色\n        {\n            if (ScreenColorFlag)\n            {\n                UserColor = \"#\" + Other_cs.Color.Get_ScreenColor(MousePosition.X, MousePosition.Y);\n                PictureBox_磁贴图片预览.BackColor = ColorTranslator.FromHtml(UserColor);\n            }\n            \n        }\n        private void PictureBox_磁贴图片预览_MouseUp(object sender, MouseEventArgs e) // 图片预览框 鼠标放开结束取色\n        {\n            if (e.Button == MouseButtons.Left)\n            {\n                PictureBox_磁贴图片预览.Cursor = Cursors.Default;\n                ScreenColorFlag = false;\n            }\n        }\n        private void PictureBox_磁贴图片预览_MouseClick(object sender, MouseEventArgs e) // 图片预览框 鼠标右击恢复默认颜色\n        {\n            if (e.Button == MouseButtons.Right)\n            {\n                PictureBox_磁贴图片预览.BackColor = ColorTranslator.FromHtml(SystemColor);\n            }\n        }\n\n        private void PictureBox_磁贴图片预览_BackColorChanged(object sender, EventArgs e) // 统一其他预览控件的背景颜色\n        {\n            PictureBox_磁贴图标预览.BackColor = Label_磁贴名称预览.BackColor = PictureBox_磁贴图片预览.BackColor;\n            Recognize_Text_Color(PictureBox_磁贴图片预览.BackColor.R, PictureBox_磁贴图片预览.BackColor.G, PictureBox_磁贴图片预览.BackColor.B); // 智能识别文字颜色\n        }\n    }\n}\n"
  },
  {
    "path": "Form.resx",
    "content": "﻿<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n  <!-- \n    Microsoft ResX Schema \n    \n    Version 2.0\n    \n    The primary goals of this format is to allow a simple XML format \n    that is mostly human readable. The generation and parsing of the \n    various data types are done through the TypeConverter classes \n    associated with the data types.\n    \n    Example:\n    \n    ... ado.net/XML headers & schema ...\n    <resheader name=\"resmimetype\">text/microsoft-resx</resheader>\n    <resheader name=\"version\">2.0</resheader>\n    <resheader name=\"reader\">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>\n    <resheader name=\"writer\">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>\n    <data name=\"Name1\"><value>this is my long string</value><comment>this is a comment</comment></data>\n    <data name=\"Color1\" type=\"System.Drawing.Color, System.Drawing\">Blue</data>\n    <data name=\"Bitmap1\" mimetype=\"application/x-microsoft.net.object.binary.base64\">\n        <value>[base64 mime encoded serialized .NET Framework object]</value>\n    </data>\n    <data name=\"Icon1\" type=\"System.Drawing.Icon, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">\n        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>\n        <comment>This is a comment</comment>\n    </data>\n                \n    There are any number of \"resheader\" rows that contain simple \n    name/value pairs.\n    \n    Each data row contains a name, and value. The row also contains a \n    type or mimetype. Type corresponds to a .NET class that support \n    text/value conversion through the TypeConverter architecture. \n    Classes that don't support this are serialized and stored with the \n    mimetype set.\n    \n    The mimetype is used for serialized objects, and tells the \n    ResXResourceReader how to depersist the object. This is currently not \n    extensible. For a given mimetype the value must be set accordingly:\n    \n    Note - application/x-microsoft.net.object.binary.base64 is the format \n    that the ResXResourceWriter will generate, however the reader can \n    read any of the formats listed below.\n    \n    mimetype: application/x-microsoft.net.object.binary.base64\n    value   : The object must be serialized with \n            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter\n            : and then encoded with base64 encoding.\n    \n    mimetype: application/x-microsoft.net.object.soap.base64\n    value   : The object must be serialized with \n            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter\n            : and then encoded with base64 encoding.\n\n    mimetype: application/x-microsoft.net.object.bytearray.base64\n    value   : The object must be serialized into a byte array \n            : using a System.ComponentModel.TypeConverter\n            : and then encoded with base64 encoding.\n    -->\n  <xsd:schema id=\"root\" xmlns=\"\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\">\n    <xsd:import namespace=\"http://www.w3.org/XML/1998/namespace\" />\n    <xsd:element name=\"root\" msdata:IsDataSet=\"true\">\n      <xsd:complexType>\n        <xsd:choice maxOccurs=\"unbounded\">\n          <xsd:element name=\"metadata\">\n            <xsd:complexType>\n              <xsd:sequence>\n                <xsd:element name=\"value\" type=\"xsd:string\" minOccurs=\"0\" />\n              </xsd:sequence>\n              <xsd:attribute name=\"name\" use=\"required\" type=\"xsd:string\" />\n              <xsd:attribute name=\"type\" type=\"xsd:string\" />\n              <xsd:attribute name=\"mimetype\" type=\"xsd:string\" />\n              <xsd:attribute ref=\"xml:space\" />\n            </xsd:complexType>\n          </xsd:element>\n          <xsd:element name=\"assembly\">\n            <xsd:complexType>\n              <xsd:attribute name=\"alias\" type=\"xsd:string\" />\n              <xsd:attribute name=\"name\" type=\"xsd:string\" />\n            </xsd:complexType>\n          </xsd:element>\n          <xsd:element name=\"data\">\n            <xsd:complexType>\n              <xsd:sequence>\n                <xsd:element name=\"value\" type=\"xsd:string\" minOccurs=\"0\" msdata:Ordinal=\"1\" />\n                <xsd:element name=\"comment\" type=\"xsd:string\" minOccurs=\"0\" msdata:Ordinal=\"2\" />\n              </xsd:sequence>\n              <xsd:attribute name=\"name\" type=\"xsd:string\" use=\"required\" msdata:Ordinal=\"1\" />\n              <xsd:attribute name=\"type\" type=\"xsd:string\" msdata:Ordinal=\"3\" />\n              <xsd:attribute name=\"mimetype\" type=\"xsd:string\" msdata:Ordinal=\"4\" />\n              <xsd:attribute ref=\"xml:space\" />\n            </xsd:complexType>\n          </xsd:element>\n          <xsd:element name=\"resheader\">\n            <xsd:complexType>\n              <xsd:sequence>\n                <xsd:element name=\"value\" type=\"xsd:string\" minOccurs=\"0\" msdata:Ordinal=\"1\" />\n              </xsd:sequence>\n              <xsd:attribute name=\"name\" type=\"xsd:string\" use=\"required\" />\n            </xsd:complexType>\n          </xsd:element>\n        </xsd:choice>\n      </xsd:complexType>\n    </xsd:element>\n  </xsd:schema>\n  <resheader name=\"resmimetype\">\n    <value>text/microsoft-resx</value>\n  </resheader>\n  <resheader name=\"version\">\n    <value>2.0</value>\n  </resheader>\n  <resheader name=\"reader\">\n    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\n  </resheader>\n  <resheader name=\"writer\">\n    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\n  </resheader>\n  <metadata name=\"toolTip.TrayLocation\" type=\"System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\">\n    <value>17, 17</value>\n  </metadata>\n  <assembly alias=\"System.Drawing\" name=\"System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\" />\n  <data name=\"$this.Icon\" type=\"System.Drawing.Icon, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">\n    <value>\n        AAABAAIAEBAAAAEAIABoBAAAJgAAADAuAAABACAAGCQAAI4EAAAoAAAAEAAAACAAAAABACAAAAAAAEAE\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAPOWIQPzliEEAAAABfOWIATzlSECB7njAADC/wAGwf8AB8H/AAfB\n        /wAHwf8AB8H/AAfB/wAHwf8IB8H/AfOWIQDzliEA85YhAPOWIQDzliAA9JQgAAD//wAAwv8NBsH/NQfB\n        /1QHwf9vB8H/gAfB/5IHwf+yB8H/ywfB/yPzliEFnWEVQ/OWIWXzliF685Ygh+6WJKn3khKFAcH/gQbB\n        //kHwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf8s85YhJ/OWIfzzliH/85Yh//OWIP/vlSP//5ENxgPA\n        /5YFwf//B8H/+AfB//oHwf/5B8H/+QfB//sHwf/4B8H/KvOWISvzliH685Yh+/OWIfjzliD275Yk+v+R\n        DbkCwf+RBsH//gfB//oHwf/+B8H//wfB//4Hwf//B8H/+wfB/yvzliEp85Yh9vOWIfrzliH585Yg9++W\n        JPr/kg64A8H/kAbB//oHwf/2B8H/+gfB//oHwf/5B8H/+gfB//YHwf8q8JQjL/KVIv/wlCT/8pUi//KV\n        If/slCb//pEPzAPA/qAHwPz/CMD8/wjA/P8IwPz/B8D+/wjA/P8HwP7/B8D8L/+hBBX/nwmM/54Lkf+e\n        CpD/ngmP/54OlP+aAGcAxP9OAML/lADC/44Awv+QAML/kQDC/5AAwv+RAML/jQDD/xUcOP8VITn/jCI6\n        /5IiOv+QIjn/jyM7/5UcL/9nWbExTletOJVXrTmPV605kVetOZFXrTiQV605kVetN41ZrDQVOETxLzdD\n        8v84RPH/NkPy/zZC8v84Re7/NDn9zE+vSqBOr03/Tq9O/06vTv9Or07/T69M/06vTv9Pr03/T69OLjZD\n        9Ck2Q/T2NkP0+jZD9Pk2QvT3NkTx+jM5/7hQsEmQUK9L+lCvTPZQr0z6UK9M+lCvTPlQr0z6UK9M9lCv\n        TCo2Q/QrNkP0+jZD9Ps2Q/T4NkL09jZE8fozOf+5ULBIkVCvS/5Qr0z6UK9M/lCvTP9Qr0z+UK9M/1Cv\n        TPtQr0wrNkP0JzZD9Ps2Q/T/NkP0/zZC9P82Q/H/Mjj/xlCvSZZQr0r/UK9M+FCvTPpQr0z5UK9M+VCv\n        TPtQr0z4UK9MKjZD9AUjK55CNkP0ZTZD9Ho2QvSGNkTwqDM6+YRQsEiBUK9L+VCvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTCw2Q/QANkP0ADZD9AA2Q/QANkL0ADZB9AB5/wAAULFGDVCvSzVQr0xUUK9Mb1Cv\n        TIBQr0ySUK9MsVCvTMtQr0wjAAAAADZD9AM2Q/QENkP0BTZC9AQ2QvQCTJtMAFCxRgBQr0sAUK9MAFCv\n        TABQr0wAUK9MAFCvTABQr0wIUK9MAYP8AAD+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAA/gAAAIP8AAAoAAAAMAAAAFwAAAABACAAAAAAAIAiAAB0EgAAdBIAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfB/wAHwf8AB8H/AAfB\n        /wAHwf8AB8H/AAfB/wAHwf8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHwf8AB8H/AAfB/wAHwf8AB8H/AAfB/wAHwf8AB8H/AAfB\n        /wAHwf8AB8H/AAfB/wMHwf8KB8H/BAfB/wAHwf8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n        AAAAAAAAAAAAAAfB/wAHwf8AB8H/AAfB/wAHwf8AB8H/AAfB/wAHwf8AB8H/AAfB/wAHwf8BB8H/CAfB\n        /xQHwf8lB8H/OgfB/1QHwf9wB8H/jQfB/6kHwf/EB8H/ggfB/wQHwf8AAAAAAAAAAAAAAAAAAAAAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADzliEA85YhAPOW\n        IQD/bQAAB8H/AAfB/wAHwf8AB8H/AAfB/wAHwf8AB8H/AAfB/wUHwf8QB8H/HwfB/zMHwf9LB8H/ZwfB\n        /4QHwf+hB8H/uwfB/9MHwf/lB8H/8wfB//wHwf//B8H//wfB//8Hwf//B8H/xgfB/wsHwf8AAAAAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA85YhAPOWIQDzliEA85YhAPOWIQDzliEA85YhAPOW\n        IQDzliEA85YhAPOWIQD0liAAAMb/AAfB/w0Hwf8sB8H/RAfB/14Hwf97B8H/mAfB/7QHwf/MB8H/4AfB\n        /+8Hwf/6B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H/wwfB\n        /wsHwf8AAAAAAAAAAADzliEA85YhAPOWIQDzliEA85YhAPOWIQDzliEA85YhAPOWIQDzliEA85YhAfOW\n        IQnzliEV85YhJvOWITzzliFW85Yhc/OWIX71lh8gAOr/AgfB/5IHwf/uB8H/9wfB//4Hwf//B8H//wfB\n        //8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB\n        //8Hwf//B8H/wwfB/wsHwf8A85YhAPOWIQDzliEA85YhAPOWIQDzliEG85YhEfOWISDzliE185YhTfOW\n        IWnzliGG85Yho/OWIb3zliHU85Yh5vOWIfTzliH985Yh//OWIf/0liBnAOP/BQfB/8IHwf//B8H//wfB\n        //8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB\n        //8Hwf//B8H//wfB//8Hwf//B8H/wwfB/wsHwf8A85YhAPOWIQDzliE485YhfvOWIZrzliG285YhzvOW\n        IeHzliHw85Yh+vOWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/0liBsAOP/BQfB\n        /8AHwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB\n        //8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H/wwfB/wsHwf8A85YhAPOWIQjzliG485Yh//OW\n        If/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OW\n        If/0liBsAOP/BQfB/8AHwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB\n        //8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H/wwfB/wsHwf8A85YhAPOW\n        IQvzliHE85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OW\n        If/zliH/85Yh//OWIf/0liBsAOP/BQfB/8AHwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB\n        //8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H/wwfB\n        /wsHwf8A85YhAPOWIQvzliHD85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OW\n        If/zliH/85Yh//OWIf/zliH/85Yh//OWIf/0liBsAOP/BQfB/8AHwf//B8H//wfB//8Hwf//B8H//wfB\n        //8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB\n        //8Hwf//B8H/wwfB/wsHwf8A85YhAPOWIQvzliHD85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OW\n        If/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/0liBsAOP/BQfB/8AHwf//B8H//wfB\n        //8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB\n        //8Hwf//B8H//wfB//8Hwf//B8H/wwfB/wsHwf8A85YhAPOWIQvzliHD85Yh//OWIf/zliH/85Yh//OW\n        If/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/0liBsAOP/BQfB\n        /8AHwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB\n        //8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H/wwfB/wsHwf8A85YhAPOWIQvzliHD85Yh//OW\n        If/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OW\n        If/0liBsAOP/BQfB/8AHwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB\n        //8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H/wwfB/wsHwf8A85YhAPOW\n        IQvzliHD85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OW\n        If/zliH/85Yh//OWIf/0liBsAOP/BQfB/8AHwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB\n        //8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H/wwfB\n        /wsHwf8A85YhAPOWIQvzliHD85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OW\n        If/zliH/85Yh//OWIf/zliH/85Yh//OWIf/0liBsAOP/BQfB/8AHwf//B8H//wfB//8Hwf//B8H//wfB\n        //8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB\n        //8Hwf//B8H/wwfB/wsHwf8A85YhAPOWIQvzliHD85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OW\n        If/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/0liBsAOP/BQfB/8AHwf//B8H//wfB\n        //8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB\n        //8Hwf//B8H//wfB//8Hwf//B8H/wwfB/wsHwf8A85YhAPOWIQvzliHD85Yh//OWIf/zliH/85Yh//OW\n        If/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/0liBsAOP/BQfB\n        /8AHwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB\n        //8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H/wwfB/wsHwf8A85YhAPOWIQvzliHD85Yh//OW\n        If/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OW\n        If/0liBsAOP/BQfB/8AHwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB\n        //8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H/wwfB/wsHwf8A85YhAPOW\n        IQvzliHD85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OW\n        If/zliH/85Yh//OWIf/0liBsAOP/BQfB/8AHwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB\n        //8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H/wwfB\n        /wsHwf8A85YhAPOWIQvzliHF85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OWIf/zliH/85Yh//OW\n        If/zliH/85Yh//OWIf/zliH/85Yh//OWIf/0liBtAOP/BQfB/8IHwf//B8H//wfB//8Hwf//B8H//wfB\n        //8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB//8Hwf//B8H//wfB\n        //8Hwf//B8H/xQfB/wsHwf8A85YhAPOWIQXzliGc85Yh8POWIe3zliHt85Yh7fOWIe3zliHt85Yh7fOW\n        Ie3zliHt85Yh7fOWIe3zliHt85Yh7fOWIe3zliHt85Yh7vOWIef0liBPAP//AQfB/5sHwf/wB8H/7QfB\n        /+0Hwf/tB8H/7QfB/+0Hwf/tB8H/7QfB/+0Hwf/tB8H/7QfB/+0Hwf/tB8H/7QfB/+0Hwf/tB8H/7QfB\n        /+0Hwf/tB8H/7QfB/+0Hwf/wB8H/pAfB/wYHwf8A7JMpAP6bFQD/nBIS/5wTLP+cEy3/nBMs/5wTLP+c\n        Eyz/nBMs/5wTLP+cEyz/nBMs/5wTLP+cEyz/nBMs/5wTLP+cEyz/nBMs/5wTLf+cEib/nBIGY7OrAALC\n        /xICwv8sAsL/LQLC/ywCwv8sAsL/LALC/ywCwv8sAsL/LALC/ywCwv8sAsL/LALC/ywCwv8sAsL/LALC\n        /ywCwv8sAsL/LALC/ywCwv8sAsL/LALC/y0Cwv8sAsL/FAPC/wAAw/8APUbsACw+/wApPf8SKj7/LSo+\n        /y4qPv8uKj7/Lio+/y4qPv8uKj7/Lio+/y4qPv8uKj7/Lio+/y4qPv8uKj7/Lio+/y4qPv8uKj7/Lik9\n        /ycpPf8GRIOMAFWuQBJVrkAtVa5ALlWuQC5VrkAuVa5ALlWuQC5VrkAuVa5ALlWuQC5VrkAuVa5ALlWu\n        QC5VrkAuVa5ALlWuQC5VrkAuVa5ALlWuQC5VrkAuVa5ALlWuQC5VrkAtVa5AFVSuQQBXrTsANkP0ADZD\n        9AU2Q/SdNkP08TZD9O42Q/TuNkP07jZD9O42Q/TuNkP07jZD9O42Q/TuNkP07jZD9O42Q/TuNkP07jZD\n        9O42Q/TuNkP07jZD9Og2Q/VQ6P8AAVCvTJxQr0zxUK9M7lCvTO5Qr0zuUK9M7lCvTO5Qr0zuUK9M7lCv\n        TO5Qr0zuUK9M7lCvTO5Qr0zuUK9M7lCvTO5Qr0zuUK9M7lCvTO5Qr0zuUK9M7lCvTO5Qr0zxUK9MpFCv\n        TAZQr0wANkP0ADZD9As2Q/TFNkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD\n        9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82QvVtZf8ABVCvTMJQr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9MxVCvTAtQr0wANkP0ADZD9As2Q/TDNkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD\n        9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82QvVsZf8ABVCvTMBQr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9Mw1CvTAtQr0wANkP0ADZD9As2Q/TDNkP0/zZD9P82Q/T/NkP0/zZD\n        9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82QvVsZf8ABVCv\n        TMBQr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9Mw1CvTAtQr0wANkP0ADZD9As2Q/TDNkP0/zZD\n        9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD\n        9P82QvVsZf8ABVCvTMBQr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9Mw1CvTAtQr0wANkP0ADZD\n        9As2Q/TDNkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD\n        9P82Q/T/NkP0/zZD9P82QvVsZf8ABVCvTMBQr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9Mw1Cv\n        TAtQr0wANkP0ADZD9As2Q/TDNkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD\n        9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82QvVsZf8ABVCvTMBQr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9Mw1CvTAtQr0wANkP0ADZD9As2Q/TDNkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD\n        9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82QvVsZf8ABVCvTMBQr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9Mw1CvTAtQr0wANkP0ADZD9As2Q/TDNkP0/zZD9P82Q/T/NkP0/zZD\n        9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82QvVsZf8ABVCv\n        TMBQr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9Mw1CvTAtQr0wANkP0ADZD9As2Q/TDNkP0/zZD\n        9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD\n        9P82QvVsZf8ABVCvTMBQr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9Mw1CvTAtQr0wANkP0ADZD\n        9As2Q/TDNkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD\n        9P82Q/T/NkP0/zZD9P82QvVsZf8ABVCvTMBQr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9Mw1Cv\n        TAtQr0wANkP0ADZD9As2Q/TDNkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD\n        9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82QvVsZf8ABVCvTMBQr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9Mw1CvTAtQr0wANkP0ADZD9As2Q/TENkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD\n        9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82QvVsZf8ABVCvTMBQr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9Mw1CvTAtQr0wANkP0ADZD9Ag2Q/S4NkP0/zZD9P82Q/T/NkP0/zZD\n        9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82QvVsZf8ABVCv\n        TMBQr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9Mw1CvTAtQr0wANkP0ADZD9AA2Q/Q3NkP0fTZD\n        9Jk2Q/S0NkP0zTZD9OA2Q/TvNkP0+jZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD9P82Q/T/NkP0/zZD\n        9P82QvVtZf8ABVCvTMBQr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9Mw1CvTAtQr0wANkP0ADZD\n        9AA2Q/QANkP0ADZD9AA2Q/QGNkP0EDZD9CA2Q/Q0NkP0TDZD9Gc2Q/SENkP0oTZD9Ls2Q/TSNkP05TZD\n        9PM2Q/T8NkP0/zZD9P82QvVnZf8ABVCvTMJQr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9Mw1Cv\n        TAtQr0wAAAAAAAAAAAA2Q/QANkP0ADZD9AA2Q/QANkP0ADZD9AA2Q/QANkP0ADZD9AA2Q/QANkP0ATZD\n        9Ag2Q/QUNkP0JTZD9Do2Q/RTNkP0cDZD9Hs2QvUgaf8AAlCvTJFQr0ztUK9M91CvTP5Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9Mw1CvTAtQr0wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANkP0ADZD\n        9AA2Q/QANkP0ADZD9AA2Q/QANkP0ADZD9AA2Q/QANkP0ADZD9AA2QvUAU703AFCvTA1Qr0wsUK9MQ1Cv\n        TF1Qr0x6UK9Ml1CvTLNQr0zLUK9M31CvTO9Qr0z5UK9M/1CvTP9Qr0z/UK9M/1CvTP9Qr0z/UK9M/1Cv\n        TP9Qr0z/UK9M/1CvTP9Qr0z/UK9Mw1CvTAtQr0wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2Q/QANkP0ADZD9AAYAP8AUK9MAFCv\n        TABQr0wAUK9MAFCvTABQr0wAUK9MAFCvTAVQr0wPUK9MHlCvTDJQr0xLUK9MZlCvTINQr0ygUK9Mu1Cv\n        TNJQr0zlUK9M81CvTPxQr0z/UK9M/1CvTP9Qr0z/UK9MxlCvTAtQr0wAAAAAAAAAAAAAAAAAAAAAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAFCvTABQr0wAUK9MAFCvTABQr0wAUK9MAFCvTABQr0wAUK9MAFCv\n        TABQr0wAUK9MCFCvTBNQr0wkUK9MOVCvTFNQr0xvUK9MjFCvTKhQr0zDUK9MglCvTARQr0wAAAAAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n        AABQr0wAUK9MAFCvTABQr0wAUK9MAFCvTABQr0wAUK9MAFCvTABQr0wAUK9MAFCvTAJQr0wKUK9MBFCv\n        TABQr0wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFCvTABQr0wAUK9MAFCv\n        TABQr0wAUK9MAFCvTABQr0wA//////8AAAD/////AAAAAP///4AAAAAA//+AAAAAAAD/gAAAAAAAAMAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAP+AAAAAAAAA//+AAAAA\n        AAD///+AAAAAAP////8AAAAA//////8AAAA=\n</value>\n  </data>\n</root>"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>.\n"
  },
  {
    "path": "Other.cs",
    "content": "﻿using System.Security.Principal;\n\nnamespace Other_cs\n{\n    public class Other\n    {\n        /// <summary>\n        /// 检查当前程序是否以管理员身份运行\n        /// </summary>\n        /// <returns>当前程序拥有管理员权限返回 true，反之 false</returns>\n        public static bool IsRunAsAdmin()\n        {\n            WindowsIdentity id = WindowsIdentity.GetCurrent();\n            WindowsPrincipal principal = new WindowsPrincipal(id);\n            return principal.IsInRole(WindowsBuiltInRole.Administrator);\n        }\n    }\n    public class Color\n    {\n        [System.Runtime.InteropServices.DllImport(\"user32\")]\n        private static extern int GetDC(int hwnd); // 获取DC\n        [System.Runtime.InteropServices.DllImport(\"user32\")]\n        private static extern int ReleaseDC(int hwnd, int hdc); // 释放DC\n        [System.Runtime.InteropServices.DllImport(\"gdi32\")]\n        private static extern int GetPixel(int hdc, int x, int y);\n        /// <summary>\n        /// 获取屏幕指定像素点HEX颜色值\n        /// </summary>\n        /// <param name=\"x\">X</param>\n        /// <param name=\"y\">Y</param>\n        /// <returns>HEX颜色值，不带 #</returns>\n        public static string Get_ScreenColor(int x, int y)\n        {\n            //Debug.Print(x + \",\" + y); // 把坐标显示到窗口上\n            int Temp_hDc = GetDC(0);\n            int c = GetPixel(Temp_hDc, x, y);\n            int r = (c & 0xFF); // 转换R\n            int g = (c & 0xFF00) / 256; // 转换G\n            int b = (c & 0xFF0000) / 65536; // 转换B\n            //Debug.Print(c.ToString()); // 输出10进制颜色\n            //Debug.Print(r.ToString(\"x\").PadLeft(2, '0') + g.ToString(\"x\").PadLeft(2, '0') + b.ToString(\"x\").PadLeft(2, '0')); // 输出16进制颜色\n            //Debug.Print(r.ToString() + ',' + g.ToString() + ',' + b.ToString()); // 输出RGB\n            ReleaseDC(0, Temp_hDc);\n            return (r.ToString(\"x\").PadLeft(2, '0') + g.ToString(\"x\").PadLeft(2, '0') + b.ToString(\"x\").PadLeft(2, '0'));\n        }\n    }\n}\n"
  },
  {
    "path": "Program.cs",
    "content": "﻿using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing System.Windows.Forms;\n\nnamespace 磁贴美化小工具\n{\n    static class Program\n    {\n        /// <summary>\n        /// 应用程序的主入口点。\n        /// </summary>\n        [STAThread]\n        static void Main(string[] args)\n        {\n            Application.EnableVisualStyles();\n            Application.SetCompatibleTextRenderingDefault(false);\n            Application.Run(new Form(args));\n        }\n    }\n}\n"
  },
  {
    "path": "Properties/Resources.Designer.cs",
    "content": "﻿//------------------------------------------------------------------------------\n// <auto-generated>\n//     此代码由工具生成。\n//     运行时版本:4.0.30319.42000\n//\n//     对此文件的更改可能会导致不正确的行为，并且如果\n//     重新生成代码，这些更改将会丢失。\n// </auto-generated>\n//------------------------------------------------------------------------------\n\nnamespace 磁贴美化小工具.Properties {\n    using System;\n    \n    \n    /// <summary>\n    ///   一个强类型的资源类，用于查找本地化的字符串等。\n    /// </summary>\n    // 此类是由 StronglyTypedResourceBuilder\n    // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。\n    // 若要添加或移除成员，请编辑 .ResX 文件，然后重新运行 ResGen\n    // (以 /str 作为命令选项)，或重新生成 VS 项目。\n    [global::System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Resources.Tools.StronglyTypedResourceBuilder\", \"16.0.0.0\")]\n    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]\n    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]\n    internal class Resources {\n        \n        private static global::System.Resources.ResourceManager resourceMan;\n        \n        private static global::System.Globalization.CultureInfo resourceCulture;\n        \n        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute(\"Microsoft.Performance\", \"CA1811:AvoidUncalledPrivateCode\")]\n        internal Resources() {\n        }\n        \n        /// <summary>\n        ///   返回此类使用的缓存的 ResourceManager 实例。\n        /// </summary>\n        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]\n        internal static global::System.Resources.ResourceManager ResourceManager {\n            get {\n                if (object.ReferenceEquals(resourceMan, null)) {\n                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager(\"磁贴美化小工具.Properties.Resources\", typeof(Resources).Assembly);\n                    resourceMan = temp;\n                }\n                return resourceMan;\n            }\n        }\n        \n        /// <summary>\n        ///   重写当前线程的 CurrentUICulture 属性\n        ///   重写当前线程的 CurrentUICulture 属性。\n        /// </summary>\n        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]\n        internal static global::System.Globalization.CultureInfo Culture {\n            get {\n                return resourceCulture;\n            }\n            set {\n                resourceCulture = value;\n            }\n        }\n        \n        /// <summary>\n        ///   查找类似 &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;\n        ///&lt;configuration&gt;\n        ///  &lt;startup&gt;\n        ///    &lt;supportedRuntime version=&quot;v4.0&quot; sku=&quot;.NETFramework,Version=v4.6&quot;/&gt;\n        ///  &lt;/startup&gt;\n        ///  &lt;appSettings&gt;\n        ///    &lt;add key=&quot;AutoCheckUpdate&quot; value=&quot;false&quot;/&gt;\n        ///    &lt;add key=&quot;EnableWindowsFormsHighDpiAutoResizing&quot; value=&quot;true&quot;/&gt;\n        ///  &lt;/appSettings&gt;\n        ///&lt;/configuration&gt; 的本地化字符串。\n        /// </summary>\n        internal static string AppConfig {\n            get {\n                return ResourceManager.GetString(\"AppConfig\", resourceCulture);\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "Properties/Resources.resx",
    "content": "﻿<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n  <!-- \n    Microsoft ResX Schema \n    \n    Version 2.0\n    \n    The primary goals of this format is to allow a simple XML format \n    that is mostly human readable. The generation and parsing of the \n    various data types are done through the TypeConverter classes \n    associated with the data types.\n    \n    Example:\n    \n    ... ado.net/XML headers & schema ...\n    <resheader name=\"resmimetype\">text/microsoft-resx</resheader>\n    <resheader name=\"version\">2.0</resheader>\n    <resheader name=\"reader\">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>\n    <resheader name=\"writer\">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>\n    <data name=\"Name1\"><value>this is my long string</value><comment>this is a comment</comment></data>\n    <data name=\"Color1\" type=\"System.Drawing.Color, System.Drawing\">Blue</data>\n    <data name=\"Bitmap1\" mimetype=\"application/x-microsoft.net.object.binary.base64\">\n        <value>[base64 mime encoded serialized .NET Framework object]</value>\n    </data>\n    <data name=\"Icon1\" type=\"System.Drawing.Icon, System.Drawing\" mimetype=\"application/x-microsoft.net.object.bytearray.base64\">\n        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>\n        <comment>This is a comment</comment>\n    </data>\n                \n    There are any number of \"resheader\" rows that contain simple \n    name/value pairs.\n    \n    Each data row contains a name, and value. The row also contains a \n    type or mimetype. Type corresponds to a .NET class that support \n    text/value conversion through the TypeConverter architecture. \n    Classes that don't support this are serialized and stored with the \n    mimetype set.\n    \n    The mimetype is used for serialized objects, and tells the \n    ResXResourceReader how to depersist the object. This is currently not \n    extensible. For a given mimetype the value must be set accordingly:\n    \n    Note - application/x-microsoft.net.object.binary.base64 is the format \n    that the ResXResourceWriter will generate, however the reader can \n    read any of the formats listed below.\n    \n    mimetype: application/x-microsoft.net.object.binary.base64\n    value   : The object must be serialized with \n            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter\n            : and then encoded with base64 encoding.\n    \n    mimetype: application/x-microsoft.net.object.soap.base64\n    value   : The object must be serialized with \n            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter\n            : and then encoded with base64 encoding.\n\n    mimetype: application/x-microsoft.net.object.bytearray.base64\n    value   : The object must be serialized into a byte array \n            : using a System.ComponentModel.TypeConverter\n            : and then encoded with base64 encoding.\n    -->\n  <xsd:schema id=\"root\" xmlns=\"\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\">\n    <xsd:import namespace=\"http://www.w3.org/XML/1998/namespace\" />\n    <xsd:element name=\"root\" msdata:IsDataSet=\"true\">\n      <xsd:complexType>\n        <xsd:choice maxOccurs=\"unbounded\">\n          <xsd:element name=\"metadata\">\n            <xsd:complexType>\n              <xsd:sequence>\n                <xsd:element name=\"value\" type=\"xsd:string\" minOccurs=\"0\" />\n              </xsd:sequence>\n              <xsd:attribute name=\"name\" use=\"required\" type=\"xsd:string\" />\n              <xsd:attribute name=\"type\" type=\"xsd:string\" />\n              <xsd:attribute name=\"mimetype\" type=\"xsd:string\" />\n              <xsd:attribute ref=\"xml:space\" />\n            </xsd:complexType>\n          </xsd:element>\n          <xsd:element name=\"assembly\">\n            <xsd:complexType>\n              <xsd:attribute name=\"alias\" type=\"xsd:string\" />\n              <xsd:attribute name=\"name\" type=\"xsd:string\" />\n            </xsd:complexType>\n          </xsd:element>\n          <xsd:element name=\"data\">\n            <xsd:complexType>\n              <xsd:sequence>\n                <xsd:element name=\"value\" type=\"xsd:string\" minOccurs=\"0\" msdata:Ordinal=\"1\" />\n                <xsd:element name=\"comment\" type=\"xsd:string\" minOccurs=\"0\" msdata:Ordinal=\"2\" />\n              </xsd:sequence>\n              <xsd:attribute name=\"name\" type=\"xsd:string\" use=\"required\" msdata:Ordinal=\"1\" />\n              <xsd:attribute name=\"type\" type=\"xsd:string\" msdata:Ordinal=\"3\" />\n              <xsd:attribute name=\"mimetype\" type=\"xsd:string\" msdata:Ordinal=\"4\" />\n              <xsd:attribute ref=\"xml:space\" />\n            </xsd:complexType>\n          </xsd:element>\n          <xsd:element name=\"resheader\">\n            <xsd:complexType>\n              <xsd:sequence>\n                <xsd:element name=\"value\" type=\"xsd:string\" minOccurs=\"0\" msdata:Ordinal=\"1\" />\n              </xsd:sequence>\n              <xsd:attribute name=\"name\" type=\"xsd:string\" use=\"required\" />\n            </xsd:complexType>\n          </xsd:element>\n        </xsd:choice>\n      </xsd:complexType>\n    </xsd:element>\n  </xsd:schema>\n  <resheader name=\"resmimetype\">\n    <value>text/microsoft-resx</value>\n  </resheader>\n  <resheader name=\"version\">\n    <value>2.0</value>\n  </resheader>\n  <resheader name=\"reader\">\n    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\n  </resheader>\n  <resheader name=\"writer\">\n    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\n  </resheader>\n  <data name=\"AppConfig\" xml:space=\"preserve\">\n    <value>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\n&lt;configuration&gt;\n  &lt;startup&gt;\n    &lt;supportedRuntime version=\"v4.0\" sku=\".NETFramework,Version=v4.6\"/&gt;\n  &lt;/startup&gt;\n  &lt;appSettings&gt;\n    &lt;add key=\"AutoCheckUpdate\" value=\"false\"/&gt;\n    &lt;add key=\"EnableWindowsFormsHighDpiAutoResizing\" value=\"true\"/&gt;\n  &lt;/appSettings&gt;\n&lt;/configuration&gt;</value>\n  </data>\n</root>"
  },
  {
    "path": "Properties/Settings.Designer.cs",
    "content": "﻿//------------------------------------------------------------------------------\n// <auto-generated>\n//     此代码由工具生成。\n//     运行时版本:4.0.30319.42000\n//\n//     对此文件的更改可能会导致不正确的行为，并且如果\n//     重新生成代码，这些更改将会丢失。\n// </auto-generated>\n//------------------------------------------------------------------------------\n\nnamespace 磁贴美化小工具.Properties {\n    \n    \n    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]\n    [global::System.CodeDom.Compiler.GeneratedCodeAttribute(\"Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator\", \"16.7.0.0\")]\n    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {\n        \n        private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));\n        \n        public static Settings Default {\n            get {\n                return defaultInstance;\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "Properties/Settings.settings",
    "content": "﻿<?xml version='1.0' encoding='utf-8'?>\n<SettingsFile xmlns=\"http://schemas.microsoft.com/VisualStudio/2004/01/settings\" CurrentProfile=\"(Default)\">\n  <Profiles>\n    <Profile Name=\"(Default)\" />\n  </Profiles>\n  <Settings />\n</SettingsFile>\n"
  },
  {
    "path": "README.md",
    "content": "# XIU2/TileTool\n\n[![Release Version](https://img.shields.io/github/v/release/XIU2/TileTool.svg?style=flat-square&label=Release&color=1784ff)](https://github.com/XIU2/TileTool/releases/latest)\n[![GitHub license](https://img.shields.io/github/license/XIU2/TileTool.svg?style=flat-square&label=License&color=3cb371&logo=github)](https://github.com/XIU2/TileTool/)\n[![GitHub Star](https://img.shields.io/github/stars/XIU2/TileTool.svg?style=flat-square&label=Star&color=3cb371&logo=github)](https://github.com/XIU2/TileTool/)\n[![GitHub Fork](https://img.shields.io/github/forks/XIU2/TileTool.svg?style=flat-square&label=Fork&color=3cb371&logo=github)](https://github.com/XIU2/TileTool/)\n\n**Windows10 磁贴美化小工具**\n\n最近体验了下 Win10 2004 的新版磁贴（开启方法见网盘），统一背景颜色为主题色、磁贴半透明，感觉还不错。  \n于是我闲的没事用 C# 重写并开源了磁贴美化小工具（虽然也没人看）~ **如果觉得好用请点个⭐鼓励一下下~**  \n\n- 详细介绍、使用说明：https://zhuanlan.zhihu.com/p/79630122  \n- 磁贴辅助小工具开源：https://github.com/XIU2/TileAssistTool  \n\n****\n\n## 软件界面\n\n![软件界面](https://github.com/XIU2/TileTool/blob/master/img/01.png)  \n> 界面折腾半天发现还是好丑，我可能真的没有设计天赋 -.-...  \n\n![右键菜单](https://github.com/XIU2/TileTool/blob/master/img/02.png)\n> 右键菜单示例\n\n****\n\n## 效果示例\n\n![](https://github.com/XIU2/TileTool/blob/master/img/09.png)  \n![](https://github.com/XIU2/TileTool/blob/master/img/10.png)  \n![](https://github.com/XIU2/TileTool/blob/master/img/03.png)  \n![](https://github.com/XIU2/TileTool/blob/master/img/04.png)  \n![](https://github.com/XIU2/TileTool/blob/master/img/05.png)  \n![](https://github.com/XIU2/TileTool/blob/master/img/06.png)  \n![](https://github.com/XIU2/TileTool/blob/master/img/07.png)  \n![](https://github.com/XIU2/TileTool/blob/master/img/08.png)  \n\n> 磁贴图标包(400+)我放在蓝奏云网盘中了，需要自取。  \n\n****\n\n## 下载地址\n\n* 蓝奏云 ：[https://pan.lanpw.com/b0sp46eh](https://pan.lanpw.com/b0sp46eh)\n* Github：[https://github.com/XIU2/TileTool/releases](https://github.com/XIU2/TileTool/releases)\n\n****\n\n## 使用说明\n\n> 使用前请先鼠标指向各个组件查看 **相关提示说明！**  \n\n* 方式一：拖放 **应用程序、快捷方式、开始菜单磁贴(非UWP)** 到软件内，即可编辑磁贴样式  \n* 方式二：右键 **应用程序、快捷方式** 选择 [自定义并固定到\"开始\"屏幕]，即可编辑磁贴样式  \n—— 方式二需要勾选软件中的 **[添加右键菜单]** 。\n\n> **注意：** C:\\Program Files 等权限目录下的程序，请 **[以管理员身份运行]** 本软件操作！  \n> ——  \n> 如果你已经以普通用户权限编辑磁贴，那么是无效的，需要删除 **[C:\\Users\\用户名\\AppData\\Local\\VirtualStore]** 文件夹下的文件，然后 **[以管理员身份运行]** 本软件时编辑磁贴样式才能生效。  \n\n> **另外，** 在程序路径、磁贴图片、磁贴图标输入框中按下 **[退格键(BackSpace)]** 即可清除内容。\n\n### 我已经添加并排版好磁贴了，我还要重新添加吗？\n\n不，你只需要：鼠标拖拽开始菜单的 [磁贴] 到软件中就可以自定义了。  \n\n****\n\n## 其他说明\n\n* 图片最佳尺寸：100x100(像素)  \n* 图标最佳尺寸：32x32(像素，仅ICO图标)  \n\n### 运行提示 .NET 错误？\n\n本软件最低依赖是 .NET Framework 4.6，报错说明你系统的该依赖版本低于 4.6（Win10 默认满足该依赖），请安装更高版本的 [.NET Framework](https://dotnet.microsoft.com/download/dotnet-framework) ！\n\n****\n\n### 拖入图片文件没反应？\n\n如果可以正常拖入程序和快捷方式文件（.exe / .lnk），却发现**无法拖入图片文件**（.png / .jpg），那可能实际上图片文件已经拖入软件，但是因为**权限问题**导致软件无法读入图片文件，请**复制图片文件到其他目录下**再试试行不行。\n\n****\n\n## 赞赏支持\n\n![微信赞赏](https://github.com/XIU2/XIU2/blob/master/img/zs-01.png)![支付宝赞赏](https://github.com/XIU2/XIU2/blob/master/img/zs-02.png)\n\n****\n\n## License\n\nThe GPL-3.0 License."
  },
  {
    "path": "Registry.cs",
    "content": "﻿using System;\nusing System.Diagnostics;\nusing Microsoft.Win32;\n\nnamespace Registry_cs\n{\n    public class Registry_RightClickMenu\n    {\n        /// <summary>\n        /// 检查是否添加右键菜单\n        /// </summary>\n        /// <param name=\"Name\">名称</param>\n        /// <param name=\"Extension\">文件后缀类型，为空是指所有文件类型，例：exe</param>\n        /// <returns>存在返回 true，反之 false</returns>\n        public static bool Check(string Name, string Extension = \"\")\n        {\n            if (Extension == \"\")\n            {\n                if (Registry.GetValue(@\"HKEY_CLASSES_ROOT\\*\\shell\\\" + Name + @\"\\command\\\", \"\", null) == null)\n                {\n                    return false;\n                }\n                return true;\n            }\n            else\n            {\n                if (Registry.GetValue(@\"HKEY_CLASSES_ROOT\\\" + Extension + @\"file\\shell\\\" + Name + @\"\\command\\\", \"\", null) == null)\n                {\n                    return false;\n                }\n                return true;\n            }\n        }\n        \n        /// <summary>\n        /// 添加右键菜单\n        /// </summary>\n        /// <param name=\"Name\">名称</param>\n        /// <param name=\"Path\">程序路径</param>\n        /// <param name=\"NoIcon\">不添加图标，默认为 true（即不添加）</param>\n        /// <param name=\"Icon\">图标路径，为空时使用程序路径</param>\n        /// <param name=\"Extension\">文件后缀类型，为空是指所有文件类型，例：exe</param>\n        /// <param name=\"command\">命令行，可空</param>\n        /// <returns>添加成功返回 true，反之 false</returns>\n        public static bool Add(string Name, string Path, bool NoIcon = true, string Icon = \"\", string Extension = \"\", string command = \"\")\n        {\n            if (command != \"\") // 如果命令行不等于空，则尾部追加空格\n            {\n                command += \" \";\n            }\n            Name = Name.Replace(@\"\\\", \"\"); // 删除名称中的反斜杠：\\\n            if (Extension == \"\")\n            {\n                // 后缀为空，则添加至 * 注册表（全部文件）\n                RegistryKey Temp_Software = Registry.ClassesRoot.CreateSubKey(@\"*\\shell\\\" + Name, true); // 创建项\n                RegistryKey Temp_Command = Registry.ClassesRoot.CreateSubKey(@\"*\\shell\\\" + Name + @\"\\command\"); // 创建项\n                Temp_Command.SetValue(\"\", '\"' + Path + '\"' + command + \" \" + '\"' + \"%1\" + '\"'); // 创建 command 默认值\n                Temp_Command.Close(); // 关闭 Name\\command\n                if (NoIcon == false) // 是否添加图标，默认否\n                {\n                    if (Icon == \"\")\n                    {\n                        Temp_Software.SetValue(\"Icon\", '\"' + Path + '\"'); // 为空时，则使用程序路径\n                    }\n                    else\n                    {\n                        Temp_Software.SetValue(\"Icon\", '\"' + Icon + '\"'); // 不为空，则使用图标路径\n                    }\n                    Temp_Software.Close();// 关闭 Name\n                }\n                if (Check(Name, Extension))\n                {\n                    return true; // 如果注册表存在，则返回真\n                }\n                else\n                {\n                    return false; // 如果注册表不存在，则返回假\n                }\n            }\n            else\n            {\n                // 后缀不为空，则添加至 后缀 注册表（如 exe 文件）\n                RegistryKey Temp_Software = Registry.ClassesRoot.CreateSubKey(Extension + @\"file\\shell\\\" + Name, true); // 创建项\n                RegistryKey Temp_Command = Registry.ClassesRoot.CreateSubKey(Extension + @\"file\\shell\\\" + Name + @\"\\command\"); // 创建项\n                Temp_Command.SetValue(\"\", '\"' + Path + '\"' + command + \" \" + '\"' + \"%1\" + '\"'); // 创建 command 默认值\n                Temp_Command.Close(); // 关闭 Name\\command\n                if (NoIcon == false) // 是否添加图标，默认否\n                {\n                    if (Icon == \"\")\n                    {\n                        Temp_Software.SetValue(\"Icon\", '\"' + Path + '\"'); // 为空时，则使用程序路径\n                    }\n                    else\n                    {\n                        Temp_Software.SetValue(\"Icon\", '\"' + Icon + '\"'); // 不为空，则使用图标路径\n                    }\n                    Temp_Software.Close();// 关闭 Name\n                }\n                if (Check(Name, Extension))\n                {\n                    return true; // 如果注册表存在，则返回真\n                }\n                else\n                {\n                    return false; // 如果注册表不存在，则返回假\n                }\n            }\n        }\n        \n        /// <summary>\n        /// 删除右键菜单\n        /// </summary>\n        /// <param name=\"Name\">名称</param>\n        /// <param name=\"Extension\">文件后缀类型，为空是指所有文件类型，例：exe</param>\n        /// <returns>删除成功返回 true，反之 false</returns>\n        public static bool Del(string Name, string Extension = \"\") // 删除右键菜单，返回：真/假，参数：名称、后缀\n        {\n            if (Check(Name, Extension))\n            {\n                RegistryKey Temp_Key = Registry.ClassesRoot;\n                if (Extension == \"\")\n                {\n                    Temp_Key.DeleteSubKey(@\"*\\shell\\\" + Name + @\"\\command\", true);\n                    Temp_Key.DeleteSubKey(@\"*\\shell\\\" + Name, true);\n                    Temp_Key.Close();\n                    if (Check(Name, Extension))\n                    {\n                        return false;\n                    }\n                    else\n                    {\n                        return true;\n                    }\n                }\n                Temp_Key.DeleteSubKey(Extension + @\"file\\shell\\\" + Name + @\"\\command\", true);\n                Temp_Key.DeleteSubKey(Extension + @\"file\\shell\\\" +  Name, true);\n                Temp_Key.Close();\n                if (Check(Name, Extension))\n                {\n                    return false;\n                } \n            }\n            return true;\n        }\n    }\n    public class Registry_SystemColor\n    {\n        /// <summary>\n        /// 获取磁贴主题色\n        /// </summary>\n        /// <returns>HEX颜色值（不带#），如果系统模式为浅色，则直接返回白色</returns>\n        public static string Get_SystemColor()\n        {\n            // 如果系统是浅色模式，则磁贴背景颜色强制为白色 #EFEFEF\n            if (Get_SystemUsesLightTheme() == true)\n            {\n                return \"EFEFEF\";\n            }\n            // 如果没有勾选(开启)[开始菜单、任务栏、操作中心]，则磁贴背景颜色强制为黑色 #353535\n            else if (Get_SystemColorPrevalence() == false)\n            {\n                return \"353535\";\n            }\n            return ((int)Registry.GetValue(@\"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\DWM\", \"ColorizationColor\", 1052688)).ToString(\"x8\").Substring(2);\n        }\n        \n        /// <summary>\n        /// 获取系统主题模式（浅色/深色）\n        /// </summary>\n        /// <returns>浅色模式返回 true，深色模式返回 false</returns>\n        public static bool Get_SystemUsesLightTheme()\n        {\n            /*if (Convert.ToInt32(Registry_SystemVersion.Get_ReleaseId()) < 1903)\n            {\n                return false;\n            }*/\n            // 浅色模式下开始菜单磁贴背景颜色强制为白色（浅色为1，深色为 0）\n            if ((int)Registry.GetValue(@\"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize\", \"SystemUsesLightTheme\", 0) == 1)\n            {\n                return true;\n            }\n            return false;\n        }\n        \n        /// <summary>\n        /// 获取开始菜单(磁贴)、任务栏、操作中心等是否使用主题色\n        /// </summary>\n        /// <returns>勾选(开启)返回 true，未勾选(关闭)返回 false</returns>\n        public static bool Get_SystemColorPrevalence()\n        {\n            if (Get_SystemUsesLightTheme() == true)\n            {\n                return false;\n            }\n            // 判断是否勾选(开启)[开始菜单、任务栏、操作中心]，勾选后磁贴背景颜色为主题色（开启为1，关闭为 0）\n            if ((int)Registry.GetValue(@\"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize\", \"ColorPrevalence\", 0) == 0)\n            {\n                return false;\n            }\n            return true;\n        }\n        \n        /// <summary>\n        /// 获取系统是否开启透明效果\n        /// </summary>\n        /// <returns>开启返回 true，关闭返回 false</returns>\n        public static bool Get_EnableTransparency()\n        {\n            // 判断是否勾选(开启)[透明效果]（开启为1，关闭为 0）\n            if ((int)Registry.GetValue(@\"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize\", \"EnableTransparency\", 0) == 0)\n            {\n                return false;\n            }\n            return true;\n        }\n    }\n    public class Registry_SystemVersion\n    {\n        /// <summary>\n        /// 获取系统显示版本（例：2004）\n        /// </summary>\n        /// <returns>返回系统显示版本（例：2004）或 null</returns>\n        public static string Get_DisplayVersion()\n        {\n            return (string)Registry.GetValue(@\"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\", \"DisplayVersion\", null);\n        }\n        \n        /// <summary>\n        /// 获取系统发行ID（例：2004）\n        /// </summary>\n        /// <returns>返回系统发行ID（例：2004）或 null</returns>\n        public static string Get_ReleaseId()\n        {\n            return (string)Registry.GetValue(@\"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\", \"ReleaseId\", null);\n        }\n        \n        /// <summary>\n        /// 获取系统当前版本号（例：19041）\n        /// </summary>\n        /// <returns>返回系统当前版本号（例：19041）或 null</returns>\n        public static string Get_CurrentBuild()\n        {\n            return (string)Registry.GetValue(@\"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\", \"CurrentBuild\", null);\n        }\n        \n        /// <summary>\n        /// 获取系统当前内部版本号（例：19041）\n        /// </summary>\n        /// <returns>返回系统当前内部版本号（例：19041）或 null</returns>\n        public static string Get_CurrentBuildNumber()\n        {\n            return (string)Registry.GetValue(@\"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\", \"CurrentBuildNumber\", null);\n        }\n    }\n    public class Registry_Other\n    {\n        /// <summary>\n        /// 获取系统是否开启 2004 新版磁贴样式\n        /// </summary>\n        /// <returns>开启返回 true 关闭返回 false</returns>\n        public static bool Get_NewTileState()\n        {\n            if (Convert.ToInt32(Registry_SystemVersion.Get_ReleaseId()) < 2004)\n            {\n                return false;\n            }\n            //Debug.Print(Registry.GetValue(@\"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\FeatureManagement\\Overrides\\0\\2093230218\", \"EnabledState\", null).ToString());\n            if (Registry.GetValue(@\"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\FeatureManagement\\Overrides\\0\\2093230218\", \"EnabledState\", null) == null)\n            {\n                return false;\n            }\n            return true;\n        }\n    }\n}\n"
  },
  {
    "path": "WebClient.cs",
    "content": "﻿using System;\nusing System.IO;\nusing System.Net;\n\nnamespace WebClient_cs\n{\n    public class GetHTTP\n    {\n        /// <summary>\n        /// 获取HTTP\n        /// </summary>\n        /// <param name=\"URL\">URL</param>\n        /// <param name=\"TimeOut\">超时时间，默认：60000 毫秒，单位：毫秒</param>\n        /// <param name=\"Encoding\">编码，默认：utf-8</param>\n        /// <returns>成功返回网页内容，失败返回 null</returns>\n        public static string Get_HTTP(string Url, int TimeOut, string Encoding = \"utf-8\")\n        {\n            NewWebClient myWebClient = new NewWebClient(TimeOut);\n            Stream myStream = myWebClient.OpenRead(Url);\n            StreamReader sr = new StreamReader(myStream, System.Text.Encoding.GetEncoding(Encoding));\n            string strHTML = sr.ReadToEnd();\n            myStream.Close();\n            return strHTML;\n        }\n    }\n    // 带超时时间的 WebClient\n    public class NewWebClient : WebClient\n    {\n        private int _timeout;\n\n        /// <summary>\n        /// 超时时间(毫秒)\n        /// </summary>\n        public int Timeout\n        {\n            get\n            {\n                return _timeout;\n            }\n            set\n            {\n                _timeout = value;\n            }\n        }\n\n        public NewWebClient()\n        {\n            this._timeout = 60000;\n        }\n\n        public NewWebClient(int timeout)\n        {\n            this._timeout = timeout;\n        }\n\n        protected override WebRequest GetWebRequest(Uri address)\n        {\n            var result = base.GetWebRequest(address);\n            result.Timeout = this._timeout;\n            return result;\n        }\n    }\n}\n"
  },
  {
    "path": "app.manifest",
    "content": "﻿<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<assembly manifestVersion=\"1.0\" xmlns=\"urn:schemas-microsoft-com:asm.v1\">\n  <assemblyIdentity version=\"1.0.0.0\" name=\"MyApplication.app\"/>\n  <trustInfo xmlns=\"urn:schemas-microsoft-com:asm.v2\">\n    <security>\n      <requestedPrivileges xmlns=\"urn:schemas-microsoft-com:asm.v3\">\n        <!-- UAC 清单选项\n             如果想要更改 Windows 用户帐户控制级别，请使用\n             以下节点之一替换 requestedExecutionLevel 节点。n\n        <requestedExecutionLevel  level=\"asInvoker\" uiAccess=\"false\" />\n        <requestedExecutionLevel  level=\"requireAdministrator\" uiAccess=\"false\" />\n        <requestedExecutionLevel  level=\"highestAvailable\" uiAccess=\"false\" />\n\n            指定 requestedExecutionLevel 元素将禁用文件和注册表虚拟化。\n            如果你的应用程序需要此虚拟化来实现向后兼容性，则删除此\n            元素。\n        -->\n        <requestedExecutionLevel level=\"asInvoker\" uiAccess=\"false\" />\n      </requestedPrivileges>\n    </security>\n  </trustInfo>\n\n  <compatibility xmlns=\"urn:schemas-microsoft-com:compatibility.v1\">\n    <application>\n      <!-- 设计此应用程序与其一起工作且已针对此应用程序进行测试的\n           Windows 版本的列表。取消评论适当的元素，\n           Windows 将自动选择最兼容的环境。 -->\n\n      <!-- Windows Vista -->\n      <!--<supportedOS Id=\"{e2011457-1546-43c5-a5fe-008deee3d3f0}\" />-->\n\n      <!-- Windows 7 -->\n      <!--<supportedOS Id=\"{35138b9a-5d96-4fbd-8e2d-a2440225f93a}\" />-->\n\n      <!-- Windows 8 -->\n      <!--<supportedOS Id=\"{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}\" />-->\n\n      <!-- Windows 8.1 -->\n      <!--<supportedOS Id=\"{1f676c76-80e1-4239-95bb-83d0f6d0da78}\" />-->\n\n      <!-- Windows 10 -->\n      <supportedOS Id=\"{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}\" />\n\n    </application>\n  </compatibility>\n\n  <!-- 指示该应用程序可以感知 DPI 且 Windows 在 DPI 较高时将不会对其进行\n       自动缩放。Windows Presentation Foundation (WPF)应用程序自动感知 DPI，无需\n       选择加入。选择加入此设置的 Windows 窗体应用程序(目标设定为 .NET Framework 4.6 )还应\n       在其 app.config 中将 \"EnableWindowsFormsHighDpiAutoResizing\" 设置设置为 \"true\"。-->\n\n  <application xmlns=\"urn:schemas-microsoft-com:asm.v3\">\n    <windowsSettings>\n      <dpiAware xmlns=\"http://schemas.microsoft.com/SMI/2005/WindowsSettings\">true</dpiAware>\n    </windowsSettings>\n  </application>\n\n\n  <!-- 启用 Windows 公共控件和对话框的主题(Windows XP 和更高版本) -->\n  <!--\n  <dependency>\n    <dependentAssembly>\n      <assemblyIdentity\n          type=\"win32\"\n          name=\"Microsoft.Windows.Common-Controls\"\n          version=\"6.0.0.0\"\n          processorArchitecture=\"*\"\n          publicKeyToken=\"6595b64144ccf1df\"\n          language=\"*\"\n        />\n    </dependentAssembly>\n  </dependency>\n  -->\n\n</assembly>\n"
  },
  {
    "path": "磁贴美化小工具.csproj",
    "content": "﻿<Project Sdk=\"Microsoft.NET.Sdk.WindowsDesktop\">\n\n  <PropertyGroup>\n    <OutputType>WinExe</OutputType>\n    <TargetFrameworks>net46;netcoreapp3.1</TargetFrameworks>\n    <PlatformTarget>x64</PlatformTarget>\n    <LangVersion>latest</LangVersion>\n    <UseWindowsForms>true</UseWindowsForms>\n    <Version>4.1.1</Version>\n    <Company>XIU2</Company>\n    <Copyright>Copyright © 2020 XIU2. All Rights Reserved.</Copyright>\n    <ApplicationManifest>app.manifest</ApplicationManifest>\n    <ApplicationIcon>Icon.ico</ApplicationIcon>\n    <StartupObject>磁贴美化小工具.Program</StartupObject>\n  </PropertyGroup>\n\n  <PropertyGroup Condition=\"'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net46|AnyCPU'\">\n    <OutputPath>D:\\VS\\Program\\磁贴美化小工具\\Release\\</OutputPath>\n  </PropertyGroup>\n\n  <PropertyGroup Condition=\"'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net46|AnyCPU'\">\n    <OutputPath>D:\\VS\\Program\\磁贴美化小工具\\Debug\\</OutputPath>\n  </PropertyGroup>\n\n  <ItemGroup Condition=\" '$(TargetFramework)' == 'net46' \">\n    <Reference Include=\"System.Configuration\" />\n    <Reference Include=\"Microsoft.CSharp\" />\n  </ItemGroup>\n\n  <ItemGroup>\n    <COMReference Include=\"IWshRuntimeLibrary\">\n      <Guid>{F935DC20-1CF0-11D0-ADB9-00C04FD58A0B}</Guid>\n      <VersionMajor>1</VersionMajor>\n      <VersionMinor>0</VersionMinor>\n      <Lcid>0</Lcid>\n      <WrapperTool>tlbimp</WrapperTool>\n      <Isolated>False</Isolated>\n      <EmbedInteropTypes>True</EmbedInteropTypes>\n    </COMReference>\n  </ItemGroup>\n\n  <ItemGroup>\n    <Content Include=\"*.dll\">\n      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>\n    </Content>\n  </ItemGroup>\n\n  <ItemGroup>\n    <EmbeddedResource Update=\"Properties\\Resources.resx\" Generator=\"ResXFileCodeGenerator\" LastGenOutput=\"Resources.Designer.cs\" />\n    <Compile Update=\"Properties\\Resources.Designer.cs\" AutoGen=\"True\" DependentUpon=\"Resources.resx\" DesignTime=\"True\" />\n    <None Update=\"Properties\\Settings.settings\" Generator=\"SettingsSingleFileGenerator\" LastGenOutput=\"Settings.Designer.cs\" />\n    <Compile Update=\"Properties\\Settings.Designer.cs\" AutoGen=\"True\" DependentUpon=\"Settings.settings\" />\n  </ItemGroup>\n\n</Project>"
  },
  {
    "path": "磁贴美化小工具.sln",
    "content": "﻿\nMicrosoft Visual Studio Solution File, Format Version 12.00\n# Visual Studio Version 16\nVisualStudioVersion = 16.0.30503.244\nMinimumVisualStudioVersion = 10.0.40219.1\nProject(\"{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}\") = \"磁贴美化小工具\", \"磁贴美化小工具.csproj\", \"{A8851F5E-CBB5-4466-BD72-D95C9BEA4DEA}\"\nEndProject\nGlobal\n\tGlobalSection(SolutionConfigurationPlatforms) = preSolution\n\t\tDebug|Any CPU = Debug|Any CPU\n\t\tDebug|x64 = Debug|x64\n\t\tRelease|Any CPU = Release|Any CPU\n\t\tRelease|x64 = Release|x64\n\tEndGlobalSection\n\tGlobalSection(ProjectConfigurationPlatforms) = postSolution\n\t\t{A8851F5E-CBB5-4466-BD72-D95C9BEA4DEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{A8851F5E-CBB5-4466-BD72-D95C9BEA4DEA}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{A8851F5E-CBB5-4466-BD72-D95C9BEA4DEA}.Debug|x64.ActiveCfg = Debug|x64\n\t\t{A8851F5E-CBB5-4466-BD72-D95C9BEA4DEA}.Debug|x64.Build.0 = Debug|x64\n\t\t{A8851F5E-CBB5-4466-BD72-D95C9BEA4DEA}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{A8851F5E-CBB5-4466-BD72-D95C9BEA4DEA}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{A8851F5E-CBB5-4466-BD72-D95C9BEA4DEA}.Release|x64.ActiveCfg = Release|x64\n\t\t{A8851F5E-CBB5-4466-BD72-D95C9BEA4DEA}.Release|x64.Build.0 = Release|x64\n\tEndGlobalSection\n\tGlobalSection(SolutionProperties) = preSolution\n\t\tHideSolutionNode = FALSE\n\tEndGlobalSection\n\tGlobalSection(ExtensibilityGlobals) = postSolution\n\t\tSolutionGuid = {A3BF980B-2B57-4775-9CC9-75858109A160}\n\tEndGlobalSection\nEndGlobal\n"
  }
]