[
  {
    "path": ".gitattributes",
    "content": "# Auto detect text files and perform LF normalization\n* text=auto\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.md",
    "content": "---\nname: Bug report\nabout: Create a report to help us improve\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Describe the bug**\nA clear and concise description of what the bug is.\n\n**To Reproduce**\nSteps to reproduce the behavior:\n1. Go to '...'\n2. Click on '....'\n3. Scroll down to '....'\n4. See error\n\n**Expected behavior**\nA clear and concise description of what you expected to happen.\n\n**Screenshots**\nIf applicable, add screenshots to help explain your problem.\n\n**PC Information (please complete the following information):**\n - CPU Arch: [e.g. x86/x64/ARM64]\n - Windows Version: [e.g. Windows 10 10.0.10240.0]\n - Original SKU: [e.g. Home/Pro/Education etc.]\n - Target SKU: [e.g. Home/Pro/Education etc.]\n - Version [e.g. 2.6.2.0]\n\n**Additional context**\nAdd any other context about the problem here.\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/main/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# Mono auto generated files\nmono_crash.*\n\n# Build results\n[Dd]ebug/\n[Dd]ebugPublic/\n[Rr]elease/\n[Rr]eleases/\nx64/\nx86/\n[Ww][Ii][Nn]32/\n[Aa][Rr][Mm]/\n[Aa][Rr][Mm]64/\nbld/\n[Bb]in/\n[Oo]bj/\n[Ll]og/\n[Ll]ogs/\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\nnunit-*.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# ASP.NET Scaffolding\nScaffoldingReadMe.txt\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*.tlog\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# 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# Coverlet is a free, cross platform Code Coverage Tool\ncoverage*.json\ncoverage*.xml\ncoverage*.info\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# NuGet Symbol Packages\n*.snupkg\n# The packages folder can be ignored because of Package Restore\n**/[Pp]ackages/*\n# except build/, which is used as an MSBuild target.\n!**/[Pp]ackages/build/\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*.appxbundle\n*.appxupload\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*- [Bb]ackup.rdl\n*- [Bb]ackup ([0-9]).rdl\n*- [Bb]ackup ([0-9][0-9]).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 6 auto-generated project file (contains which files were open etc.)\n*.vbp\n\n# Visual Studio 6 workspace and project file (working project files containing files to include in project)\n*.dsw\n*.dsp\n\n# Visual Studio 6 technical files\n*.ncb\n*.aps\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# 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# Visual Studio History (VSHistory) files\n.vshistory/\n\n# BeatPulse healthcheck temp database\nhealthchecksdb\n\n# Backup folder for Package Reference Convert tool in Visual Studio 2017\nMigrationBackup/\n\n# Ionide (cross platform F# VS Code tools) working folder\n.ionide/\n\n# Fody - auto-generated XML schema\nFodyWeavers.xsd\n\n# VS Code files for those working on multiple tools\n.vscode/*\n!.vscode/settings.json\n!.vscode/tasks.json\n!.vscode/launch.json\n!.vscode/extensions.json\n*.code-workspace\n\n# Local History for Visual Studio Code\n.history/\n\n# Windows Installer files from build outputs\n*.cab\n*.msi\n*.msix\n*.msm\n*.msp\n\n# JetBrains Rider\n*.sln.iml"
  },
  {
    "path": "CDNDirectRun.ps1",
    "content": "$isAdmin = (New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)\n\nif (-not $isAdmin) {\n    Start-Process powershell -ArgumentList \"irm https://fastly.jsdelivr.net/gh/TGSAN/CMWTAT_Digital_Edition/CDNDirectRun.ps1 | iex\" -Verb RunAs\n    Exit\n}\n\n# $exePath = \".\\CMWTAT_DIGITAL\\bin\\Debug\\CMWTAT_DIGITAL.exe\"\n# $exeBytes = [System.IO.File]::ReadAllBytes($exePath)\n# $bytes = $exeBytes\n\n$bytes = (Invoke-WebRequest \"https://release-download.static.cloudmoe.com/TGSAN/CMWTAT_Digital_Edition/releases/download/2.7.2.0/CMWTAT_Digital_Release_2_7_2_0.exe\").Content\n$assembly = [System.Reflection.Assembly]::Load($bytes)\n$entryPointMethod = $assembly.EntryPoint\n$entryPointMethod.Invoke($null, @())\n"
  },
  {
    "path": "CMWTAT_DIGITAL/App.xaml",
    "content": "﻿<Application x:Class=\"CMWTAT_DIGITAL.App\"\n             xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n             xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"\n             xmlns:local=\"clr-namespace:CMWTAT_DIGITAL\"\n             StartupUri=\"MainWindow.xaml\"\n             >\n    <Application.Resources>\n        <ResourceDictionary>\n            <ResourceDictionary.MergedDictionaries>\n                <ResourceDictionary Source=\"pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Dark.xaml\" />\n                <ResourceDictionary Source=\"pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml\" />\n                <ResourceDictionary Source=\"pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.Pink.xaml\" />\n                <ResourceDictionary Source=\"pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Lime.xaml\" />\n                <ResourceDictionary Source=\"Lang/en.xaml\"/>\n            </ResourceDictionary.MergedDictionaries>\n        </ResourceDictionary>\n    </Application.Resources>\n</Application>\n"
  },
  {
    "path": "CMWTAT_DIGITAL/App.xaml.cs",
    "content": "﻿using System;\nusing System.Windows;\n\nnamespace CMWTAT_DIGITAL\n{\n    /// <summary>\n    /// App.xaml 的交互逻辑\n    /// </summary>\n    public partial class App : Application\n    {\n        public static bool autoact = false;\n        public static bool hiderun = false;\n        public static bool expact = false;\n        public static bool log2file = false;\n        public static bool showhelp = false;\n\n        protected override void OnStartup(StartupEventArgs e)\n        {\n            foreach (string arg in e.Args)\n            {\n                Console.WriteLine(\"arg: \" + arg);\n                if (arg == \"-a\" || arg == \"--auto\")\n                {\n                    Console.WriteLine(\"AUTO: True\");\n                    autoact = true;\n                }\n                if (arg == \"-h\" || arg == \"--hide\")\n                {\n                    Console.WriteLine(\"HIDE: True\");\n                    hiderun = true;\n                }\n                if (arg == \"-e\" || arg == \"--expact\")\n                {\n                    Console.WriteLine(\"EXPACT: True\");\n                    expact = true;\n                }\n                if (arg == \"-l\" || arg == \"--log\")\n                {\n                    Console.WriteLine(\"LOG: True\");\n                    log2file = true;\n                }\n                if (arg == \"-?\" || arg == \"--help\")\n                {\n                    Console.WriteLine(\"SHOWHELP: True\");\n                    showhelp = true;\n                }\n            }\n            base.OnStartup(e);\n        }\n    }\n}\n"
  },
  {
    "path": "CMWTAT_DIGITAL/CMWTAT_DIGITAL.csproj",
    "content": "﻿<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Project ToolsVersion=\"15.0\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">\n  <Import Project=\"..\\packages\\Costura.Fody.4.1.0\\build\\Costura.Fody.props\" Condition=\"Exists('..\\packages\\Costura.Fody.4.1.0\\build\\Costura.Fody.props')\" />\n  <Import Project=\"$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props\" Condition=\"Exists('$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props')\" />\n  <PropertyGroup>\n    <TargetPlatformVersion>10.0.10240.0</TargetPlatformVersion>\n    <Configuration Condition=\" '$(Configuration)' == '' \">Debug</Configuration>\n    <Platform Condition=\" '$(Platform)' == '' \">AnyCPU</Platform>\n    <ProjectGuid>{961DE925-B82C-4515-8FBD-6805E36D1212}</ProjectGuid>\n    <OutputType>WinExe</OutputType>\n    <RootNamespace>CMWTAT_DIGITAL</RootNamespace>\n    <AssemblyName>CMWTAT_DIGITAL</AssemblyName>\n    <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>\n    <FileAlignment>512</FileAlignment>\n    <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>\n    <WarningLevel>4</WarningLevel>\n    <TargetFrameworkProfile />\n    <PublishUrl>publish\\</PublishUrl>\n    <Install>true</Install>\n    <InstallFrom>Disk</InstallFrom>\n    <UpdateEnabled>false</UpdateEnabled>\n    <UpdateMode>Foreground</UpdateMode>\n    <UpdateInterval>7</UpdateInterval>\n    <UpdateIntervalUnits>Days</UpdateIntervalUnits>\n    <UpdatePeriodically>false</UpdatePeriodically>\n    <UpdateRequired>false</UpdateRequired>\n    <MapFileExtensions>true</MapFileExtensions>\n    <ApplicationRevision>0</ApplicationRevision>\n    <ApplicationVersion>1.0.0.%2a</ApplicationVersion>\n    <IsWebBootstrapper>false</IsWebBootstrapper>\n    <UseApplicationTrust>false</UseApplicationTrust>\n    <BootstrapperEnabled>true</BootstrapperEnabled>\n    <NuGetPackageImportStamp>\n    </NuGetPackageImportStamp>\n  </PropertyGroup>\n  <PropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' \">\n    <PlatformTarget>AnyCPU</PlatformTarget>\n    <DebugSymbols>true</DebugSymbols>\n    <DebugType>full</DebugType>\n    <Optimize>false</Optimize>\n    <OutputPath>bin\\Debug\\</OutputPath>\n    <DefineConstants>DEBUG;TRACE</DefineConstants>\n    <ErrorReport>prompt</ErrorReport>\n    <WarningLevel>4</WarningLevel>\n    <Prefer32Bit>false</Prefer32Bit>\n  </PropertyGroup>\n  <PropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' \">\n    <PlatformTarget>AnyCPU</PlatformTarget>\n    <DebugType>pdbonly</DebugType>\n    <Optimize>true</Optimize>\n    <OutputPath>bin\\Release\\</OutputPath>\n    <DefineConstants>TRACE</DefineConstants>\n    <ErrorReport>prompt</ErrorReport>\n    <WarningLevel>4</WarningLevel>\n    <Prefer32Bit>false</Prefer32Bit>\n  </PropertyGroup>\n  <PropertyGroup>\n    <ApplicationManifest>app.manifest</ApplicationManifest>\n  </PropertyGroup>\n  <PropertyGroup>\n    <ApplicationIcon>CMWTAT.ico</ApplicationIcon>\n  </PropertyGroup>\n  <PropertyGroup>\n    <StartupObject>\n    </StartupObject>\n  </PropertyGroup>\n  <ItemGroup>\n    <Reference Include=\"Costura, Version=4.1.0.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL\">\n      <HintPath>..\\packages\\Costura.Fody.4.1.0\\lib\\net40\\Costura.dll</HintPath>\n    </Reference>\n    <Reference Include=\"MaterialDesignColors, Version=2.0.6.0, Culture=neutral, PublicKeyToken=df2a72020bd7962a, processorArchitecture=MSIL\">\n      <HintPath>..\\packages\\MaterialDesignColors.2.0.6\\lib\\net452\\MaterialDesignColors.dll</HintPath>\n    </Reference>\n    <Reference Include=\"MaterialDesignThemes.Wpf, Version=4.5.0.0, Culture=neutral, PublicKeyToken=df2a72020bd7962a, processorArchitecture=MSIL\">\n      <HintPath>..\\packages\\MaterialDesignThemes.4.5.0\\lib\\net452\\MaterialDesignThemes.Wpf.dll</HintPath>\n    </Reference>\n    <Reference Include=\"Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL\">\n      <HintPath>..\\packages\\Newtonsoft.Json.13.0.1\\lib\\net45\\Newtonsoft.Json.dll</HintPath>\n    </Reference>\n    <Reference Include=\"System\" />\n    <Reference Include=\"System.ComponentModel.Composition\" />\n    <Reference Include=\"System.Drawing\" />\n    <Reference Include=\"System.IO.Compression\" />\n    <Reference Include=\"System.Net.Http\" />\n    <Reference Include=\"System.Numerics\" />\n    <Reference Include=\"System.Runtime\" />\n    <Reference Include=\"System.Runtime.InteropServices.RuntimeInformation, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL\">\n      <HintPath>..\\packages\\System.Runtime.InteropServices.RuntimeInformation.4.3.0\\lib\\net45\\System.Runtime.InteropServices.RuntimeInformation.dll</HintPath>\n    </Reference>\n    <Reference Include=\"System.Runtime.InteropServices.WindowsRuntime\" />\n    <Reference Include=\"System.Runtime.WindowsRuntime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\" />\n    <Reference Include=\"Microsoft.CSharp\" />\n    <Reference Include=\"System.Windows.Forms\" />\n    <Reference Include=\"System.Xaml\">\n      <RequiredTargetFramework>4.0</RequiredTargetFramework>\n    </Reference>\n    <Reference Include=\"System.Xml\" />\n    <Reference Include=\"System.Xml.Linq\" />\n    <Reference Include=\"Windows.Data\" />\n    <Reference Include=\"Windows.Foundation\" />\n    <Reference Include=\"Windows.UI\" />\n    <Reference Include=\"WindowsBase\" />\n    <Reference Include=\"PresentationCore\" />\n    <Reference Include=\"PresentationFramework\" />\n  </ItemGroup>\n  <ItemGroup>\n    <ApplicationDefinition Include=\"App.xaml\">\n      <Generator>MSBuild:Compile</Generator>\n      <SubType>Designer</SubType>\n    </ApplicationDefinition>\n    <Page Include=\"Lang\\en.xaml\">\n      <SubType>Designer</SubType>\n      <Generator>MSBuild:Compile</Generator>\n    </Page>\n    <Page Include=\"Lang\\ja.xaml\">\n      <Generator>MSBuild:Compile</Generator>\n      <SubType>Designer</SubType>\n    </Page>\n    <Page Include=\"Lang\\fr.xaml\">\n      <Generator>MSBuild:Compile</Generator>\n      <SubType>Designer</SubType>\n    </Page>\n    <Page Include=\"Lang\\ru.xaml\">\n      <Generator>MSBuild:Compile</Generator>\n      <SubType>Designer</SubType>\n    </Page>\n    <Page Include=\"Lang\\zh.xaml\">\n      <SubType>Designer</SubType>\n      <Generator>MSBuild:Compile</Generator>\n    </Page>\n    <Page Include=\"MainWindow.xaml\">\n      <Generator>MSBuild:Compile</Generator>\n      <SubType>Designer</SubType>\n    </Page>\n    <Compile Include=\"App.xaml.cs\">\n      <DependentUpon>App.xaml</DependentUpon>\n      <SubType>Code</SubType>\n    </Compile>\n    <Compile Include=\"Domain\\IsSN.cs\" />\n    <Compile Include=\"Domain\\NotifyPropertyChangedExtension.cs\" />\n    <Compile Include=\"Domain\\ViewModel.cs\" />\n    <Compile Include=\"MainWindow.xaml.cs\">\n      <DependentUpon>MainWindow.xaml</DependentUpon>\n      <SubType>Code</SubType>\n    </Compile>\n  </ItemGroup>\n  <ItemGroup>\n    <Compile Include=\"OSVersionInfoClass.cs\" />\n    <Compile Include=\"Properties\\AssemblyInfo.cs\">\n      <SubType>Code</SubType>\n    </Compile>\n    <Compile Include=\"Properties\\Resources.Designer.cs\">\n      <AutoGen>True</AutoGen>\n      <DesignTime>True</DesignTime>\n      <DependentUpon>Resources.resx</DependentUpon>\n    </Compile>\n    <Compile Include=\"Properties\\Settings.Designer.cs\">\n      <AutoGen>True</AutoGen>\n      <DependentUpon>Settings.settings</DependentUpon>\n      <DesignTimeSharedInput>True</DesignTimeSharedInput>\n    </Compile>\n    <EmbeddedResource Include=\"Properties\\Resources.resx\">\n      <Generator>ResXFileCodeGenerator</Generator>\n      <LastGenOutput>Resources.Designer.cs</LastGenOutput>\n      <SubType>Designer</SubType>\n    </EmbeddedResource>\n    <None Include=\"app.config\" />\n    <None Include=\"app.manifest\">\n      <SubType>Designer</SubType>\n    </None>\n    <None Include=\"packages.config\" />\n    <None Include=\"Properties\\Settings.settings\">\n      <Generator>SettingsSingleFileGenerator</Generator>\n      <LastGenOutput>Settings.Designer.cs</LastGenOutput>\n    </None>\n  </ItemGroup>\n  <ItemGroup>\n    <Resource Include=\"CMWTAT.ico\" />\n  </ItemGroup>\n  <ItemGroup>\n    <BootstrapperPackage Include=\"Microsoft.Net.Framework.3.5.SP1\">\n      <Visible>False</Visible>\n      <ProductName>.NET Framework 3.5 SP1</ProductName>\n      <Install>false</Install>\n    </BootstrapperPackage>\n  </ItemGroup>\n  <ItemGroup>\n    <None Include=\"Res\\slmgr.vbs\" />\n  </ItemGroup>\n  <ItemGroup>\n    <Folder Include=\"bin\\Debug\\\" />\n  </ItemGroup>\n  <ItemGroup>\n    <Content Include=\"Res\\ClipUp.exe\" />\n  </ItemGroup>\n  <Import Project=\"$(MSBuildToolsPath)\\Microsoft.CSharp.targets\" />\n  <Target Name=\"EnsureNuGetPackageBuildImports\" BeforeTargets=\"PrepareForBuild\">\n    <PropertyGroup>\n      <ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息，请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>\n    </PropertyGroup>\n    <Error Condition=\"!Exists('..\\packages\\Costura.Fody.4.1.0\\build\\Costura.Fody.props')\" Text=\"$([System.String]::Format('$(ErrorText)', '..\\packages\\Costura.Fody.4.1.0\\build\\Costura.Fody.props'))\" />\n    <Error Condition=\"!Exists('..\\packages\\Fody.6.9.1\\build\\Fody.targets')\" Text=\"$([System.String]::Format('$(ErrorText)', '..\\packages\\Fody.6.9.1\\build\\Fody.targets'))\" />\n    <Error Condition=\"!Exists('..\\packages\\MaterialDesignThemes.4.5.0\\build\\MaterialDesignThemes.targets')\" Text=\"$([System.String]::Format('$(ErrorText)', '..\\packages\\MaterialDesignThemes.4.5.0\\build\\MaterialDesignThemes.targets'))\" />\n  </Target>\n  <Import Project=\"..\\packages\\Fody.6.9.1\\build\\Fody.targets\" Condition=\"Exists('..\\packages\\Fody.6.9.1\\build\\Fody.targets')\" />\n  <Import Project=\"..\\packages\\MaterialDesignThemes.4.5.0\\build\\MaterialDesignThemes.targets\" Condition=\"Exists('..\\packages\\MaterialDesignThemes.4.5.0\\build\\MaterialDesignThemes.targets')\" />\n</Project>"
  },
  {
    "path": "CMWTAT_DIGITAL/Domain/IsSN.cs",
    "content": "﻿using System.Globalization;\nusing System.Text.RegularExpressions;\nusing System.Windows.Controls;\n\nnamespace CMWTAT_DIGITAL.Domain\n{\n    class IsSN : ValidationRule\n    {\n        #region 匹配方法  \n\n        /// <summary>  \n        /// 验证字符串是否匹配正则表达式描述的规则  \n        /// </summary>  \n        /// <param name=\"inputStr\">待验证的字符串</param>  \n        /// <param name=\"patternStr\">正则表达式字符串</param>  \n        /// <returns>是否匹配</returns>  \n        public static bool IsMatch(string inputStr, string patternStr)\n        {\n            return IsMatch(inputStr, patternStr, false, false);\n        }\n\n        /// <summary>  \n        /// 验证字符串是否匹配正则表达式描述的规则  \n        /// </summary>  \n        /// <param name=\"inputStr\">待验证的字符串</param>  \n        /// <param name=\"patternStr\">正则表达式字符串</param>  \n        /// <param name=\"ifIgnoreCase\">匹配时是否不区分大小写</param>  \n        /// <returns>是否匹配</returns>  \n        public static bool IsMatch(string inputStr, string patternStr, bool ifIgnoreCase)\n        {\n            return IsMatch(inputStr, patternStr, ifIgnoreCase, false);\n        }\n\n        /// <summary>  \n        /// 验证字符串是否匹配正则表达式描述的规则  \n        /// </summary>  \n        /// <param name=\"inputStr\">待验证的字符串</param>  \n        /// <param name=\"patternStr\">正则表达式字符串</param>  \n        /// <param name=\"ifIgnoreCase\">匹配时是否不区分大小写</param>  \n        /// <param name=\"ifValidateWhiteSpace\">是否验证空白字符串</param>  \n        /// <returns>是否匹配</returns>  \n        public static bool IsMatch(string inputStr, string patternStr, bool ifIgnoreCase, bool ifValidateWhiteSpace)\n        {\n            if (!ifValidateWhiteSpace && string.IsNullOrEmpty(inputStr))\n                return false;//如果不要求验证空白字符串而此时传入的待验证字符串为空白字符串，则不匹配  \n            Regex regex = null;\n            if (ifIgnoreCase)\n                regex = new Regex(patternStr, RegexOptions.IgnoreCase);//指定不区分大小写的匹配  \n            else\n                regex = new Regex(patternStr);\n            return regex.IsMatch(inputStr);\n        }\n\n        #endregion\n\n        public override ValidationResult Validate(object value, CultureInfo cultureInfo)\n        {\n            //Console.WriteLine(\"\\\"\"+value+\"\\\"\");\n            //return string.IsNullOrWhiteSpace((value ?? \"\").ToString())\n            //    ? new ValidationResult(false, \"Key is required.\")\n            //    : ValidationResult.ValidResult;\n\n            string pattern = @\"^[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}$\";\n\n            if (IsMatch((value ?? \"\").ToString(), pattern))\n            {\n                return ValidationResult.ValidResult;\n\n            }\n            else if (string.IsNullOrWhiteSpace((value ?? \"\").ToString()))\n            {\n                return new ValidationResult(false, \"Please enter the key for the current edition.\");\n            }\n            else\n            {\n                return new ValidationResult(false, \"Invalid format.\");\n            }\n\n        }\n    }\n}\n"
  },
  {
    "path": "CMWTAT_DIGITAL/Domain/NotifyPropertyChangedExtension.cs",
    "content": "﻿using System;\nusing System.Collections.Generic;\nusing System.ComponentModel;\nusing System.Runtime.CompilerServices;\n\nnamespace CMWTAT_DIGITAL.Domain\n{\n    public static class NotifyPropertyChangedExtension\n    {\n        public static void MutateVerbose<TField>(this INotifyPropertyChanged instance, ref TField field, TField newValue, Action<PropertyChangedEventArgs> raise, [CallerMemberName] string propertyName = null)\n        {\n            if (EqualityComparer<TField>.Default.Equals(field, newValue)) return;\n            field = newValue;\n            raise?.Invoke(new PropertyChangedEventArgs(propertyName));\n        }\n    }\n}\n"
  },
  {
    "path": "CMWTAT_DIGITAL/Domain/ViewModel.cs",
    "content": "﻿using System;\nusing System.Collections.Generic;\nusing System.ComponentModel;\nusing System.Linq;\n\nnamespace CMWTAT_DIGITAL.Domain\n{\n    class ViewModel : INotifyPropertyChanged\n    {\n        private string _sn;\n\n        public ViewModel()\n        {\n            LongListToTestComboVirtualization = new List<int>(Enumerable.Range(0, 1000));\n        }\n\n        public string SN\n        {\n            get { return _sn; }\n            set\n            {\n                this.MutateVerbose(ref _sn, value, RaisePropertyChanged());\n            }\n        }\n\n        public IList<int> LongListToTestComboVirtualization { get; }\n\n        public event PropertyChangedEventHandler PropertyChanged;\n\n        private Action<PropertyChangedEventArgs> RaisePropertyChanged()\n        {\n            return args => PropertyChanged?.Invoke(this, args);\n        }\n    }\n}\n"
  },
  {
    "path": "CMWTAT_DIGITAL/FodyWeavers.xml",
    "content": "﻿<Weavers xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"FodyWeavers.xsd\">\n  <Costura />\n</Weavers>"
  },
  {
    "path": "CMWTAT_DIGITAL/Lang/en.xaml",
    "content": "﻿<ResourceDictionary xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\" xmlns:sys=\"clr-namespace:System;assembly=mscorlib\">\n\n    <!--\n    Version: 2.6.0.0\n    -->\n\n    <!--FontFamily Dictionary-->\n    \n    <FontFamily x:Key=\"Font\">\n        Roboto\n    </FontFamily>\n    \n    <!--String Dictionary-->\n    \n    <sys:String x:Key=\"OK\">\n        OK\n    </sys:String>\n    <sys:String x:Key=\"Cancel\">\n        Cancel\n    </sys:String>\n    <sys:String x:Key=\"Refuse\">\n        Refuse\n    </sys:String>\n    <sys:String x:Key=\"DonateBtn\">\n        Thanks developer and donate a dinner\n    </sys:String>\n    <sys:String x:Key=\"Exit\">\n        Exit\n    </sys:String>\n    <sys:String x:Key=\"UpdateNow\">\n        Update Now\n    </sys:String>\n    <sys:String x:Key=\"Ignore\">\n        Ignore\n    </sys:String>\n    <sys:String x:Key=\"TitleName\">\n        CMWTAT Digital Edition\n    </sys:String>\n    <sys:String x:Key=\"AppName\">\n        CMWTAT Digital Edition V2\n    </sys:String>\n    <sys:String x:Key=\"UpdateTitle\">\n        A new version available!\n    </sys:String>\n    <sys:String x:Key=\"UpgradeFullVersionWindowsTitle\">\n        Upgrade to full version of Windows\n    </sys:String>\n    <sys:String x:Key=\"CurrentVersion\">\n        Current Version\n    </sys:String>\n    <sys:String x:Key=\"LatestVersion\">\n        Latest Version\n    </sys:String>\n    <sys:String x:Key=\"Auto_Mode\">\n        Auto Mode\n    </sys:String>\n    <sys:String x:Key=\"Manual_Mode\">\n        Manual Mode\n    </sys:String>\n    <sys:String x:Key=\"Activate_Button\">\n        Activate\n    </sys:String>\n    <sys:String x:Key=\"Convert_versions\">\n        Convert versions (Install Key without Activate)\n    </sys:String>\n    <sys:String x:Key=\"Upgrade_full_version\">\n        Upgrade to full version of Windows\n    </sys:String>\n    <sys:String x:Key=\"test\">\n        Test Text\n    </sys:String>\n    <sys:String x:Key=\"Loading\">\n        Loading\n    </sys:String>\n    <sys:String x:Key=\"Activating\">\n        Activating\n    </sys:String>\n    <sys:String x:Key=\"Complete\">\n        Complete\n    </sys:String>\n    <sys:String x:Key=\"notifyIconTitle\">\n        CloudMoe Windows 10+ Activation Toolkit V2\n    </sys:String>\n    <sys:String x:Key=\"Running\">\n        Running.\n    </sys:String>\n    <sys:String x:Key=\"Experimental\">\n        Experimental\n    </sys:String>\n    <sys:String x:Key=\"Attention\">\n        Attention\n    </sys:String>\n    <sys:String x:Key=\"System_Edition\">\n        System edition\n    </sys:String>\n    <sys:String x:Key=\"May_be_not_be_supported\">\n        Unable to correctly identify your operating system edition in support list, may be not be supported.\n    </sys:String>\n    <sys:String x:Key=\"Only_find_experimental\">\n        Only found experimental options that can be used with this operating system edition, little hope of activation success.\n    </sys:String>\n    <sys:String x:Key=\"notify_May_be_not_be_supported_try\">\n        Your system edition may not be supported, program will exit. you can try add --expact or -e to startup.\n    </sys:String>\n    <sys:String x:Key=\"notify_May_be_not_be_supported_exit\">\n        Your system edition may not be supported, program will exit.\n    </sys:String>\n    <sys:String x:Key=\"notify_Disconnect_to_server_exit\">\n        Unable to connect to server, Please check the network and try to try again later, program will exit.\n    </sys:String>\n    <sys:String x:Key=\"Disconnect_to_server_exit\">\n        Unable to connect to server, Please check the network and try to try again later, program will exit.\n    </sys:String>\n    <sys:String x:Key=\"RunInstall_Converting\">\n        Converting\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Activating\">\n        Activating\n    </sys:String>\n    <sys:String x:Key=\"RunInstall_Getting_Key\">\n        Getting Key via Internet\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Getting_Key\">\n        Getting Key via Internet\n    </sys:String>\n    <sys:String x:Key=\"RunInstall_Uninstalling_old_Key\">\n        Uninstalling old Key\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Uninstalling_old_Key\">\n        Uninstalling old Key\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Uninstalling_old_Key_Exp\">\n        Uninstalling old Key (Experimental)\n    </sys:String>\n    <sys:String x:Key=\"RunInstall_Installing_Key\">\n        Installing Key\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Installing_Key\">\n        Installing Key\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Getting_edition_code_Exp\">\n        Getting edition code (Experimental)\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Prepare_for_the_next_step_Exp\">\n        Prepare for the next step (Experimental)\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Writing_old_OS\">\n        Writing feature of old Windows version\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Getting_free_upgrade_permissions\">\n        Getting free upgrade permissions\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Cleaning_changes\">\n        Cleaning changes\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Getting_digital_license\">\n        Getting digital license\n    </sys:String>\n    <sys:String x:Key=\"RunUpgradeFullVersion_Upgrading\">\n        Upgrading\n    </sys:String>\n    <sys:String x:Key=\"CompleteTitle\">\n        Complete\n    </sys:String>\n    <sys:String x:Key=\"ErrorTitle\">\n        Error\n    </sys:String>\n    <sys:String x:Key=\"ErrorCode\">\n        Code:\n    </sys:String>\n    <sys:String x:Key=\"SysMsg\">\n        System return:\n    </sys:String>\n\n    <!--\n        Attention:\n        DO NOT USE ANY Indentation in Preserve Mode, Please!\n    -->\n\n    <sys:String x:Key=\"UpgradeFullVersionWindowsText\" xml:space=\"preserve\">\nYou are currently using the core version of Windows, you can use this feature to upgrade to the full version of Windows.&#10;(If the operation does not respond it may be that the current version does not support the upgrade or is in the process of upgrading) &#10;&#10;Note:&#10;This operation is not reversible and once the upgrade is complete you will not be able to roll back to the core version of Windows!&#10;&#10;Are you sure you want to perform an upgrade?\n    </sys:String>\n    <sys:String x:Key=\"HelpText\" xml:space=\"preserve\">\nThis application now supports the use of console args to startup!&#10;&#10;-a&#9;--auto&#9;&#9;Auto activate.&#10;-h&#9;--hide&#9;&#9;Run with hide mode (Only be worked with -auto).&#10;-e&#9;--expact&#9;&#9;Experimental activation.&#10;-l&#9;--log&#9;&#9;Output log to file.&#10;-?&#9;--help&#9;&#9;Show this help Dialog.\n    </sys:String>\n    <sys:String x:Key=\"DonateTextConverted\" xml:space=\"preserve\">\nCongratulation! &#10;&#10;Windows has been successful converted.\n    </sys:String>\n    <sys:String x:Key=\"DonateTextActivated\" xml:space=\"preserve\">\nCongratulation! &#10;&#10;Windows has been successful activated.\n    </sys:String>\n    <sys:String x:Key=\"UpdateText\" xml:space=\"preserve\">\nWe found a new version for CloudMoe Windows 10+ Activation Toolkit Digital Edition.&#10;Please update to the latest version to make sure it works.\n    </sys:String>\n    <sys:String x:Key=\"UpdateMustText\" xml:space=\"preserve\">\nWe found a new version for CloudMoe Windows 10+ Activation Toolkit Digital Edition.&#10;And because your version is too old, so you MUST update to the latest version to make sure it works.\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-0\" xml:space=\"preserve\">\nActivate Windows requires a network to gets the product key :)\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-1\" xml:space=\"preserve\">\nCannot to uninstall old key. :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-1.1\" xml:space=\"preserve\">\nCannot to install key, may be you choose or enter a incorrect version. :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-1.2\" xml:space=\"preserve\">\nCannot to get edition code. :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-2\" xml:space=\"preserve\">\nCannot to install key, may be you choose or enter a incorrect version. :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-3\" xml:space=\"preserve\">\nTime out, may be you choose or enter a incorrect version. :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-4\" xml:space=\"preserve\">\nActivation Failed. :( &#10;Maybe: &#10;1.This edition/version of Windows does not support digital license activation. &#10;2. Unable to connect to Microsoft Windows Activation Server. &#10;3. Other unexpected problems. &#10;&#10;You can try to wait a minute or try again later. &#10;\n    </sys:String>\n    <sys:String x:Key=\"Only_find_ltok\" xml:space=\"preserve\">\nOnly found Long-Term Offline KMS (LTOK) options that can be used with this operating system edition. &#10;This means that it will not be activate automatically after you reinstalled the system. &#10;But don't worry, this is different from the legacy KMS activation method (it can keep activating for 180 days in offline environment). &#10;LTOK (The prefix is Offline-KMS) can keep activating for up to 2038 even it is without networking!\n    </sys:String>\n    <sys:String x:Key=\"DonateTextWillActivated\" xml:space=\"preserve\">\nCongratulation! &#10;&#10;Windows is ready to activate. &#10;However, it seems that Windows cannot connect to the Microsoft Activation Server.&#10;Your system will be activated automatically the next time the server is connected.\n    </sys:String>\n</ResourceDictionary>"
  },
  {
    "path": "CMWTAT_DIGITAL/Lang/fr.xaml",
    "content": "﻿<ResourceDictionary xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\" xmlns:sys=\"clr-namespace:System;assembly=mscorlib\">\n\n    <!--\n    Version: 2.5.0.0\n    -->\n\n    <!--FontFamily Dictionary-->\n    \n    <FontFamily x:Key=\"Font\">\n        Roboto\n    </FontFamily>\n    \n    <!--String Dictionary-->\n    \n    <sys:String x:Key=\"OK\">\n        Ok\n    </sys:String>\n    <sys:String x:Key=\"Cancel\">\n        Annuler\n    </sys:String>\n    <sys:String x:Key=\"Refuse\">\n        Refuser\n    </sys:String>\n    <sys:String x:Key=\"DonateBtn\">\n        Remerciez les développeurs et offrez leurs un café\n    </sys:String>\n    <sys:String x:Key=\"Exit\">\n        Sortir\n    </sys:String>\n    <sys:String x:Key=\"UpdateNow\">\n        Mettre à jour maintenant\n    </sys:String>\n    <sys:String x:Key=\"Ignore\">\n        Ignorer\n    </sys:String>\n    <sys:String x:Key=\"TitleName\">\n        CMWTAT Edition numérique\n    </sys:String>\n    <sys:String x:Key=\"AppName\">\n        CMWTAT Edition numérique V2\n    </sys:String>\n    <sys:String x:Key=\"UpdateTitle\">\n        Une nouvelle version disponible !\n    </sys:String>\n    <sys:String x:Key=\"CurrentVersion\">\n        Version actuelle\n    </sys:String>\n    <sys:String x:Key=\"LatestVersion\">\n        Dernière version\n    </sys:String>\n    <sys:String x:Key=\"Auto_Mode\">\n        Mode automatique\n    </sys:String>\n    <sys:String x:Key=\"Manual_Mode\">\n        Mode manuel\n    </sys:String>\n    <sys:String x:Key=\"Activate_Button\">\n        Activer\n    </sys:String>\n    <sys:String x:Key=\"Convert_versions\">\n        Convertir la versions (Installer la clé sans l'activer)\n    </sys:String>\n    <sys:String x:Key=\"test\">\n        Texte de test\n    </sys:String>\n    <sys:String x:Key=\"Loading\">\n        Chargement\n    </sys:String>\n    <sys:String x:Key=\"Activating\">\n        Activation\n    </sys:String>\n    <sys:String x:Key=\"Complete\">\n        Terminé\n    </sys:String>\n    <sys:String x:Key=\"notifyIconTitle\">\n        CloudMoe Windows 10+ Activation Toolkit V2\n    </sys:String>\n    <sys:String x:Key=\"Running\">\n        En cours d'exécution.\n    </sys:String>\n    <sys:String x:Key=\"Experimental\">\n        Expérimental\n    </sys:String>\n    <sys:String x:Key=\"Attention\">\n        Attention\n    </sys:String>\n    <sys:String x:Key=\"System_Edition\">\n        Version du système\n    </sys:String>\n    <sys:String x:Key=\"May_be_not_be_supported\">\n        La version de votre système d'exploitation n'est pas identifiable, il se peut qu'il ne soit pas supporté.\n    </sys:String>\n    <sys:String x:Key=\"Only_find_experimental\">\n        Seules des options expérimentales peuvent être utilisées avec cette édition du système d'exploitation. Il y a peu d'espoir de succès d'activation.\n    </sys:String>\n    <sys:String x:Key=\"notify_May_be_not_be_supported_try\">\n        La version de votre système peut ne pas être supportée, le programme se terminera automatiquement. Vous pouvez essayer d'ajouter --expact ou -e au démarrage.\n    </sys:String>\n    <sys:String x:Key=\"notify_May_be_not_be_supported_exit\">\n        La version de votre système peut ne pas être prise en charge, le programme va se fermer.\n    </sys:String>\n    <sys:String x:Key=\"notify_Disconnect_to_server_exit\">\n        Impossible de se connecter au serveur, Veuillez vérifier le réseau et réessayer plus tard, le programme va se fermer.\n    </sys:String>\n    <sys:String x:Key=\"Disconnect_to_server_exit\">\n        Impossible de se connecter au serveur, Veuillez vérifier le réseau et réessayer plus tard, le programme va se fermer.\n    </sys:String>\n    <sys:String x:Key=\"RunInstall_Converting\">\n        Conversion\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Activating\">\n        Activation\n    </sys:String>\n    <sys:String x:Key=\"RunInstall_Getting_Key\">\n        Obtention de la clé par Internet\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Getting_Key\">\n        Obtention de la clé par Internet\n    </sys:String>\n    <sys:String x:Key=\"RunInstall_Uninstalling_old_Key\">\n        Suppression de l'ancienne clé\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Uninstalling_old_Key\">\n        Suppression de l'ancienne clé\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Uninstalling_old_Key_Exp\">\n        Suppression de l'ancienne clé (Experimental)\n    </sys:String>\n    <sys:String x:Key=\"RunInstall_Installing_Key\">\n       Installation de la clé\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Installing_Key\">\n        Installation de la clé\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Getting_edition_code_Exp\">\n        Obtenir le code version (Experimental)\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Prepare_for_the_next_step_Exp\">\n        Préparation à l'étape suivante (Experimental)\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Writing_old_OS\">\n        Écriture d'une ancienne version de Windows\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Getting_free_upgrade_permissions\">\n        Obtention des autorisations gratuite de mise à niveau\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Cleaning_changes\">\n        Nettoyage des changements\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Getting_digital_license\">\n        Obtention d'une licence numérique\n    </sys:String>\n    <sys:String x:Key=\"CompleteTitle\">\n        Terminé\n    </sys:String>\n    <sys:String x:Key=\"ErrorTitle\">\n        Erreur\n    </sys:String>\n    <sys:String x:Key=\"ErrorCode\">\n        Code:\n    </sys:String>\n    <sys:String x:Key=\"SysMsg\">\n        Le système à retourné:\n    </sys:String>\n\n    <!--\n        Attention:\n        DO NOT USE ANY Indentation in Preserve Mode, Please!\n    -->\n   <!--\n        TODO: Finish the above translation\n    -->\n\n    <sys:String x:Key=\"HelpText\" xml:space=\"preserve\">\nThis application now supports the use of console args to startup!&#10;&#10;-a&#9;--auto&#9;&#9;Auto activate.&#10;-h&#9;--hide&#9;&#9;Run with hide mode (Only be worked with -auto).&#10;-e&#9;--expact&#9;&#9;Experimental activation.&#10;-l&#9;--log&#9;&#9;Output log to file.&#10;-?&#9;--help&#9;&#9;Show this help Dialog.\n    </sys:String>\n    <sys:String x:Key=\"DonateTextConverted\" xml:space=\"preserve\">\nCongratulation! &#10;&#10;Windows has been successful converted.\n    </sys:String>\n    <sys:String x:Key=\"DonateTextActivated\" xml:space=\"preserve\">\nCongratulation! &#10;&#10;Windows has been successful activated.\n    </sys:String>\n    <sys:String x:Key=\"UpdateText\" xml:space=\"preserve\">\nWe found a new version for CloudMoe Windows 10+ Activation Toolkit Digital Edition.&#10;Please update to the latest version to make sure it works.\n    </sys:String>\n    <sys:String x:Key=\"UpdateMustText\" xml:space=\"preserve\">\nWe found a new version for CloudMoe Windows 10+ Activation Toolkit Digital Edition.&#10;And because your version is too old, so you MUST update to the latest version to make sure it works.\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-0\" xml:space=\"preserve\">\nActivate Windows requires a network to gets the product key :)\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-1\" xml:space=\"preserve\">\nCannot to uninstall old key. :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-1.1\" xml:space=\"preserve\">\nCannot to install key, may be you choose or enter a incorrect version. :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-1.2\" xml:space=\"preserve\">\nCannot to get edition code. :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-2\" xml:space=\"preserve\">\nCannot to install key, may be you choose or enter a incorrect version. :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-3\" xml:space=\"preserve\">\nTime out, may be you choose or enter a incorrect version. :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-4\" xml:space=\"preserve\">\nActivation Failed. :( &#10;Maybe: &#10;1.This edition/version of Windows does not support digital license activation. &#10;2. Unable to connect to Microsoft Windows Activation Server. &#10;3. Other unexpected problems. &#10;&#10;You can try to wait a minute or try again later. &#10;\n    </sys:String>\n    <sys:String x:Key=\"Only_find_ltok\" xml:space=\"preserve\">\nOnly found Long-Term Offline KMS (LTOK) options that can be used with this operating system edition. &#10;This means that it will not be activate automatically after you reinstalled the system. &#10;But don't worry, this is different from the legacy KMS activation method (it can keep activating for 180 days in offline environment). &#10;LTOK (The prefix is Offline-KMS) can keep activating for up to 2038 even it is without networking!\n    </sys:String>\n    <sys:String x:Key=\"DonateTextWillActivated\" xml:space=\"preserve\">\nCongratulation! &#10;&#10;Windows is ready to activate. &#10;However, it seems that Windows cannot connect to the Microsoft Activation Server.&#10;Your system will be activated automatically the next time the server is connected.\n    </sys:String>\n</ResourceDictionary>\n"
  },
  {
    "path": "CMWTAT_DIGITAL/Lang/ja.xaml",
    "content": "﻿<ResourceDictionary xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\" xmlns:sys=\"clr-namespace:System;assembly=mscorlib\">\n\n    <!--\n    Version: 2.6.0.0\n    -->\n\n    <!--FontFamily Dictionary-->\n    \n    <FontFamily x:Key=\"Font\">\n        Yu Gothic UI\n    </FontFamily>\n    \n    <!--String Dictionary-->\n    \n    <sys:String x:Key=\"OK\">\n        はい\n    </sys:String>\n    <sys:String x:Key=\"Cancel\">\n        キャンセル\n    </sys:String>\n    <sys:String x:Key=\"Refuse\">\n        リフューズ\n    </sys:String>\n    <sys:String x:Key=\"DonateBtn\">\n        寄付します\n    </sys:String>\n    <sys:String x:Key=\"Exit\">\n        終了\n    </sys:String>\n    <sys:String x:Key=\"UpdateNow\">\n        今すぐアップデート\n    </sys:String>\n    <sys:String x:Key=\"Ignore\">\n        無視する\n    </sys:String>\n    <sys:String x:Key=\"TitleName\">\n        雲萌 10+ デジタルライセンス認証アプリ\n    </sys:String>\n    <sys:String x:Key=\"AppName\">\n        CMWTAT Digital Edition V2\n    </sys:String>\n    <sys:String x:Key=\"UpdateTitle\">\n        新しいバージョンがあります！\n    </sys:String>\n    <!-- TODO -->\n    <sys:String x:Key=\"UpgradeFullVersionWindowsTitle\">\n        Upgrade to full version of Windows\n    </sys:String>\n    <sys:String x:Key=\"CurrentVersion\">\n        バージョン\n    </sys:String>\n    <sys:String x:Key=\"LatestVersion\">\n        ラストバージョン\n    </sys:String>\n    <sys:String x:Key=\"Auto_Mode\">\n        オートモード\n    </sys:String>\n    <sys:String x:Key=\"Manual_Mode\">\n        マニュアルモード\n    </sys:String>\n    <sys:String x:Key=\"Activate_Button\">\n        認証\n    </sys:String>\n    <sys:String x:Key=\"Convert_versions\">\n        エディション変換 (キーをインストールするが、認証しません)\n    </sys:String>\n    <!-- TODO -->\n    <sys:String x:Key=\"Upgrade_full_version\">\n        Upgrade to full version of Windows\n    </sys:String>\n    <sys:String x:Key=\"test\">\n        テストテキスト\n    </sys:String>\n    <sys:String x:Key=\"Loading\">\n        ローディング\n    </sys:String>\n    <sys:String x:Key=\"Activating\">\n        認証中\n    </sys:String>\n    <sys:String x:Key=\"Complete\">\n        コンプリート\n    </sys:String>\n    <sys:String x:Key=\"notifyIconTitle\">\n        雲萌 Windows 10+ 認証アプリ V2\n    </sys:String>\n    <sys:String x:Key=\"Running\">\n        実行中。\n    </sys:String>\n    <sys:String x:Key=\"Experimental\">\n        実験性\n    </sys:String>\n    <sys:String x:Key=\"Attention\">\n        注意\n    </sys:String>\n    <sys:String x:Key=\"System_Edition\">\n        システムエディション\n    </sys:String>\n    <sys:String x:Key=\"May_be_not_be_supported\">\n        あなたのシステムエディションが判別できません、対応していないかもしれません。\n    </sys:String>\n    <sys:String x:Key=\"Only_find_experimental\">\n        このシステムエディションに実験性オプションしか取れません、認証成功の可能性は極めて低い。\n    </sys:String>\n    <sys:String x:Key=\"notify_May_be_not_be_supported_try\">\n        あなたのシステムエディションは対応していないかもしれません。アプリは終了する。試して、--expactまたは-eを追加することでアプリ起動してください。\n    </sys:String>\n    <sys:String x:Key=\"notify_May_be_not_be_supported_exit\">\n        あなたのシステムエディションは対応していないかもしれません。アプリは終了する。\n    </sys:String>\n    <sys:String x:Key=\"notify_Disconnect_to_server_exit\">\n        サーバーに接続できません、インターネット接続を確認するまたは後で試してください、アプリは終了します。\n    </sys:String>\n    <sys:String x:Key=\"Disconnect_to_server_exit\">\n        サーバーに接続できません、インターネット接続を確認するまたは後で試してください、アプリは終了します。\n    </sys:String>\n    <sys:String x:Key=\"RunInstall_Converting\">\n        変換中\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Activating\">\n        ライセンス認証中\n    </sys:String>\n    <sys:String x:Key=\"RunInstall_Getting_Key\">\n        インターネットを通じてキーを取得しています\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Getting_Key\">\n        インターネットを通じてキーを取得しています\n    </sys:String>\n    <sys:String x:Key=\"RunInstall_Uninstalling_old_Key\">\n        以前のキーをアンインストールしています\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Uninstalling_old_Key\">\n        以前のキーをアンインストールしています\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Uninstalling_old_Key_Exp\">\n        以前のキーをアンインストールしています（実験性）\n    </sys:String>\n    <sys:String x:Key=\"RunInstall_Installing_Key\">\n        キーをインストールしています\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Installing_Key\">\n        キーをインストールしています\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Getting_edition_code_Exp\">\n        エディションコードを取得中（実験性）\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Prepare_for_the_next_step_Exp\">\n        次のステップに準備しています（実験性）\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Writing_old_OS\">\n        旧システムの特徴を書き込み中\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Getting_free_upgrade_permissions\">\n        無償アップグレード権限を取得中\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Cleaning_changes\">\n        変更がクリーンアップされます\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Getting_digital_license\">\n        デジタルライセンスを取得中\n    </sys:String>\n    <!-- TODO -->\n    <sys:String x:Key=\"RunUpgradeFullVersion_Upgrading\">\n        Upgrading\n    </sys:String>\n    <sys:String x:Key=\"CompleteTitle\">\n        コンプリート\n    </sys:String>\n    <sys:String x:Key=\"ErrorTitle\">\n        エラー\n    </sys:String>\n    <sys:String x:Key=\"ErrorCode\">\n        コード：\n    </sys:String>\n    <sys:String x:Key=\"SysMsg\">\n        システムメッセージ：\n    </sys:String>\n\n    <!--\n        Attention:\n        DO NOT USE ANY Indentation in Preserve Mode, Please!\n    -->\n\n    <!-- TODO -->\n    <sys:String x:Key=\"UpgradeFullVersionWindowsText\" xml:space=\"preserve\">\nYou are currently using the core version of Windows, you can use this feature to upgrade to the full version of Windows.&#10;(If the operation does not respond it may be that the current version does not support the upgrade or is in the process of upgrading) &#10;&#10;Note:&#10;This operation is not reversible and once the upgrade is complete you will not be able to roll back to the core version of Windows!&#10;&#10;Are you sure you want to perform an upgrade?\n    </sys:String>\n    <sys:String x:Key=\"HelpText\" xml:space=\"preserve\">\nこのアプリは起動時にコンソール引数を使用できるようになりました！&#10;&#10;-a&#9;--auto&#9;&#9;自動認証。&#10;-h&#9;--hide&#9;&#9;非表示モードで実行 (-autoと一緒に使用するだけ可能)。&#10;-e&#9;--expact&#9;&#9;実験性認証。&#10;-l&#9;--log&#9;&#9;ログをファイルに出力。&#10;-?&#9;--help&#9;&#9;この説明ダイアログボックスを表示する。\n    </sys:String>\n    <sys:String x:Key=\"DonateTextConverted\" xml:space=\"preserve\">\nおめでとう！ &#10;&#10;Windows エディション変換成功。\n    </sys:String>\n    <sys:String x:Key=\"DonateTextActivated\" xml:space=\"preserve\">\nおめでとう！ &#10;&#10;Windows 認証成功。\n    </sys:String>\n    <sys:String x:Key=\"UpdateText\" xml:space=\"preserve\">\n雲萌 Windows 10+ デジタルライセンス認証アプリの新しいバージョン発見しました。&#10;最新バージョンにアップデートしてください。\n    </sys:String>\n    <sys:String x:Key=\"UpdateMustText\" xml:space=\"preserve\">\n雲萌 Windows 10+ デジタルライセンス認証アプリの新しいバージョン発見しました。&#10;アプリが古すぎるため、最新バージョンにアップデートしてから利用ください。\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-0\" xml:space=\"preserve\">\nWindows ライセンス認証にはインターネットを通じてキーを取得する必要があります :)\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-1\" xml:space=\"preserve\">\n以前のキーをアンインストールできません :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-1.1\" xml:space=\"preserve\">\nキーをインストールできません、選択または入力されたエディションが間違っているかもしれません :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-1.2\" xml:space=\"preserve\">\nエディションコードを取得できません :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-2\" xml:space=\"preserve\">\nキーをインストールできません、選択または入力されたエディションが間違っているかもしれません :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-3\" xml:space=\"preserve\">\nタイムアウト，選択または入力されたエディションが間違っているかもしれません :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-4\" xml:space=\"preserve\">\n認証失敗。 :( &#10;多分: &#10;1. このエディション/バージョンの Windows はデジタルライセンス認証が適用しない。 &#10;2. マイクロソフトの認証サーバーに接続できません。 &#10;3. その他。 &#10;&#10;暫くお待ちくださいまたはあとでもう一度やり直してください。 &#10;\n    </sys:String>\n    <sys:String x:Key=\"Only_find_ltok\" xml:space=\"preserve\">\nこのシステムエディションに適用されたのは長期オフラインＫＭＳ（ＬＴＯＫ）オプションしか見つかりません。これによってシステムを再インストールした時自動的にライセンス認証しませんが、心配する必要はありません。この方法（ＬＴＯＫ）でライセンス認証後、インターネット接続なしでも２０３８年まで稼働を継続できます！\n\t</sys:String>\n    <sys:String x:Key=\"DonateTextWillActivated\" xml:space=\"preserve\">\nおめでとうございます！ &#10;&#10;Windowsはライセンス認証の準備が出来ています。&#10;でも、マイクロソフトのライセンス認証サーバーに接続できませんみたいです。&#10;システムは認証サーバーに接続出来る次第に自動的にライセンス認証します。\n    </sys:String>\n</ResourceDictionary>\n"
  },
  {
    "path": "CMWTAT_DIGITAL/Lang/ru.xaml",
    "content": "<ResourceDictionary xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\" xmlns:sys=\"clr-namespace:System;assembly=mscorlib\">\r\n\r\n    <!--\r\n    Version: 2.6.0.0\r\n    -->\r\n\r\n    <!--FontFamily Dictionary-->\r\n    \r\n    <FontFamily x:Key=\"Font\">\r\n        Roboto\r\n    </FontFamily>\r\n    \r\n    <!--String Dictionary-->\r\n    \r\n    <sys:String x:Key=\"OK\">\r\n        ОК\r\n    </sys:String>\r\n    <sys:String x:Key=\"Cancel\">\r\n        Отменить\r\n    </sys:String>\r\n    <sys:String x:Key=\"Refuse\">\r\n        Отказаться\r\n    </sys:String>\r\n    <sys:String x:Key=\"DonateBtn\">\r\n        Поблагодарить и поддержать разработчика\r\n    </sys:String>\r\n    <sys:String x:Key=\"Exit\">\r\n        Выйти\r\n    </sys:String>\r\n    <sys:String x:Key=\"UpdateNow\">\r\n        Обновить сейчас\r\n    </sys:String>\r\n    <sys:String x:Key=\"Ignore\">\r\n        Игнорировать\r\n    </sys:String>\r\n    <sys:String x:Key=\"TitleName\">\r\n        CMWTAT Digital Edition\r\n    </sys:String>\r\n    <sys:String x:Key=\"AppName\">\r\n        CMWTAT Digital Edition V2\r\n    </sys:String>\r\n    <sys:String x:Key=\"UpdateTitle\">\r\n        Доступна новая версия!\r\n    </sys:String>\r\n    <sys:String x:Key=\"UpgradeFullVersionWindowsTitle\">\r\n        Перейти на полную версию Windows\r\n    </sys:String>\r\n    <sys:String x:Key=\"CurrentVersion\">\r\n        Текущая версия\r\n    </sys:String>\r\n    <sys:String x:Key=\"LatestVersion\">\r\n        Последняя версия\r\n    </sys:String>\r\n    <sys:String x:Key=\"Auto_Mode\">\r\n        Авто\r\n    </sys:String>\r\n    <sys:String x:Key=\"Manual_Mode\">\r\n        Вручную\r\n    </sys:String>\r\n    <sys:String x:Key=\"Activate_Button\">\r\n        Активировать\r\n    </sys:String>\r\n    <sys:String x:Key=\"Convert_versions\">\r\n        Конвертировать версии (установить ключ без активации)\r\n    </sys:String>\r\n    <sys:String x:Key=\"Upgrade_full_version\">\r\n        Перейти на полную версию Windows\r\n    </sys:String>\r\n    <sys:String x:Key=\"test\">\r\n        тест текст\r\n    </sys:String>\r\n    <sys:String x:Key=\"Loading\">\r\n        Загрузка\r\n    </sys:String>\r\n    <sys:String x:Key=\"Activating\">\r\n        Активация\r\n    </sys:String>\r\n    <sys:String x:Key=\"Complete\">\r\n        Готово\r\n    </sys:String>\r\n    <sys:String x:Key=\"notifyIconTitle\">\r\n        CloudMoe Windows 10+ Activation Toolkit V2\r\n    </sys:String>\r\n    <sys:String x:Key=\"Running\">\r\n        Работает\r\n    </sys:String>\r\n    <sys:String x:Key=\"Experimental\">\r\n        Экспериментальный\r\n    </sys:String>\r\n    <sys:String x:Key=\"Attention\">\r\n        Внимание\r\n    </sys:String>\r\n    <sys:String x:Key=\"System_Edition\">\r\n        Версия системы\r\n    </sys:String>\r\n    <sys:String x:Key=\"May_be_not_be_supported\">\r\n        Версия вашей системы не найдена. Возможно, она не поддерживается.\r\n    </sys:String>\r\n    <sys:String x:Key=\"Only_find_experimental\">\r\n        Найдены только экспериментальные варианты для вашей системы. Скорее всего, активация завершится неудачей.\r\n    </sys:String>\r\n    <sys:String x:Key=\"notify_May_be_not_be_supported_try\">\r\n        Версия вашей системы может не поддерживаться, программа завершает свою работу. Попробуйте добавить --expact или -e в качестве аргумента для запуска.\r\n    </sys:String>\r\n    <sys:String x:Key=\"notify_May_be_not_be_supported_exit\">\r\n        Версия вашей системы может не поддерживаться, программа завершает свою работу.\r\n    </sys:String>\r\n    <sys:String x:Key=\"notify_Disconnect_to_server_exit\">\r\n        Невозможно подключиться к серверу, проверьте подключение к интернету или попробуйте позже, программа завершает свою работу.\r\n    </sys:String>\r\n    <sys:String x:Key=\"Disconnect_to_server_exit\">\r\n        Невозможно подключиться к серверу, проверьте подключение к интернету или попробуйте позже, программа завершает свою работу.\r\n    </sys:String>\r\n    <sys:String x:Key=\"RunInstall_Converting\">\r\n        Конвертирую\r\n    </sys:String>\r\n    <sys:String x:Key=\"RunAct_Activating\">\r\n        Активация\r\n    </sys:String>\r\n    <sys:String x:Key=\"RunInstall_Getting_Key\">\r\n        Получаю ключ через интернет\r\n    </sys:String>\r\n    <sys:String x:Key=\"RunAct_Getting_Key\">\r\n        Получаю ключ через интернет\r\n    </sys:String>\r\n    <sys:String x:Key=\"RunInstall_Uninstalling_old_Key\">\r\n        Удаляю старый ключ\r\n    </sys:String>\r\n    <sys:String x:Key=\"RunAct_Uninstalling_old_Key\">\r\n        Удаляю старый ключ\r\n    </sys:String>\r\n    <sys:String x:Key=\"RunAct_Uninstalling_old_Key_Exp\">\r\n        Удаляю старый ключ (Экспериментальный)\r\n    </sys:String>\r\n    <sys:String x:Key=\"RunInstall_Installing_Key\">\r\n        Устанавливаю ключ\r\n    </sys:String>\r\n    <sys:String x:Key=\"RunAct_Installing_Key\">\r\n        Устанавливаю ключ\r\n    </sys:String>\r\n    <sys:String x:Key=\"RunAct_Getting_edition_code_Exp\">\r\n        Получаю код версии (Экспериментальный)\r\n    </sys:String>\r\n    <sys:String x:Key=\"RunAct_Prepare_for_the_next_step_Exp\">\r\n        Подготовка к следующему шагу (Экспериментальный)\r\n    </sys:String>\r\n    <sys:String x:Key=\"RunAct_Writing_old_OS\">\r\n        Записываю возможности старой версии системы\r\n    </sys:String>\r\n    <sys:String x:Key=\"RunAct_Getting_free_upgrade_permissions\">\r\n        Получаю разрешения на бесплатное обновление\r\n    </sys:String>\r\n    <sys:String x:Key=\"RunAct_Cleaning_changes\">\r\n        Очищаю изменения\r\n    </sys:String>\r\n    <sys:String x:Key=\"RunAct_Getting_digital_license\">\r\n        Получаю цифровую лицензию\r\n    </sys:String>\r\n    <sys:String x:Key=\"RunUpgradeFullVersion_Upgrading\">\r\n        Обновляю\r\n    </sys:String>\r\n    <sys:String x:Key=\"CompleteTitle\">\r\n        Готово\r\n    </sys:String>\r\n    <sys:String x:Key=\"ErrorTitle\">\r\n        Ошибка\r\n    </sys:String>\r\n    <sys:String x:Key=\"ErrorCode\">\r\n        Код:\r\n    </sys:String>\r\n    <sys:String x:Key=\"SysMsg\">\r\n        Сообщение системы:\r\n    </sys:String>\r\n\r\n    <!--\r\n        Attention:\r\n        DO NOT USE ANY Indentation in Preserve Mode, Please!\r\n    -->\r\n\r\n    <sys:String x:Key=\"UpgradeFullVersionWindowsText\" xml:space=\"preserve\">\r\nВы используете базовую версию Windows, Вы можете использовать эту функцию, чтобы перейти на полную версию.&#10;(Если программа не отвечает, Ваша версия системы может не поддерживать переход на полную версию или уже в процессе перехода) &#10;&#10;Note:&#10;Данное действие необратимо. После перехода на полную версию Вы не сможете перейти обратно!&#10;&#10;Вы хотите продолжить?\r\n    </sys:String>\r\n    <sys:String x:Key=\"HelpText\" xml:space=\"preserve\">\r\nЭта программа теперь поддерживает аргументы командной строки при запуске!&#10;&#10;-a&#9;--auto&#9;&#9;Автоматическая активация.&#10;-h&#9;--hide&#9;&#9;Запустить в скрытом режиме (Работает только с --auto).&#10;-e&#9;--expact&#9;&#9;Экспериментальная активация.&#10;-l&#9;--log&#9;&#9;Вывод логов в файл.&#10;-?&#9;--help&#9;&#9;Показать эту справку.\r\n    </sys:String>\r\n    <sys:String x:Key=\"DonateTextConverted\" xml:space=\"preserve\">\r\nПоздравляю! &#10;&#10;Windows была успешно конвертирована.\r\n    </sys:String>\r\n    <sys:String x:Key=\"DonateTextActivated\" xml:space=\"preserve\">\r\nПоздравляю! &#10;&#10;Windows была успешно активирована.\r\n    </sys:String>\r\n    <sys:String x:Key=\"UpdateText\" xml:space=\"preserve\">\r\nБыла найдена новая версия CloudMoe Windows 10+ Activation Toolkit Digital Edition.&#10;Пожалуйста, обновите программу для полной поддержки.\r\n    </sys:String>\r\n    <sys:String x:Key=\"UpdateMustText\" xml:space=\"preserve\">\r\nБыло найдено обязательное обновление CloudMoe Windows 10+ Activation Toolkit Digital Edition.&#10;Программа не будет работать без этого обновления.\r\n    </sys:String>\r\n    <sys:String x:Key=\"ErrorMsg-0\" xml:space=\"preserve\">\r\nПри активации Windows требуется подключение к сети (для получения ключа) :)\r\n    </sys:String>\r\n    <sys:String x:Key=\"ErrorMsg-1\" xml:space=\"preserve\">\r\nНе удалось удалить старый ключ. :(\r\n    </sys:String>\r\n    <sys:String x:Key=\"ErrorMsg-1.1\" xml:space=\"preserve\">\r\nНе удалось установить ключ. Может, вы выбрали или ввели неправильную версию системы?\r\n    </sys:String>\r\n    <sys:String x:Key=\"ErrorMsg-1.2\" xml:space=\"preserve\">\r\nНе удалось получить код версии. :(\r\n    </sys:String>\r\n    <sys:String x:Key=\"ErrorMsg-2\" xml:space=\"preserve\">\r\nНе удалось установить ключ. Может, вы выбрали или ввели неправильную версию системы?\r\n    </sys:String>\r\n    <sys:String x:Key=\"ErrorMsg-3\" xml:space=\"preserve\">\r\nПревышено время. Может, вы выбрали или ввели неправильную версию системы?\r\n    </sys:String>\r\n    <sys:String x:Key=\"ErrorMsg-4\" xml:space=\"preserve\">\r\nАктивация не выполнена. :( &#10;Возможно: &#10;1.Эта версия Windows не поддерживает активацию цифровым ключом. &#10;2. Невозможно подключиться к серверу активации Microsoft Activation Server. &#10;3. Другие неизвестные ошибки. &#10;&#10;Вы можете попробовать еще раз позже. &#10;\r\n    </sys:String>\r\n    <sys:String x:Key=\"Only_find_ltok\" xml:space=\"preserve\">\r\nНайдены только Long-Term Offline KMS (LTOK) варианты, которые можно использовать с текущей версией системы. &#10;Это значит, что при переустановке системы, Вам надо будет активировать ее заново. &#10;Не волнуйтесь, это не вариант активации legacy KMS, который может продолжать активироваться в течение 180 дней в оффлайн режиме. &#10;LTOK (Префикс Offline-KMS) может продолжать активироваться до 2038 года даже без подключения к сети!\r\n    </sys:String>\r\n    <sys:String x:Key=\"DonateTextWillActivated\" xml:space=\"preserve\">\r\nПоздравляю! &#10;&#10;Windows готова к активации. &#10;Но похоже, что Windows не может подключиться к серверу активации Microsoft Activation Server.&#10;Ваша система будет активирована автоматически при следующем подключении к Microsoft Activation Server.\r\n    </sys:String>\r\n</ResourceDictionary>\r\n"
  },
  {
    "path": "CMWTAT_DIGITAL/Lang/zh.xaml",
    "content": "﻿<ResourceDictionary xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\" xmlns:sys=\"clr-namespace:System;assembly=mscorlib\">\n\n    <!--\n    Version: 2.6.0.0\n    -->\n\n    <!--FontFamily Dictionary-->\n\n    <FontFamily x:Key=\"Font\">\n        Microsoft YaHei UI\n    </FontFamily>\n\n    <!--String Dictionary-->\n\n    <sys:String x:Key=\"OK\">\n        好\n    </sys:String>\n    <sys:String x:Key=\"Cancel\">\n        取消\n    </sys:String>\n    <sys:String x:Key=\"Refuse\">\n        丑拒\n    </sys:String>\n    <sys:String x:Key=\"DonateBtn\">\n        请顿晚饭，感谢作者\n    </sys:String>\n    <sys:String x:Key=\"Exit\">\n        退出\n    </sys:String>\n    <sys:String x:Key=\"UpdateNow\">\n        立即更新\n    </sys:String>\n    <sys:String x:Key=\"Ignore\">\n        忽略\n    </sys:String>\n    <sys:String x:Key=\"TitleName\">\n        云萌 Windows 10+ 数字权利激活工具\n    </sys:String>\n    <sys:String x:Key=\"AppName\">\n        CMWTAT Digital Edition V2\n    </sys:String>\n    <sys:String x:Key=\"UpdateTitle\">\n        新版本可用！\n    </sys:String>\n    <sys:String x:Key=\"UpgradeFullVersionWindowsTitle\">\n        升级到完整版 Windows\n    </sys:String>\n    <sys:String x:Key=\"CurrentVersion\">\n        当前版本\n    </sys:String>\n    <sys:String x:Key=\"LatestVersion\">\n        最新版本\n    </sys:String>\n    <sys:String x:Key=\"Auto_Mode\">\n        自动模式\n    </sys:String>\n    <sys:String x:Key=\"Manual_Mode\">\n        手动模式\n    </sys:String>\n    <sys:String x:Key=\"Activate_Button\">\n        激活\n    </sys:String>\n    <sys:String x:Key=\"Convert_versions\">\n        版本无缝转换 (安装产品密钥而不激活)\n    </sys:String>\n    <sys:String x:Key=\"Upgrade_full_version\">\n        升级到完整版 Windows\n    </sys:String>\n    <sys:String x:Key=\"test\">\n        测试文本\n    </sys:String>\n    <sys:String x:Key=\"Loading\">\n        载入中\n    </sys:String>\n    <sys:String x:Key=\"Activating\">\n        激活中\n    </sys:String>\n    <sys:String x:Key=\"Complete\">\n        完成\n    </sys:String>\n    <sys:String x:Key=\"notifyIconTitle\">\n        云萌 Windows 10+ 激活工具 V2\n    </sys:String>\n    <sys:String x:Key=\"Running\">\n        运行中。\n    </sys:String>\n    <sys:String x:Key=\"Experimental\">\n        实验性\n    </sys:String>\n    <sys:String x:Key=\"Attention\">\n        注意\n    </sys:String>\n    <sys:String x:Key=\"System_Edition\">\n        系统版本\n    </sys:String>\n    <sys:String x:Key=\"May_be_not_be_supported\">\n        无法在支持列表里识别您的操作系统版本，可能不受支持。\n    </sys:String>\n    <sys:String x:Key=\"Only_find_experimental\">\n        只找到用于此版本系统的实验性选项，成功概率极低。\n    </sys:String>\n    <sys:String x:Key=\"notify_May_be_not_be_supported_try\">\n        你的系统版本可能不受支持，程序即将退出。不过你可以尝试添加 --expact 或者 -e 参数来启动。\n    </sys:String>\n    <sys:String x:Key=\"notify_May_be_not_be_supported_exit\">\n        你的系统版本可能不受支持，程序即将退出。\n    </sys:String>\n    <sys:String x:Key=\"notify_Disconnect_to_server_exit\">\n        无法连接服务器，请检查网络并尝试稍后重试，程序即将退出。\n    </sys:String>\n    <sys:String x:Key=\"Disconnect_to_server_exit\">\n        无法连接服务器，请检查网络并尝试稍后重试，程序即将退出。\n    </sys:String>\n    <sys:String x:Key=\"RunInstall_Converting\">\n        转换中\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Activating\">\n        激活中\n    </sys:String>\n    <sys:String x:Key=\"RunInstall_Getting_Key\">\n        正在通过网络获取产品密钥\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Getting_Key\">\n        正在通过网络获取产品密钥\n    </sys:String>\n    <sys:String x:Key=\"RunInstall_Uninstalling_old_Key\">\n        正在卸载旧的产品密钥\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Uninstalling_old_Key\">\n        正在卸载旧的产品密钥\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Uninstalling_old_Key_Exp\">\n        正在卸载旧的产品密钥（实验性）\n    </sys:String>\n    <sys:String x:Key=\"RunInstall_Installing_Key\">\n        正在安装产品密钥\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Installing_Key\">\n        正在安装产品密钥\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Getting_edition_code_Exp\">\n        正在获取版本代号（实验性）\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Prepare_for_the_next_step_Exp\">\n        正在准备下一步（实验性）\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Writing_old_OS\">\n        正在写入旧系统残留特征\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Getting_free_upgrade_permissions\">\n        正在获取免费升级许可\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Cleaning_changes\">\n        正在清理更改\n    </sys:String>\n    <sys:String x:Key=\"RunAct_Getting_digital_license\">\n        正在获取数字许可证\n    </sys:String>\n    <sys:String x:Key=\"RunUpgradeFullVersion_Upgrading\">\n        正在升级\n    </sys:String>\n    <sys:String x:Key=\"CompleteTitle\">\n        完成\n    </sys:String>\n    <sys:String x:Key=\"ErrorTitle\">\n        错误\n    </sys:String>\n    <sys:String x:Key=\"ErrorCode\">\n        代码：\n    </sys:String>\n    <sys:String x:Key=\"SysMsg\">\n        系统返回：\n    </sys:String>\n\n    <!--\n        Attention:\n        DO NOT USE ANY Indentation in Preserve Mode, Please!\n    -->\n\n    <sys:String x:Key=\"UpgradeFullVersionWindowsText\" xml:space=\"preserve\">\n当前正在使用核心版 Windows，你可以通过此功能升级到完整版 Windows。&#10;（如果操作没有反应可能是当前版本不支持升级，或者正在升级）&#10;&#10;注意：&#10;此操作不可逆，一旦升级完成将无法回退到核心版 Windows！&#10;&#10;确定要执行升级操作吗？\n    </sys:String>\n    <sys:String x:Key=\"HelpText\" xml:space=\"preserve\">\n这个应用现已支持通过控制台参数启动！&#10;&#10;-a&#9;--auto&#9;&#9;自动激活。&#10;-h&#9;--hide&#9;&#9;隐藏模式运行 (只能与 -auto 一起使用)。&#10;-e&#9;--expact&#9;实验性激活。&#10;-l&#9;--log&#9;&#9;输出日志到文件。&#10;-?&#9;--help&#9;&#9;显示此说明对话框。\n    </sys:String>\n    <sys:String x:Key=\"DonateTextConverted\" xml:space=\"preserve\">\n祝贺！ &#10;&#10;Windows 已经成功转换。\n    </sys:String>\n    <sys:String x:Key=\"DonateTextActivated\" xml:space=\"preserve\">\n祝贺！ &#10;&#10;Windows 已经成功激活。\n    </sys:String>\n    <sys:String x:Key=\"UpdateText\" xml:space=\"preserve\">\n我们发现了新版本的 云萌 Windows 10+ 数字权利激活工具。&#10;请更新到最新版本来确保它可以正常工作。\n    </sys:String>\n    <sys:String x:Key=\"UpdateMustText\" xml:space=\"preserve\">\n我们发现了新版本的 云萌 Windows 10+ 数字权利激活工具。&#10;由于您的版本太旧，所以您必须更新到最新版本来确保它可以正常工作。\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-0\" xml:space=\"preserve\">\n激活 Windows 需要网络获取产品密钥 :)\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-1\" xml:space=\"preserve\">\n无法卸载旧密钥 :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-1.1\" xml:space=\"preserve\">\n无法安装密钥，可能没有选择或输入正确的版本 :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-1.2\" xml:space=\"preserve\">\n无法获取版本代号 :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-2\" xml:space=\"preserve\">\n无法安装密钥，可能没有选择或输入正确的版本 :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-3\" xml:space=\"preserve\">\n执行超时，可能没有选择正确或输入的版本 :(\n    </sys:String>\n    <sys:String x:Key=\"ErrorMsg-4\" xml:space=\"preserve\">\n激活失败。 :( &#10;可能因为: &#10;1. 此版本/类型的 Windows 不支持数字权利（数字许可证）方式激活。 &#10;2. 无法连接到微软Windows激活服务器。 &#10;3. 其它未知问题。 &#10;&#10;你可以尝试稍等片刻或者稍后重试。 &#10;\n    </sys:String>\n    <sys:String x:Key=\"Only_find_ltok\" xml:space=\"preserve\">\n只找到用于此版本系统的长期离线KMS（批量激活）选项。&#10;这表示您将不能在下次重装系统后自动激活。&#10;不过无需担心，这不同于传统的KMS激活方式（离线状态下可以保持激活180天）&#10;长期离线KMS（Offline-KMS）即使不联网也可以保持激活值2038年！\n    </sys:String>\n    <sys:String x:Key=\"DonateTextWillActivated\" xml:space=\"preserve\">\n祝贺！ &#10;&#10;Windows 已经快要激活成功了。&#10;不过似乎Windows无法连接到微软激活服务器，&#10;当下次连接上服务器时系统将会自动激活。\n    </sys:String>\n</ResourceDictionary>"
  },
  {
    "path": "CMWTAT_DIGITAL/MainWindow.xaml",
    "content": "﻿<Window x:Class=\"CMWTAT_DIGITAL.MainWindow\"\n        xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n        xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"\n        xmlns:d=\"http://schemas.microsoft.com/expression/blend/2008\"\n        xmlns:mc=\"http://schemas.openxmlformats.org/markup-compatibility/2006\"\n        xmlns:domain=\"clr-namespace:CMWTAT_DIGITAL.Domain\"\n        xmlns:local=\"clr-namespace:CMWTAT_DIGITAL\"\n        mc:Ignorable=\"d\"\n        Title=\"{DynamicResource TitleName}\" Height=\"645\" Width=\"450\"\n        ResizeMode=\"NoResize\"\n        xmlns:materialDesign=\"http://materialdesigninxaml.net/winfx/xaml/themes\"\n        TextElement.Foreground=\"{DynamicResource MaterialDesignBody}\"\n        TextElement.FontWeight=\"Regular\"\n        TextElement.FontSize=\"13\"\n        TextOptions.TextFormattingMode=\"Ideal\"\n        TextOptions.TextRenderingMode=\"Aliased\"\n        Background=\"{DynamicResource MaterialDesignPaper}\"\n        d:DataContext=\"{d:DesignInstance domain:ViewModel, d:IsDesignTimeCreatable=False}\"\n        Icon=\"CMWTAT.ico\"\n        Closing=\"Window_Closing\"\n        FontFamily=\"{DynamicResource Font}\"\n        Activated=\"Window_Activated\"\n        WindowStartupLocation=\"CenterScreen\"\n        Loaded=\"Window_Loaded\"\n        >\n    <!--FontFamily=\"{DynamicResource MaterialDesignFont}\"-->\n    <Grid>\n        <Grid Margin=\"30,30,30,30\" VerticalAlignment=\"Center\">\n            <StackPanel>\n                <materialDesign:Card Padding=\"30\" Margin=\"0,0,0,0\" materialDesign:ShadowAssist.ShadowDepth=\"Depth3\" UniformCornerRadius=\"8\">\n                    <TextBlock FontFamily=\"{DynamicResource Font}\"  Style=\"{DynamicResource MaterialDesignHeadline6TextBlock}\" ><Run Text=\"{DynamicResource AppName}\"/></TextBlock>\n                </materialDesign:Card>\n                <materialDesign:Card Padding=\"30,30\" Margin=\"0,30,0,0\" materialDesign:ShadowAssist.ShadowDepth=\"Depth3\" UniformCornerRadius=\"8\">\n                    <StackPanel>\n                        <Grid>\n                            <ComboBox x:Name=\"SystemEditionText\" DisplayMemberPath=\"DisplayOS\" VerticalAlignment=\"Center\" Visibility=\"Visible\"/>\n                            <TextBox x:Name=\"SystemEditionTextInput\" materialDesign:HintAssist.Hint=\"XXXXX-XXXXX-XXXXX-XXXXX-XXXXX\" MaxLength=\"29\" xmlns:input=\"clr-namespace:System.Windows.Input;assembly=PresentationCore\" input:InputMethod.IsInputMethodEnabled=\"False\" VerticalAlignment=\"Center\" Visibility=\"Hidden\" TextChanged=\"SystemEditionTextInput_TextChanged\">\n                                <TextBox.Text>\n                                    <Binding Path=\"SN\" UpdateSourceTrigger=\"PropertyChanged\">\n                                        <Binding.ValidationRules>\n                                            <domain:IsSN ValidatesOnTargetUpdated=\"True\"/>\n                                        </Binding.ValidationRules>\n                                    </Binding>\n                                </TextBox.Text>\n                            </TextBox>\n                        </Grid>\n                        <!--<TextBlock FontFamily=\"{DynamicResource Font}\"  Style=\"{DynamicResource MaterialDesignTitleTextBlock}\" x:Name=\"SystemEditionText\"  Text=\"Checking System\" />-->\n                        <StackPanel HorizontalAlignment=\"Center\" Orientation=\"Horizontal\" Margin=\"0,30,0,0\">\n                            <RadioButton x:Name=\"AutoRadio\" Content=\"{DynamicResource Auto_Mode}\" Margin=\"30,0,30,0\" IsChecked=\"True\" Checked=\"A_RadioButton_Checked\"/>\n                            <RadioButton x:Name=\"ManualRadio\" Content=\"{DynamicResource Manual_Mode}\" Margin=\"30,0,30,0\" Checked=\"M_RadioButton_Checked\"/>\n                        </StackPanel>\n                    </StackPanel>\n                </materialDesign:Card>\n                <Button FontFamily=\"{DynamicResource Font}\" x:Name=\"actbtn\" Click=\"Activate_Button_Click\" Content=\"{DynamicResource Activate_Button}\" materialDesign:ShadowAssist.ShadowDepth=\"Depth3\" materialDesign:ShadowAssist.Darken=\"False\" materialDesign:ButtonAssist.CornerRadius=\"8\" Margin=\"0,30,0,0\" Height=\"65\" Cursor=\"Hand\" />\n                <Button FontFamily=\"{DynamicResource Font}\" x:Name=\"installbtn\" Click=\"installbtn_Click\" Content=\"{DynamicResource Convert_versions}\" materialDesign:ShadowAssist.ShadowDepth=\"Depth3\" materialDesign:ShadowAssist.Darken=\"False\" materialDesign:ButtonAssist.CornerRadius=\"8\" Margin=\"0,30,0,0\" Height=\"65\" Cursor=\"Hand\"/>\n                <Button FontFamily=\"{DynamicResource Font}\" x:Name=\"upgradefullbtn\" Click=\"upgradefullbtn_Click\" Content=\"{DynamicResource Upgrade_full_version}\" materialDesign:ShadowAssist.ShadowDepth=\"Depth3\" materialDesign:ShadowAssist.Darken=\"False\" materialDesign:ButtonAssist.CornerRadius=\"8\" Margin=\"0,30,0,0\" Height=\"65\" Cursor=\"Hand\"/>\n            </StackPanel>\n        </Grid>\n        <Grid x:Name=\"DialogHostGrid\" Visibility=\"Hidden\">\n            <materialDesign:DialogHost x:Name=\"DialogWait\" IsOpen=\"False\">\n                <materialDesign:DialogHost.DialogContent>\n                    <Grid>\n                        <materialDesign:Card UniformCornerRadius=\"8\" materialDesign:ShadowAssist.ShadowDepth=\"Depth3\">\n                            <StackPanel>\n                                <StackPanel Margin=\"32,24,32,24\">\n                                    <ProgressBar Style=\"{DynamicResource MaterialDesignCircularProgressBar}\" HorizontalAlignment=\"Center\" Margin=\"0,0,0,0\" IsIndeterminate=\"True\" Value=\"0\" VerticalAlignment=\"Top\" Width=\"32\" Height=\"32\" />\n                                    <TextBlock FontFamily=\"{DynamicResource Font}\"  Style=\"{DynamicResource MaterialDesignHeadline6TextBlock}\"  Margin=\"0,24,0,0\" HorizontalAlignment=\"Center\" VerticalAlignment=\"Bottom\" FontSize=\"14\" Text=\"{DynamicResource Loading}\" />\n                                </StackPanel>\n                            </StackPanel>\n                        </materialDesign:Card>\n                    </Grid>\n                </materialDesign:DialogHost.DialogContent>\n            </materialDesign:DialogHost>\n            <materialDesign:DialogHost x:Name=\"DialogActProg\" IsOpen=\"False\">\n                <materialDesign:DialogHost.DialogContent>\n                    <Grid>\n                        <materialDesign:Card UniformCornerRadius=\"8\" materialDesign:ShadowAssist.ShadowDepth=\"Depth3\">\n                            <StackPanel>\n                                <StackPanel Margin=\"32,24,32,24\">\n                                    <ProgressBar Style=\"{DynamicResource MaterialDesignCircularProgressBar}\" HorizontalAlignment=\"Center\" Margin=\"0,0,0,0\" IsIndeterminate=\"True\" Value=\"0\" VerticalAlignment=\"Top\" Width=\"32\" Height=\"32\" />\n                                    <TextBlock FontFamily=\"{DynamicResource Font}\"  Style=\"{DynamicResource MaterialDesignHeadline6TextBlock}\" x:Name=\"activatingtext\"  Margin=\"0,24,0,0\" HorizontalAlignment=\"Center\" VerticalAlignment=\"Bottom\" FontSize=\"14\" Text=\"{DynamicResource Activating}\" />\n                                </StackPanel>\n                            </StackPanel>\n                        </materialDesign:Card>\n                    </Grid>\n                </materialDesign:DialogHost.DialogContent>\n            </materialDesign:DialogHost>\n            <materialDesign:DialogHost x:Name=\"DialogWithCancel\" IsOpen=\"False\">\n                <materialDesign:DialogHost.DialogContent>\n                    <Grid>\n                        <materialDesign:Card UniformCornerRadius=\"8\" materialDesign:ShadowAssist.ShadowDepth=\"Depth3\">\n                            <StackPanel>\n                                <StackPanel Margin=\"24,24,24,8\">\n                                    <ProgressBar Style=\"{DynamicResource MaterialDesignCircularProgressBar}\" HorizontalAlignment=\"Center\" Margin=\"0,0,0,0\" IsIndeterminate=\"True\" Value=\"0\" VerticalAlignment=\"Top\" Width=\"32\" Height=\"32\" />\n                                    <TextBlock FontFamily=\"{DynamicResource Font}\"  Style=\"{DynamicResource MaterialDesignHeadline6TextBlock}\"  Margin=\"24,16,24,0\" HorizontalAlignment=\"Center\" VerticalAlignment=\"Bottom\" FontSize=\"14\" Text=\"{DynamicResource Loading}\" />\n                                </StackPanel>\n                                <StackPanel HorizontalAlignment=\"Right\" VerticalAlignment=\"Bottom\" Orientation=\"Horizontal\" Margin=\"8,0,8,8\">\n                                    <Button FontFamily=\"{DynamicResource Font}\" Style=\"{StaticResource MaterialDesignFlatButton}\" IsCancel=\"True\" \n                                            Command=\"{x:Static materialDesign:DialogHost.CloseDialogCommand}\"\n                                            CommandParameter=\"Sample2Cancel\"\n                                            HorizontalAlignment=\"Center\" Content=\"{DynamicResource Cancel}\" />\n                                </StackPanel>\n                            </StackPanel>\n                        </materialDesign:Card>\n                    </Grid>\n                </materialDesign:DialogHost.DialogContent>\n            </materialDesign:DialogHost>\n            <materialDesign:DialogHost x:Name=\"DialogWithOK\" IsOpen=\"False\">\n                <materialDesign:DialogHost.DialogContent>\n                    <Grid>\n                        <materialDesign:Card UniformCornerRadius=\"8\" materialDesign:ShadowAssist.ShadowDepth=\"Depth3\">\n                            <StackPanel>\n                                <StackPanel Margin=\"16,16,16,8\">\n                                    <!--<ProgressBar Style=\"{DynamicResource MaterialDesignCircularProgressBar}\" HorizontalAlignment=\"Center\" Margin=\"0,0,0,0\" IsIndeterminate=\"True\" Value=\"0\" VerticalAlignment=\"Top\" Width=\"32\" Height=\"32\" />-->\n                                    <TextBlock FontFamily=\"{DynamicResource Font}\"  Style=\"{DynamicResource MaterialDesignHeadline6TextBlock}\"  Margin=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Top\" FontSize=\"16\" FontWeight=\"Bold\" Text=\"Title\" />\n                                    <TextBlock FontFamily=\"{DynamicResource Font}\"  Style=\"{DynamicResource MaterialDesignHeadline6TextBlock}\"  Margin=\"0,8,0,0\" HorizontalAlignment=\"Center\" VerticalAlignment=\"Bottom\" FontSize=\"14\" Text=\"Hello World\" />\n                                </StackPanel>\n                                <StackPanel HorizontalAlignment=\"Right\" VerticalAlignment=\"Bottom\" Orientation=\"Horizontal\" Margin=\"8,0,8,8\">\n                                    <Button FontFamily=\"{DynamicResource Font}\" Style=\"{StaticResource MaterialDesignFlatButton}\" IsCancel=\"True\" \n                                            Command=\"{x:Static materialDesign:DialogHost.CloseDialogCommand}\"\n                                            CommandParameter=\"Sample2Cancel\"\n                                            HorizontalAlignment=\"Center\" Content=\"{DynamicResource OK}\" />\n                                </StackPanel>\n                            </StackPanel>\n                        </materialDesign:Card>\n                    </Grid>\n                </materialDesign:DialogHost.DialogContent>\n            </materialDesign:DialogHost>\n            <materialDesign:DialogHost x:Name=\"DialogHelp\" IsOpen=\"False\">\n                <materialDesign:DialogHost.DialogContent>\n                    <Grid>\n                        <materialDesign:Card UniformCornerRadius=\"8\" materialDesign:ShadowAssist.ShadowDepth=\"Depth3\">\n                            <StackPanel>\n                                <StackPanel Margin=\"16,16,16,8\">\n                                    <!--<ProgressBar Style=\"{DynamicResource MaterialDesignCircularProgressBar}\" HorizontalAlignment=\"Center\" Margin=\"0,0,0,0\" IsIndeterminate=\"True\" Value=\"0\" VerticalAlignment=\"Top\" Width=\"32\" Height=\"32\" />-->\n                                    <TextBlock FontFamily=\"{DynamicResource Font}\"  Style=\"{DynamicResource MaterialDesignHeadline6TextBlock}\"  Margin=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Top\" FontSize=\"16\" FontWeight=\"Bold\" Text=\"Help\"></TextBlock>\n                                    <TextBlock FontFamily=\"{DynamicResource Font}\"  Style=\"{DynamicResource MaterialDesignHeadline6TextBlock}\"  Margin=\"0,8,0,0\" HorizontalAlignment=\"Center\" VerticalAlignment=\"Bottom\" FontSize=\"14\" Text=\"{DynamicResource HelpText}\"></TextBlock>\n                                </StackPanel>\n                                <StackPanel HorizontalAlignment=\"Right\" VerticalAlignment=\"Bottom\" Orientation=\"Horizontal\" Margin=\"8,0,8,8\">\n                                    <Button FontFamily=\"{DynamicResource Font}\" Style=\"{StaticResource MaterialDesignFlatButton}\" IsCancel=\"True\" \n                                            Command=\"{x:Static materialDesign:DialogHost.CloseDialogCommand}\"\n                                            CommandParameter=\"Sample2Cancel\"\n                                            HorizontalAlignment=\"Center\" Content=\"{DynamicResource OK}\" />\n                                </StackPanel>\n                            </StackPanel>\n                        </materialDesign:Card>\n                    </Grid>\n                </materialDesign:DialogHost.DialogContent>\n            </materialDesign:DialogHost>\n            <materialDesign:DialogHost x:Name=\"DialogWithExit\" IsOpen=\"False\">\n                <materialDesign:DialogHost.DialogContent>\n                    <Grid>\n                        <materialDesign:Card UniformCornerRadius=\"8\" materialDesign:ShadowAssist.ShadowDepth=\"Depth3\">\n                            <StackPanel>\n                                <StackPanel Margin=\"16,16,16,8\">\n                                    <!--<ProgressBar Style=\"{DynamicResource MaterialDesignCircularProgressBar}\" HorizontalAlignment=\"Center\" Margin=\"0,0,0,0\" IsIndeterminate=\"True\" Value=\"0\" VerticalAlignment=\"Top\" Width=\"32\" Height=\"32\" />-->\n                                    <TextBlock FontFamily=\"{DynamicResource Font}\"  Style=\"{DynamicResource MaterialDesignHeadline6TextBlock}\" x:Name=\"DialogWithExitTitle\"  Margin=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Top\" FontSize=\"16\" FontWeight=\"Bold\" Text=\"{DynamicResource ErrorTitle}\"/>\n                                    <TextBlock FontFamily=\"{DynamicResource Font}\"  Style=\"{DynamicResource MaterialDesignHeadline6TextBlock}\" x:Name=\"DialogWithExitText\"  Margin=\"0,8,0,0\" HorizontalAlignment=\"Center\" VerticalAlignment=\"Bottom\" FontSize=\"14\" Text=\"{DynamicResource Disconnect_to_server_exit}\"/>\n                                </StackPanel>\n                                <StackPanel HorizontalAlignment=\"Right\" VerticalAlignment=\"Bottom\" Orientation=\"Horizontal\" Margin=\"8,0,8,8\">\n                                    <Button FontFamily=\"{DynamicResource Font}\" Style=\"{StaticResource MaterialDesignFlatButton}\" IsCancel=\"True\" \n                                        Click=\"Exit_Button_Click\"\n                                        HorizontalAlignment=\"Center\" Content=\"{DynamicResource Exit}\"/>\n                                </StackPanel>\n                            </StackPanel>\n                        </materialDesign:Card>\n                    </Grid>\n                </materialDesign:DialogHost.DialogContent>\n            </materialDesign:DialogHost>\n            <materialDesign:DialogHost x:Name=\"DialogWithOKToCloseDialog\" IsOpen=\"False\">\n                <materialDesign:DialogHost.DialogContent>\n                    <Grid>\n                        <materialDesign:Card UniformCornerRadius=\"8\" materialDesign:ShadowAssist.ShadowDepth=\"Depth3\">\n                            <StackPanel>\n                                <StackPanel Margin=\"16,16,16,8\">\n                                    <!--<ProgressBar Style=\"{DynamicResource MaterialDesignCircularProgressBar}\" HorizontalAlignment=\"Center\" Margin=\"0,0,0,0\" IsIndeterminate=\"True\" Value=\"0\" VerticalAlignment=\"Top\" Width=\"32\" Height=\"32\" />-->\n                                    <TextBlock FontFamily=\"{DynamicResource Font}\"  Style=\"{DynamicResource MaterialDesignHeadline6TextBlock}\" x:Name=\"DialogWithOKToCloseDialogTitle\"  Margin=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Top\" FontSize=\"16\" FontWeight=\"Bold\" >Title</TextBlock>\n                                    <TextBlock FontFamily=\"{DynamicResource Font}\"  Style=\"{DynamicResource MaterialDesignHeadline6TextBlock}\" x:Name=\"DialogWithOKToCloseDialogText\"  Margin=\"0,8,0,0\" HorizontalAlignment=\"Center\" VerticalAlignment=\"Bottom\" FontSize=\"14\" >Text</TextBlock>\n                                </StackPanel>\n                                <StackPanel HorizontalAlignment=\"Right\" VerticalAlignment=\"Bottom\" Orientation=\"Horizontal\" Margin=\"8,0,8,8\">\n                                    <Button FontFamily=\"{DynamicResource Font}\" Style=\"{StaticResource MaterialDesignFlatButton}\" IsCancel=\"True\" \n                                            Command=\"{x:Static materialDesign:DialogHost.CloseDialogCommand}\"\n                                            HorizontalAlignment=\"Center\" Content=\"{DynamicResource OK}\"/>\n                                </StackPanel>\n                            </StackPanel>\n                        </materialDesign:Card>\n                    </Grid>\n                </materialDesign:DialogHost.DialogContent>\n            </materialDesign:DialogHost>\n            <materialDesign:DialogHost x:Name=\"DialogWithOKToCloseDialogDonate\" IsOpen=\"False\">\n                <materialDesign:DialogHost.DialogContent>\n                    <Grid>\n                        <materialDesign:Card UniformCornerRadius=\"8\" materialDesign:ShadowAssist.ShadowDepth=\"Depth3\">\n                            <StackPanel>\n                                <StackPanel Margin=\"16,16,16,8\">\n                                    <!--<ProgressBar Style=\"{DynamicResource MaterialDesignCircularProgressBar}\" HorizontalAlignment=\"Center\" Margin=\"0,0,0,0\" IsIndeterminate=\"True\" Value=\"0\" VerticalAlignment=\"Top\" Width=\"32\" Height=\"32\" />-->\n                                    <TextBlock FontFamily=\"{DynamicResource Font}\"  Style=\"{DynamicResource MaterialDesignHeadline6TextBlock}\" x:Name=\"DialogWithOKToCloseDialogDonateTitle\"  Margin=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Top\" FontSize=\"16\" FontWeight=\"Bold\" Text=\"{DynamicResource Complete}\" />\n                                    <TextBlock FontFamily=\"{DynamicResource Font}\"  Style=\"{DynamicResource MaterialDesignHeadline6TextBlock}\" x:Name=\"DialogWithOKToCloseDialogDonateText\"  Margin=\"0,8,0,0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Bottom\" FontSize=\"14\" Text=\"{DynamicResource DonateTextActivated}\" />\n                                </StackPanel>\n                                <StackPanel HorizontalAlignment=\"Right\" VerticalAlignment=\"Bottom\" Orientation=\"Horizontal\" Margin=\"8,0,8,8\">\n                                    <Button FontFamily=\"{DynamicResource Font}\" Style=\"{StaticResource MaterialDesignFlatButton}\" IsCancel=\"True\" \n                                            Command=\"{x:Static materialDesign:DialogHost.CloseDialogCommand}\" HorizontalAlignment=\"Center\" Content=\"{DynamicResource Refuse}\"/>\n                                    <Button FontFamily=\"{DynamicResource Font}\" Style=\"{StaticResource MaterialDesignFlatButton}\" IsCancel=\"True\" \n                                            Click=\"Donate_Button_Click\" HorizontalAlignment=\"Center\" Content=\"{DynamicResource DonateBtn}\"/>\n                                </StackPanel>\n                            </StackPanel>\n                        </materialDesign:Card>\n                    </Grid>\n                </materialDesign:DialogHost.DialogContent>\n            </materialDesign:DialogHost>\n            <materialDesign:DialogHost x:Name=\"DialogUpdate\" IsOpen=\"False\">\n                <materialDesign:DialogHost.DialogContent>\n                    <Grid>\n                        <materialDesign:Card UniformCornerRadius=\"8\" materialDesign:ShadowAssist.ShadowDepth=\"Depth3\">\n                            <StackPanel>\n                                <StackPanel Margin=\"16,16,16,8\">\n                                    <!--<ProgressBar Style=\"{DynamicResource MaterialDesignCircularProgressBar}\" HorizontalAlignment=\"Center\" Margin=\"0,0,0,0\" IsIndeterminate=\"True\" Value=\"0\" VerticalAlignment=\"Top\" Width=\"32\" Height=\"32\" />-->\n                                    <TextBlock FontFamily=\"{DynamicResource Font}\"  Style=\"{DynamicResource MaterialDesignHeadline6TextBlock}\" x:Name=\"DialogUpdateTitle\"  Margin=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Top\" FontSize=\"16\" FontWeight=\"Bold\" Text=\"{DynamicResource UpdateTitle}\" />\n                                    <TextBlock FontFamily=\"{DynamicResource Font}\"  Style=\"{DynamicResource MaterialDesignHeadline6TextBlock}\" x:Name=\"DialogUpdateText\"  Margin=\"0,8,0,0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Bottom\" FontSize=\"14\" Text=\"{DynamicResource UpdateText}\" />\n                                </StackPanel>\n                                <StackPanel HorizontalAlignment=\"Right\" VerticalAlignment=\"Bottom\" Orientation=\"Horizontal\" Margin=\"8,0,8,8\">\n                                    <Button x:Name=\"IgnoreUpdate\" FontFamily=\"{DynamicResource Font}\" Style=\"{StaticResource MaterialDesignFlatButton}\" IsCancel=\"True\"\n                                            Command=\"{x:Static materialDesign:DialogHost.CloseDialogCommand}\" HorizontalAlignment=\"Center\" Content=\"{DynamicResource Ignore}\"/>\n                                    <Button x:Name=\"UpdateBtn\" FontFamily=\"{DynamicResource Font}\" Style=\"{StaticResource MaterialDesignFlatButton}\" IsCancel=\"True\" \n                                            Click=\"UpdateBtn_Click\" HorizontalAlignment=\"Center\" Content=\"{DynamicResource UpdateNow}\"/>\n                                </StackPanel>\n                            </StackPanel>\n                        </materialDesign:Card>\n                    </Grid>\n                </materialDesign:DialogHost.DialogContent>\n            </materialDesign:DialogHost>\n            <materialDesign:DialogHost x:Name=\"DialogUpgradeFullVersion\" IsOpen=\"False\">\n                <materialDesign:DialogHost.DialogContent>\n                    <Grid>\n                        <materialDesign:Card UniformCornerRadius=\"8\" materialDesign:ShadowAssist.ShadowDepth=\"Depth3\">\n                            <StackPanel>\n                                <StackPanel Margin=\"16,16,16,8\">\n                                    <!--<ProgressBar Style=\"{DynamicResource MaterialDesignCircularProgressBar}\" HorizontalAlignment=\"Center\" Margin=\"0,0,0,0\" IsIndeterminate=\"True\" Value=\"0\" VerticalAlignment=\"Top\" Width=\"32\" Height=\"32\" />-->\n                                    <TextBlock FontFamily=\"{DynamicResource Font}\"  Style=\"{DynamicResource MaterialDesignTitleTextBlock}\" Margin=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Top\" FontSize=\"16\" FontWeight=\"Bold\" Text=\"{DynamicResource UpgradeFullVersionWindowsTitle}\" />\n                                    <TextBlock FontFamily=\"{DynamicResource Font}\"  Style=\"{DynamicResource MaterialDesignTitleTextBlock}\" Margin=\"0,8,0,0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Bottom\" FontSize=\"14\" Text=\"{DynamicResource UpgradeFullVersionWindowsText}\" />\n                                </StackPanel>\n                                <StackPanel HorizontalAlignment=\"Right\" VerticalAlignment=\"Bottom\" Orientation=\"Horizontal\" Margin=\"8,0,8,8\">\n                                    <Button FontFamily=\"{DynamicResource Font}\" Style=\"{StaticResource MaterialDesignFlatButton}\" IsCancel=\"True\"\n                                            Command=\"{x:Static materialDesign:DialogHost.CloseDialogCommand}\" HorizontalAlignment=\"Center\" Content=\"{DynamicResource Cancel}\"/>\n                                    <Button FontFamily=\"{DynamicResource Font}\" Style=\"{StaticResource MaterialDesignFlatButton}\" IsCancel=\"True\" \n                                            Click=\"UpgradeFullVersionWindows_Click\" HorizontalAlignment=\"Center\" Content=\"{DynamicResource OK}\"/>\n                                </StackPanel>\n                            </StackPanel>\n                        </materialDesign:Card>\n                    </Grid>\n                </materialDesign:DialogHost.DialogContent>\n            </materialDesign:DialogHost>\n        </Grid>\n    </Grid>\n\n</Window>\n"
  },
  {
    "path": "CMWTAT_DIGITAL/MainWindow.xaml.cs",
    "content": "﻿using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Runtime.InteropServices;\nusing System.Text;\nusing System.Windows;\nusing System.Windows.Controls;\nusing System.Net;\nusing System.IO;\nusing System.Threading;\nusing Microsoft.Win32;\nusing System.Text.RegularExpressions;\nusing System.Globalization;\nusing System.Reflection;\nusing System.Windows.Forms;\nusing OSVersionInfoClass;\nusing Newtonsoft.Json.Linq;\nusing MaterialDesignThemes.Wpf;\n\nnamespace CMWTAT_DIGITAL\n{\n\n    static class Constants\n    {\n        public const string DefaultLang = \"en\"; // 缺省语言\n    }\n\n    /// <summary>\n    /// MainWindow.xaml 的交互逻辑\n    /// </summary>\n    public partial class MainWindow : Window\n    {\n        [DllImport(\"Kernel32.dll\")]\n        private static extern bool Wow64EnableWow64FsRedirection(bool Wow64FsEnableRedirection);//重定向\n\n        public struct Frequency\n        {\n            public int ID { get; set; }\n            public string DisplayOS { get; set; }\n        }\n\n        public static void ConsoleLog(string log_text = \"\")\n        {\n            Console.WriteLine(log_text);\n            if (App.log2file == true)\n            {\n                WriteLog(log_text);\n            }\n        }\n\n        public static void WriteLog(string strLog)\n        {\n            string sFilePath = AppDomain.CurrentDomain.BaseDirectory;\n            string sFileName = \"CMWTAT-\" + DateTime.Now.ToString(\"yyyy-MM-dd\") + \".log\";\n            sFileName = sFilePath + sFileName; //文件的绝对路径\n            if (!Directory.Exists(sFilePath))//验证路径是否存在\n            {\n                Directory.CreateDirectory(sFilePath);\n                //不存在则创建\n            }\n            FileStream fs;\n            StreamWriter sw;\n            if (File.Exists(sFileName))\n            //验证文件是否存在，有则追加，无则创建\n            {\n                fs = new FileStream(sFileName, FileMode.Append, FileAccess.Write);\n            }\n            else\n            {\n                fs = new FileStream(sFileName, FileMode.Create, FileAccess.Write);\n            }\n            sw = new StreamWriter(fs);\n            sw.WriteLine(DateTime.Now.ToString(\"yyyy-MM-dd HH-mm-ss\") + \"   ---   \" + strLog);\n            sw.Close();\n            fs.Close();\n        }\n\n        string tempfile = Path.GetTempPath() + @\"CMWTAT_DIGITAL\\\";\n\n        public void DelectTempFile()\n        {\n            if (Directory.Exists(tempfile))\n            {\n                try\n                {\n                    FileAttributes attr = File.GetAttributes(tempfile);\n                    if (attr == FileAttributes.Directory)\n                    {\n\n                        Directory.Delete(tempfile, true);\n\n                    }\n                    else\n                    {\n                        File.Delete(tempfile);\n                    }\n                }\n                catch (Exception e)\n                {\n                    ConsoleLog(\"DelectTempFile:\" + e.Message);\n                }\n            }\n        }\n\n        public void ExportTempFile()\n        {\n            if (Directory.Exists(tempfile))\n            {\n                ConsoleLog(\"找到已存在的缓存，开始删除\");\n                DelectTempFile();\n                ConsoleLog(\"删除操作完毕\");\n                if (Directory.Exists(tempfile))\n                {\n                    ConsoleLog(\"[警告] 检测到文件依旧存在\");\n                }\n            }\n\n            ConsoleLog(\"开始创建缓存目录\");\n            if (Directory.Exists(tempfile) == false)\n            {\n                Directory.CreateDirectory(tempfile);\n            }\n            ConsoleLog(\"创建缓存目录完毕\");\n\n            ConsoleLog(\"开始写入缓存文件\");\n            File.WriteAllBytes(tempfile + \"ClipUp\" + \".exe\", Properties.Resources.ClipUp);\n            File.WriteAllBytes(tempfile + \"slmgr\" + \".vbs\", Properties.Resources.slmgr);\n            ConsoleLog(\"写入缓存文件完毕\");\n        }\n\n        public static string LocalLang = Constants.DefaultLang;\n        public static string NowLang = LocalLang;\n        ResourceDictionary langRd = null; //语言资源字典\n        public static CultureInfo currentCultureInfo = CultureInfo.CurrentCulture; //获取系统语言\n        public static bool NotSupportLang = false;\n\n        /// <summary>\n        /// 加载指定语言（支持热加载）\n        /// </summary>\n        public void LoadLang(string LangName = Constants.DefaultLang)\n        {\n\n            //MessageBox.Show(currentCultureInfo.Name);\n\n            try\n            {\n                //根据名字载入语言文件\n                langRd = System.Windows.Application.LoadComponent(new Uri(@\"/CMWTAT_DIGITAL;component/Lang\\\" + LangName + \".xaml\", UriKind.Relative)) as ResourceDictionary;\n                NowLang = LangName;\n                if (LangName != Constants.DefaultLang)\n                {\n                    LocalLang = LangName;\n                    //btnChangeLang.Tag = LocalLang;\n                }\n                NotSupportLang = false;\n            }\n            catch\n            {\n                NotSupportLang = true;\n                //System.Windows.MessageBox.Show(\"The \" + LangName + \" language pack was not found and the language was set to English.\\nIf you want to use Chinese as the interface language, click the \\\"Language\\\" button to switch.\");\n                langRd = System.Windows.Application.LoadComponent(new Uri(@\"/CMWTAT_DIGITAL;component/Lang\\\" + Constants.DefaultLang + \".xaml\", UriKind.Relative)) as ResourceDictionary;\n                NowLang = Constants.DefaultLang;\n            }\n\n            if (langRd != null)\n            {\n                //如果已使用其他语言,先清空\n                if (this.Resources.MergedDictionaries.Count > 0)\n                {\n                    this.Resources.MergedDictionaries.Clear();\n                }\n                this.Resources.MergedDictionaries.Add(langRd);\n            }\n        }\n\n        private static void ApplyBase(bool isDark)\n        {\n            var theme = new PaletteHelper().GetTheme();\n            theme.SetBaseTheme(isDark ? Theme.Dark : Theme.Light);\n            new PaletteHelper().SetTheme(theme);\n        }\n\n        string ProductVersion = \"0.0.0.0\"; // 存储程序版本\n\n        /// <summary>\n        /// 获取当前版本\n        /// </summary>\n        private void GetEdition()\n        {\n            Assembly assembly = Assembly.GetExecutingAssembly();\n\n            ConsoleLog(\"AppAssemblyFullName: \" + assembly.FullName);\n\n            // 获取程序集元数据 \n\n            AssemblyCopyrightAttribute copyright = (AssemblyCopyrightAttribute)\n            Attribute.GetCustomAttribute(assembly, typeof(AssemblyCopyrightAttribute));\n            AssemblyDescriptionAttribute description = (AssemblyDescriptionAttribute)\n            Attribute.GetCustomAttribute(assembly, typeof(AssemblyDescriptionAttribute));\n\n            ProductVersion = assembly.GetName().Version.ToString();\n\n            ConsoleLog(\"AppDescription: \" + description.Description);\n            ConsoleLog(\"AppCopyright: \" + copyright.Copyright);\n            ConsoleLog(\"AppProductVersion: \" + ProductVersion);\n        }\n\n        public string SystemEdition = OSVersionInfo.Edition;\n\n        bool isDark = false;\n\n        string WindowsTheme = \"Light\";\n\n        NotifyIcon notifyIcon;\n\n        public void CheckWindowsTheme()\n        {\n            var uiSettings = new Windows.UI.ViewManagement.UISettings();\n            Windows.UI.Color Wcolor = uiSettings.GetColorValue(Windows.UI.ViewManagement.UIColorType.Background);\n            System.Drawing.Color Scolor = System.Drawing.Color.FromArgb(Wcolor.R, Wcolor.G, Wcolor.B);\n            float hue = Scolor.GetHue(); // 色调\n            float saturation = Scolor.GetSaturation(); // 饱和度\n            float lightness = Scolor.GetBrightness(); // 亮度\n\n            if (lightness > 0.75)\n            {\n                isDark = false;\n                WindowsTheme = \"Light\";\n            }\n            else\n            {\n                isDark = true;\n                WindowsTheme = \"Dark\";\n            }\n\n            //ConsoleLog(\"Windows Theme Background is: \" + Wcolor);\n            //ConsoleLog(\"Windows Theme Brightness is: \" + lightness);\n            //ConsoleLog(\"Windows Theme Mode is: \" + WindowsTheme);\n        }\n\n        public MainWindow()\n        {\n            InitializeComponent();\n        }\n\n        JArray ositems;\n        int now_os_index = 0;\n        string checked_os = \"unknow\";\n\n        bool is_auto = true; //是否为自动模式，false为手动\n\n        /// <summary>\n        /// 检查更新\n        /// </summary>\n        private void CheckUpdate()\n        {\n            try\n            {\n                string check_update_json = GetHttpWebRequest(\"https://cmwtat.cloudmoe.com/api/check_update?version=\" + ProductVersion);\n                JObject check_update_jsonobj = JObject.Parse(check_update_json);\n                List<Frequency> check_update_list = new List<Frequency>();\n                JValue latest_version = (JValue)check_update_jsonobj[\"latest\"];\n                JValue oldest_version = (JValue)check_update_jsonobj[\"oldest\"];\n                //System.Windows.MessageBox.Show(latest_version.ToString());\n                Version CurrentVersion = new Version(ProductVersion);\n                Version LatestVersion = new Version(latest_version.ToString());\n                Version AllowedVersion = new Version(oldest_version.ToString());\n                if (CurrentVersion >= LatestVersion) // 当前版本大于等于最新版本\n                {\n                    //System.Windows.MessageBox.Show(\"无需更新\");\n                }\n                if (CurrentVersion < LatestVersion) // 当前版本小于最新版本\n                {\n                    actbtn.Dispatcher.Invoke(new Action(() =>\n                    {\n                        if (CurrentVersion < AllowedVersion) // 当前版本小于最低允许版本\n                        {\n                            this.IgnoreUpdate.IsEnabled = false;\n                            //System.Windows.MessageBox.Show(\"必须更新\");\n                        }\n                        else\n                        {\n                            this.IgnoreUpdate.IsEnabled = true;\n                        }\n                        this.DialogUpdateTitle.Text = (string)this.Resources[\"UpdateTitle\"];\n                        this.DialogUpdateText.Text = (string)this.Resources[\"UpdateText\"] + \"\\r\\n\" + (string)this.Resources[\"CurrentVersion\"] + \": \" + ProductVersion + \"\\r\\n\" + (string)this.Resources[\"LatestVersion\"] + \": \" + latest_version.ToString();\n                        this.DialogUpdate.IsOpen = true;\n                    }));\n                    //System.Windows.MessageBox.Show(\"需要更新\");\n                }\n            }\n            catch\n            {\n            }\n        }\n\n        public static string StaticServerDomain = \"https://uwa-static.cloudmoe.com\"; // 静态服务器\n        public static string MainServerDomain = \"https://cmwtat.cloudmoe.com\"; // 主要服务器\n        public static string BackupServerDomain = \"https://kms.kumo.moe\"; // 备用服务器\n\n        private void LoadOSList()\n        {\n\n            int is_selected = 0; //是否已经自动选择,0未选择，1普通模式，2实验模式，3离线KMS模式\n\n            actbtn.Dispatcher.Invoke(new Action(() =>\n            {\n                DialogWait.IsOpen = true;\n            }));\n\n            try\n            {\n                string json;\n                try\n                {\n                    json = GetHttpWebRequest(MainServerDomain + \"/api/digital?list=1&ver=4\"); // 主要服务器\n                }\n                catch (Exception e)\n                {\n                    ConsoleLog(\"MainServer:\" + MainServerDomain + \" is not working.\");\n                    ConsoleLog(\"Error Message:\" + e.Message);\n                    ConsoleLog(\"Ready to use BackupServer:\" + BackupServerDomain);\n                    json = GetHttpWebRequest(BackupServerDomain + \"/api/digital?list=1&ver=4\"); // 备用服务器\n                }\n                JObject jsonobj = JObject.Parse(json);\n                List<Frequency> list = new List<Frequency>();\n                Frequency freq = new Frequency();\n                ositems = (JArray)jsonobj[\"OS\"];\n\n                for (int i = 0; i < ositems.Count(); i++)\n                {\n                    freq.ID = i;\n                    freq.DisplayOS = jsonobj[\"OS\"][i].ToString();\n\n                    //按照优先级判断，如果已经自动选择则忽略新的\n                    //选择带版本号\n                    if (String.Equals(jsonobj[\"OS\"][i].ToString(), SystemEdition + OSVersionInfo.BuildVersion, StringComparison.CurrentCultureIgnoreCase) && is_selected == 0)//jsonobj[\"OS\"][i].ToString() == SystemEdition + OSVersionInfo.BuildVersion\n                    {\n                        now_os_index = i;\n                        checked_os = SystemEdition + OSVersionInfo.BuildVersion;\n                        is_selected = 1;\n                    }\n\n                    //选择带版本号Offline-KMS\n                    if (String.Equals(jsonobj[\"OS\"][i].ToString(), \"(Offline-KMS) \" + SystemEdition + OSVersionInfo.BuildVersion, StringComparison.CurrentCultureIgnoreCase) && is_selected == 0)//旧的方法：jsonobj[\"OS\"][i].ToString() == \"(Experimental) \" + SystemEdition，新方法忽略大小写并提升效率\n                    {\n                        now_os_index = i;\n                        checked_os = \"(Offline-KMS) \" + SystemEdition + OSVersionInfo.BuildVersion;\n                        is_selected = 3;\n                    }\n\n                    //选择不带版本号\n                    if (String.Equals(jsonobj[\"OS\"][i].ToString(), SystemEdition, StringComparison.CurrentCultureIgnoreCase) && is_selected == 0)//jsonobj[\"OS\"][i].ToString() == SystemEdition\n                    {\n                        now_os_index = i;\n                        checked_os = SystemEdition;\n                        is_selected = 1;\n                    }\n\n                    //选择不带版本号Offline-KMS\n                    if (String.Equals(jsonobj[\"OS\"][i].ToString(), \"(Offline-KMS) \" + SystemEdition, StringComparison.CurrentCultureIgnoreCase) && is_selected == 0)//旧的方法：jsonobj[\"OS\"][i].ToString() == \"(Experimental) \" + SystemEdition，新方法忽略大小写并提升效率\n                    {\n                        now_os_index = i;\n                        checked_os = \"(Offline-KMS) \" + SystemEdition;\n                        is_selected = 3;\n                    }\n\n                    //选择不带版本号实验\n                    if (String.Equals(jsonobj[\"OS\"][i].ToString(), \"(Experimental) \" + SystemEdition, StringComparison.CurrentCultureIgnoreCase) && is_selected == 0)//旧的方法：jsonobj[\"OS\"][i].ToString() == \"(Experimental) \" + SystemEdition，新方法忽略大小写并提升效率\n                    {\n                        now_os_index = i;\n                        checked_os = \"(Experimental) \" + SystemEdition;\n                        is_selected = 2;\n                    }\n                    list.Add(freq);\n                }\n\n                actbtn.Dispatcher.Invoke(new Action(() =>\n                {\n                    this.SystemEditionText.ItemsSource = list;//控件的ID\n\n                    if (is_selected == 0)//没有匹配\n                    {\n                        this.SystemEditionText.SelectedIndex = 0;\n                        this.DialogWithOKToCloseDialogTitle.Text = (string)this.Resources[\"Attention\"];\n                        this.DialogWithOKToCloseDialogText.Text = (string)this.Resources[\"May_be_not_be_supported\"] + \"\\r\\n(\" + (string)this.Resources[\"System_Edition\"] + \": \" + SystemEdition + OSVersionInfo.BuildVersion + \")\";\n                        this.DialogWithOKToCloseDialog.IsOpen = true;\n                    }\n                    else if (is_selected == 2)//只找到实验性\n                    {\n                        this.SystemEditionText.SelectedIndex = now_os_index;\n                        this.DialogWithOKToCloseDialogTitle.Text = (string)this.Resources[\"Attention\"];\n                        this.DialogWithOKToCloseDialogText.Text = (string)this.Resources[\"Only_find_experimental\"] + \"\\r\\n(\" + (string)this.Resources[\"System_Edition\"] + \": \" + SystemEdition + OSVersionInfo.BuildVersion + \")\";\n                        this.DialogWithOKToCloseDialog.IsOpen = true;\n                    }\n                    else if (is_selected == 3)//只找到长期KMS\n                    {\n                        this.SystemEditionText.SelectedIndex = now_os_index;\n                        this.DialogWithOKToCloseDialogTitle.Text = (string)this.Resources[\"Attention\"];\n                        this.DialogWithOKToCloseDialogText.Text = (string)this.Resources[\"Only_find_ltok\"] + \"\\r\\n(\" + (string)this.Resources[\"System_Edition\"] + \": \" + SystemEdition + OSVersionInfo.BuildVersion + \")\";\n                        this.DialogWithOKToCloseDialog.IsOpen = true;\n                    }\n                    else\n                    {\n                        this.SystemEditionText.SelectedIndex = now_os_index;\n                    }\n                }));\n\n                //this.SystemEditionText.SelectedIndex = now_os_index;\n\n                actbtn.Dispatcher.Invoke(new Action(() =>\n                {\n                    DialogWait.IsOpen = false;\n                }));\n\n                if (App.autoact == true)//自动激活\n                {\n                    Thread actthread = new Thread(RunAct);\n                    switch (is_selected)\n                    {\n                        case 1: //正常\n                            actthread.Start();\n                            break;\n                        case 2: //实验性\n                            if (App.expact == true)\n                            {\n                                actbtn.Dispatcher.Invoke(new Action(() =>\n                                {\n                                    DialogWithOKToCloseDialog.IsOpen = false;\n                                }));\n                                actthread.Start();\n                            }\n                            else\n                            {\n                                if (App.hiderun == true)\n                                {\n                                    int tipShowMilliseconds = 0;\n                                    string tipTitle = (string)this.Resources[\"notifyIconTitle\"];\n                                    string tipContent = (string)this.Resources[\"notify_May_be_not_be_supported_try\"]; //提示不支持可尝试实验性\n                                    ToolTipIcon tipType = ToolTipIcon.None;\n                                    notifyIcon.ShowBalloonTip(tipShowMilliseconds, tipTitle, tipContent, tipType);\n                                    Exit_Button_Click(null, null);//退出\n                                }\n                            }\n                            break;\n                        default:\n                            if (App.hiderun == true)\n                            {\n                                int tipShowMilliseconds = 0;\n                                string tipTitle = (string)this.Resources[\"notifyIconTitle\"];\n                                string tipContent = (string)this.Resources[\"notify_May_be_not_be_supported_exit\"]; //提示不支持并退出（实验性开启）\n                                ToolTipIcon tipType = ToolTipIcon.None;\n                                notifyIcon.ShowBalloonTip(tipShowMilliseconds, tipTitle, tipContent, tipType);\n                                Exit_Button_Click(null, null);//退出\n                            }\n                            break;\n                    }\n                }\n            }\n            catch\n            {\n                actbtn.Dispatcher.Invoke(new Action(() =>\n                {\n                    DialogWait.IsOpen = false;\n                }));\n\n                actbtn.Dispatcher.Invoke(new Action(() =>\n                {\n                    DialogWithExit.IsOpen = true;\n                }));\n\n                if (App.hiderun == true && App.autoact == true)\n                {\n                    int tipShowMilliseconds = 0;\n                    string tipTitle = (string)this.Resources[\"notifyIconTitle\"];\n                    string tipContent = (string)this.Resources[\"notify_Disconnect_to_server_exit\"]; //提示无法连接服务器退出\n                    ToolTipIcon tipType = ToolTipIcon.None;\n                    notifyIcon.ShowBalloonTip(tipShowMilliseconds, tipTitle, tipContent, tipType);\n                    Exit_Button_Click(null, null);//退出\n                }\n            }\n            CheckUpdate(); // 检查更新\n        }\n\n        private void CheckWindowsCore()\n        {\n            if (SystemEdition.ToLower().IndexOf(\"core\") == -1)\n            {\n                upgradefullbtn.IsEnabled = false;\n                upgradefullbtn.Visibility = Visibility.Collapsed;\n                this.Height -= 95;\n            }\n        }\n\n        private void Activate_Button_Click(object sender, RoutedEventArgs e)\n        {\n            Thread actthread = new Thread(RunAct);\n            actthread.Start();\n\n            //RunAct();\n            //LoadOSList();\n\n            //MessageBox.Show(json);\n            //MessageBox.Show(rss[\"OS\"][0].ToString());\n            //MessageBox.Show(SystemEdition);\n        }\n\n        private void installbtn_Click(object sender, RoutedEventArgs e)\n        {\n            Thread installthread = new Thread(RunInstall);\n            installthread.Start();\n        }\n\n        private void upgradefullbtn_Click(object sender, RoutedEventArgs e)\n        {\n            this.DialogUpgradeFullVersion.IsOpen = true;\n        }\n\n        private void UpgradeFullVersionWindows_Click(object sender, RoutedEventArgs e)\n        {\n            this.DialogUpgradeFullVersion.IsOpen = false;\n            Thread upgradethread = new Thread(RunUpgradeFullVersion);\n            upgradethread.Start();\n        }\n\n        private string GetHttpWebRequest(string url, int timeout = 10000, int retry = 2)\n        {\n            string outex = \"UnknowError\";\n            for (int i = 0; i < retry; i++) // 默认重试2次\n            {\n                ConsoleLog(\"GetHttpWebRequest Try: \" + i.ToString());\n                try\n                {\n                    Uri uri = new Uri(url);\n                    HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create(uri);\n                    myReq.UserAgent = \"User-Agent:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705\";\n                    myReq.Accept = \"*/*\";\n                    myReq.KeepAlive = true;\n                    myReq.Headers.Add(\"Accept-Language\", \"zh-cn,en-us;q=0.5\");\n                    myReq.Timeout = timeout; // 默认10s超时\n                    HttpWebResponse result = null;\n                    string strHTML = null;\n                    result = (HttpWebResponse)myReq.GetResponse();\n                    Stream receviceStream = result.GetResponseStream();\n                    StreamReader readerOfStream = new StreamReader(receviceStream, System.Text.Encoding.GetEncoding(\"utf-8\"));\n                    strHTML = readerOfStream.ReadToEnd();\n                    readerOfStream.Close();\n                    receviceStream.Close();\n                    result.Close();\n                    return strHTML;\n                }\n                catch (WebException ex)\n                {\n                    outex = ex.Message;\n                    ConsoleLog(\"GetHttpWebRequest Exception: \" + ex.Message);\n                    if (ex.Status == WebExceptionStatus.Timeout) // 超时重试\n                    {\n                        continue;\n                    }\n                    throw new Exception(ex.Message); // 其他错误抛出\n                }\n            }\n            throw new Exception(outex);\n        }\n\n        private void Exit_Button_Click(object sender, EventArgs e)\n        {\n            DelectTempFile();\n            notifyIcon.Visible = false;\n            System.Windows.Application.Current.Shutdown();\n        }\n\n        private void RunInstall()\n        {\n            ExportTempFile();\n            //释放文件\n            actbtn.Dispatcher.Invoke(new Action(() =>\n            {\n                this.DialogActProg.IsOpen = true;\n                this.activatingtext.Text = (string)this.Resources[\"RunInstall_Converting\"]; //提示转换中\n            }));\n\n            Wow64EnableWow64FsRedirection(false);//关闭文件重定向\n\n            string code = \"-0\";\n            string key = \"00000-00000-00000-00000-00000\";\n            string sku = \"0\";\n            string msg = \"Unknow Error!\";\n            string system = \"\";\n\n            string slmgr = Environment.GetFolderPath(Environment.SpecialFolder.SystemX86) + \"\\\\slmgr.vbs\";\n\n            string slmgr_self = tempfile + \"slmgr.vbs\";\n\n            try\n            {\n                string sourceFile = slmgr;\n                string targetFile = slmgr_self;\n                bool isrewrite = true; // true=覆盖已存在的同名文件,false则反之\n                ConsoleLog(\"Copy Start: \" + sourceFile + \" To \" + targetFile);\n                System.IO.File.Copy(sourceFile, targetFile, isrewrite);\n                ConsoleLog(\"Copy Completed.\");\n            }\n            catch (Exception CopyExc)\n            {\n                ConsoleLog(\"Copy has Exception: \" + CopyExc.Message);\n            }\n\n            //旧的位置\n            //string slmgr_self = System.AppDomain.CurrentDomain.BaseDirectory + \"slmgr.vbs\";\n\n            string changepk = Environment.SystemDirectory + \"\\\\changepk.exe\";\n\n            if (is_auto == true)\n            {\n                actbtn.Dispatcher.Invoke(new Action(() =>\n                {\n                    system = this.SystemEditionText.Text;\n                }));\n\n                actbtn.Dispatcher.Invoke(new Action(() =>\n                {\n                    this.activatingtext.Text = (string)this.Resources[\"RunInstall_Getting_Key\"]; //提示正在获取密钥\n                }));\n\n                //获取密钥和SKU\n                try\n                {\n\n                    string json;\n                    try\n                    {\n                        json = GetHttpWebRequest(MainServerDomain + \"/api/digital?list=0&ver=4\"); // 主要服务器\n                    }\n                    catch (Exception e)\n                    {\n                        ConsoleLog(\"MainServer:\" + MainServerDomain + \" is not working.\");\n                        ConsoleLog(\"Error Message:\" + e.Message);\n                        ConsoleLog(\"Ready to use BackupServer:\" + BackupServerDomain);\n                        json = GetHttpWebRequest(BackupServerDomain + \"/api/digital?list=0&ver=4\"); // 备用服务器\n                    }\n                    JObject jsonobj = JObject.Parse(json);\n                    List<Frequency> list = new List<Frequency>();\n                    ositems = (JArray)jsonobj[\"OS\"];\n                    key = jsonobj[system][\"key\"].ToString();\n                    sku = jsonobj[system][\"sku\"].ToString();\n                    ConsoleLog(\"Edition:\" + system + \"\\r\\nKEY:\" + key + \"\\r\\nSKU:\" + sku);\n\n                }\n                catch\n                {\n                    code = \"-0\";\n                    msg = (string)this.Resources[\"ErrorMsg-0\"]; // \"激活Windows10需要网络获取产品密钥 :) \\nActivate Windows 10 requires a network to gets the product key :)\";\n                    goto EndLine;\n                }\n            }\n            else\n            {\n\n                //手动密钥\n\n                actbtn.Dispatcher.Invoke(new Action(() =>\n                {\n                    key = this.SystemEditionTextInput.Text;\n                }));\n\n            }\n\n\n            actbtn.Dispatcher.Invoke(new Action(() =>\n            {\n                this.activatingtext.Text = (string)this.Resources[\"RunInstall_Uninstalling_old_Key\"]; //提示正在卸载旧密钥\n            }));\n            //卸载\n            string runend = RunCScript(slmgr_self, \"-upk\").Trim();\n            //string runend = RunCMD(@\"cscript.exe /nologo %systemroot%\\system32\\slmgr.vbs -upk\").Trim();\n            ConsoleLog(runend);\n            if (runend.EndsWith(\"successfully.\") || runend.EndsWith(\"not found.\"))\n            {\n\n                actbtn.Dispatcher.Invoke(new Action(() =>\n                {\n                    this.activatingtext.Text = (string)this.Resources[\"RunInstall_Installing_Key\"]; //提示正在安装密钥\n                }));\n\n                //安装数字权利升级密钥\n                if (RunCScript(slmgr_self, \"-ipk \" + key).Trim().EndsWith(\"successfully.\"))\n                //if (RunCMD(@\"cscript.exe /nologo %systemroot%\\system32\\slmgr.vbs -ipk \" + key).Trim().EndsWith(\"successfully.\"))\n                {\n                    code = \"200\";\n                }\n                else\n                {\n                    code = \"-2\";\n                    msg = (string)this.Resources[\"ErrorMsg-2\"]; // \"无法安装密钥，可能没有选择或输入正确的版本 :(\\nCannot to install key, may be you choose or enter a incorrect version. :(\";\n                }\n            }\n            else\n            {\n                code = \"-1\";\n                msg = (string)this.Resources[\"ErrorMsg-1\"]; // \"无法卸载旧密钥 :(\\nCannot to uninstall old key. :(\";\n            }\n        //string runend = RunCScript(slmgr_self, \"-upk\").Trim();\n        EndLine:;\n            if (code != \"200\")\n            {\n                actbtn.Dispatcher.Invoke(new Action(() =>\n                {\n                    this.DialogActProg.IsOpen = false;\n                    this.activatingtext.Text = (string)this.Resources[\"RunInstall_Converting\"]; //提示转换中\n                    this.DialogWithOKToCloseDialog.IsOpen = true;\n                    this.DialogWithOKToCloseDialogTitle.Text = (string)this.Resources[\"ErrorTitle\"]; //错误标题\n                    this.DialogWithOKToCloseDialogText.Text = msg + \"\\r\\n\" + (string)this.Resources[\"ErrorCode\"] + code; //错误代码 如：错误信息\\r\\nCode：000\n                }));\n                //MessageBox.Show(msg + \"\\r\\nCode:\" + code);\n            }\n            else\n            {\n                actbtn.Dispatcher.Invoke(new Action(() =>\n                {\n                    this.DialogActProg.IsOpen = false;\n                    this.activatingtext.Text = (string)this.Resources[\"RunInstall_Converting\"]; //提示转换中\n                    this.DialogWithOKToCloseDialogDonate.IsOpen = true;\n                    this.DialogWithOKToCloseDialogDonateTitle.Text = (string)this.Resources[\"CompleteTitle\"]; //完成标题\n                    this.DialogWithOKToCloseDialogDonateText.Text = (string)this.Resources[\"DonateTextConverted\"]; //完成转换内容\n                }));\n                //MessageBox.Show(\"Congratulation!\");\n            }\n            DelectTempFile();\n            //清理文件\n        }\n\n        private void RunUpgradeFullVersion()\n        {\n            actbtn.Dispatcher.Invoke(new Action(() =>\n            {\n                this.DialogActProg.IsOpen = true;\n                this.activatingtext.Text = (string)this.Resources[\"RunUpgradeFullVersion_Upgrading\"]; //提示升级中\n            }));\n            RunCMD(@\"sc start sppsvc\");\n            RunCMD(@\"sc start wuauserv\");\n            RunCLI(\"ChangePK.exe\", \".\", \"/ProductKey VK7JG-NPHTM-C97JM-9MPGT-3V66T\"); // Pro\n            RunCLI(\"ChangePK.exe\", \".\", \"/ProductKey 2B87N-8KFHP-DKV6R-Y2C8J-PKCKT\"); // Pro N\n            RunCLI(\"ChangePK.exe\", \".\", \"/ProductKey W269N-WFGWX-YVC9B-4J6C9-T83GX\"); // KMS Pro\n            RunCLI(\"ChangePK.exe\", \".\", \"/ProductKey MH37W-N47XK-V7XM9-C7227-GCQG9\"); // KMS Pro N\n            actbtn.Dispatcher.Invoke(new Action(() =>\n            {\n                this.DialogActProg.IsOpen = false;\n            }));\n        }\n\n        private void ShowBallSameDig()\n        {\n            actbtn.Dispatcher.Invoke(new Action(() =>\n            {\n                if (App.hiderun == true && App.autoact == true)\n                {\n                    int tipShowMilliseconds = 0;\n                    string tipTitle = (string)this.Resources[\"notifyIconTitle\"];\n                    string tipContent = this.activatingtext.Text;\n                    ToolTipIcon tipType = ToolTipIcon.None;\n                    notifyIcon.ShowBalloonTip(tipShowMilliseconds, tipTitle, tipContent, tipType);\n                }\n            }));\n        }\n\n        private void RunAct()\n        {\n            bool is_not_network_to_act = false; //是否无法联网稍后激活\n            ExportTempFile();\n            //释放文件\n            actbtn.Dispatcher.Invoke(new Action(() =>\n            {\n                this.DialogActProg.IsOpen = true;\n                this.activatingtext.Text = (string)this.Resources[\"RunAct_Activating\"]; //提示激活中\n                ShowBallSameDig();\n            }));\n\n            Wow64EnableWow64FsRedirection(false);//关闭文件重定向\n\n            string code = \"-0\";\n            string key = \"00000-00000-00000-00000-00000\";\n            string sku = \"0\";\n            string msg = \"Unknow Error!\";\n            string system = \"\";\n            string mode = \"1\"; //1：普通（SYS、SKU、KEY完全）；2.需要获取SKU（SYS、KEY）；3.手动输入KEY；4.普通OfflineKMS（SYS、SKU、KEY完全）\n\n            string slmgr = Environment.GetFolderPath(Environment.SpecialFolder.SystemX86) + \"\\\\slmgr.vbs\";\n\n            string slmgr_self = tempfile + \"slmgr.vbs\";\n\n            try\n            {\n                string sourceFile = slmgr;\n                string targetFile = slmgr_self;\n                bool isrewrite = true; // true=覆盖已存在的同名文件,false则反之\n                ConsoleLog(\"Copy Start: \" + sourceFile + \" To \" + targetFile);\n                File.Copy(sourceFile, targetFile, isrewrite);\n                ConsoleLog(\"Copy Completed.\");\n            }\n            catch (Exception CopyExc)\n            {\n                ConsoleLog(\"Copy has Exception: \" + CopyExc.Message);\n            }\n\n            //旧的位置\n\n            string changepk = Environment.SystemDirectory + \"\\\\changepk.exe\";\n\n            if (is_auto == true)\n            {\n\n                actbtn.Dispatcher.Invoke(new Action(() =>\n                {\n                    system = this.SystemEditionText.Text;\n                }));\n\n                actbtn.Dispatcher.Invoke(new Action(() =>\n                {\n                    this.activatingtext.Text = (string)this.Resources[\"RunAct_Getting_Key\"]; //提示正在获取密钥\n                    ShowBallSameDig();\n                }));\n\n                //获取密钥和SKU\n                try\n                {\n\n                    string json;\n                    try\n                    {\n                        json = GetHttpWebRequest(MainServerDomain + \"/api/digital?list=0&ver=4\"); // 主要服务器\n                    }\n                    catch (Exception e)\n                    {\n                        ConsoleLog(\"MainServer:\" + MainServerDomain + \" is not working.\");\n                        ConsoleLog(\"Error Message:\" + e.Message);\n                        ConsoleLog(\"Ready to use BackupServer:\" + BackupServerDomain);\n                        json = GetHttpWebRequest(BackupServerDomain + \"/api/digital?list=0&ver=4\"); // 备用服务器\n                    }\n                    JObject jsonobj = JObject.Parse(json);\n                    List<Frequency> list = new List<Frequency>();\n                    ositems = (JArray)jsonobj[\"OS\"];\n                    key = jsonobj[system][\"key\"].ToString();\n                    sku = jsonobj[system][\"sku\"].ToString();\n                    ConsoleLog(\"Edition:\" + system + \"\\r\\nKEY:\" + key + \"\\r\\nSKU:\" + sku);\n\n                    string selecos = \"\";\n                    // 获取当前选择的选择的文本\n                    actbtn.Dispatcher.Invoke(new Action(() =>\n                    {\n                        selecos = SystemEditionText.Text;\n                    }));\n\n                    ConsoleLog(\"Selected OS: \" + selecos);\n\n                    if (sku == \"unknow\")\n                    {\n                        mode = \"2\";\n                    }\n\n                    if (selecos.ToUpper().StartsWith(\"(Offline-KMS)\".ToUpper()))\n                    {\n                        ConsoleLog(\"Switch Mode Offline-KMS\");\n                        mode = \"4\";\n                    }\n\n                }\n                catch\n                {\n                    code = \"-0\";\n                    msg = (string)this.Resources[\"ErrorMsg-0\"]; // \"激活Windows10需要网络获取产品密钥 :) \\nActivate Windows 10 requires a network to gets the product key :)\";\n                    goto EndLine;\n                }\n\n            }\n            else\n            {\n\n                actbtn.Dispatcher.Invoke(new Action(() =>\n                {\n                    key = this.SystemEditionTextInput.Text;\n                }));\n                mode = \"3\";\n                sku = \"unknow\";\n\n            }\n\n            actbtn.Dispatcher.Invoke(new Action(() =>\n            {\n                this.activatingtext.Text = (string)this.Resources[\"RunAct_Uninstalling_old_Key\"]; //提示正在卸载旧密钥\n                ShowBallSameDig();\n            }));\n\n            //卸载\n            string runend = RunCScript(slmgr_self, \"-upk\").Trim();\n            //string runend = RunCMD(@\"cscript.exe /nologo %systemroot%\\system32\\slmgr.vbs -upk\").Trim();\n            ConsoleLog(runend);\n            if (runend.EndsWith(\"successfully.\") || runend.EndsWith(\"not found.\"))\n            {\n\n                RunCScript(slmgr_self, \"-ckms\").Trim();\n\n                if (mode == \"4\")\n                {\n                    //长期KMS\n                    RunCMD(@\"sc stop sppsvc\");\n\n                    RunCMD(@\"del /F /Q %systemroot%\\system32\\spp\\store\\2.0\\tokens.dat\");\n                    RunCMD(@\"del /F /Q %systemroot%\\system32\\spp\\store\\2.0\\data.dat\");\n                    RunCMD(@\"del /F /Q %systemroot%\\system32\\spp\\store\\2.0\\cache\\cache.dat\");\n\n                    RunCMD(@\"sc start sppsvc\");\n                }\n\n                if (sku == \"unknow\")//if (mode == \"2\" || mode == \"3\") //获取SKU\n                {\n\n                    actbtn.Dispatcher.Invoke(new Action(() =>\n                    {\n                        this.activatingtext.Text = (string)this.Resources[\"RunAct_Getting_edition_code_Exp\"]; // \"Getting edition code (Experimental)\";\n                        ShowBallSameDig();\n                    }));\n\n                    //安装转换密钥\n                    runend = RunCScript(slmgr_self, \"-ipk \" + key);\n                    //runend = RunCMD(@\"cscript.exe /nologo %systemroot%\\system32\\slmgr.vbs -ipk \" + key);\n                    ConsoleLog(slmgr_self + \" -ipk \" + key);\n                    ConsoleLog(runend);\n                    if (runend.Trim().EndsWith(\"successfully.\"))\n                    {\n                        Thread.Sleep(6000); //等待6秒，确保SKU生效\n                        sku = GetSKU(); //获取SKU\n                        if (sku != \"Error\")\n                        {\n                            actbtn.Dispatcher.Invoke(new Action(() =>\n                            {\n                                this.activatingtext.Text = (string)this.Resources[\"RunAct_Uninstalling_old_Key_Exp\"]; //提示正在卸载旧密钥（实验性）\n                                ShowBallSameDig();\n                            }));\n\n                            runend = RunCScript(slmgr_self, \"-upk\").Trim();\n                            //runend = RunCMD(@\"cscript.exe /nologo %systemroot%\\system32\\slmgr.vbs -upk\").Trim();\n                            ConsoleLog(runend);\n                            if (runend.EndsWith(\"successfully.\") || runend.EndsWith(\"not found.\"))\n                            {\n                                actbtn.Dispatcher.Invoke(new Action(() =>\n                                {\n                                    this.activatingtext.Text = (string)this.Resources[\"RunAct_Prepare_for_the_next_step_Exp\"]; // \"Prepare for the next step (Experimental)\";\n                                    ShowBallSameDig();\n                                }));\n                            }\n                        }\n                        else\n                        {\n                            code = \"-1.2\";\n                            msg = (string)this.Resources[\"ErrorMsg-1.2\"]; // \"无法获取版本代号 :(\\nCannot to get edition code. :(\";\n                            goto EndLine;\n                        }\n                    }\n                    else\n                    {\n                        code = \"-1.1\";\n                        msg = (string)this.Resources[\"ErrorMsg-1.1\"]; // \"无法安装密钥，可能没有选择或输入正确的版本 :(\\nCannot to install key, may be you choose or enter a incorrect version. :(\";\n                        goto EndLine;\n                    }\n                }\n\n                actbtn.Dispatcher.Invoke(new Action(() =>\n                {\n                    this.activatingtext.Text = (string)this.Resources[\"RunAct_Installing_Key\"]; //提示正在安装密钥\n                    ShowBallSameDig();\n                }));\n\n                //安装数字权利升级密钥\n                runend = RunCScript(slmgr_self, \"-ipk \" + key);\n                //runend = RunCMD(@\"cscript.exe /nologo %systemroot%\\system32\\slmgr.vbs -ipk \" + key);\n                ConsoleLog(slmgr_self + \" -ipk \" + key);\n                ConsoleLog(runend);\n                if (runend.Trim().EndsWith(\"successfully.\"))\n                {\n\n                    actbtn.Dispatcher.Invoke(new Action(() =>\n                    {\n                        this.activatingtext.Text = (string)this.Resources[\"RunAct_Getting_free_upgrade_permissions\"]; // \"Getting free upgrade permissions\";\n                        ShowBallSameDig();\n                    }));\n\n                    string ticket = null;\n\n                    try\n                    {\n                        RegistryKey registryKey = Registry.LocalMachine.OpenSubKey(\"SYSTEM\\\\CurrentControlSet\\\\Control\\\\ProductOptions\", true);\n                        var packageFamilyName = registryKey.GetValue(\"OSProductPfn\").ToString();\n                        try\n                        {\n                            if (mode == \"4\")\n                            {\n                                //长期KMS\n                                ticket = GetHttpWebRequest(StaticServerDomain + \"/Tickets/KMS.xml\");\n                            }\n                            else\n                            { \n                                ticket = GetHttpWebRequest(StaticServerDomain + \"/Tickets/\" + packageFamilyName + \".xml\");\n                            }\n                            //System.Windows.MessageBox.Show(ticket);\n                        }\n                        catch (Exception e)\n                        {\n                            ConsoleLog(\"StaticServer:\" + StaticServerDomain + \" is not working.\");\n                            ConsoleLog(\"Error Message:\" + e.Message);\n                        }\n                    }\n                    catch (Exception e)\n                    {\n                        ConsoleLog(\"Get PackageFamilyName failed.\");\n                        ConsoleLog(\"Error Message:\" + e.Message);\n                    }\n\n                    File.WriteAllText(tempfile + \"GenuineTicketvNext.xml\", ticket, Encoding.UTF8);\n                    ConsoleLog(\"进入下一步（CUR：VNEXT）\");\n\n                    var hasvNextTicket = File.Exists(tempfile + \"GenuineTicketvNext.xml\");\n\n                    if (hasvNextTicket)\n                    {\n\n                        actbtn.Dispatcher.Invoke(new Action(() =>\n                        {\n                            this.activatingtext.Text = (string)this.Resources[\"RunAct_Getting_digital_license\"]; // \"Getting digital license\";\n                            ShowBallSameDig();\n                        }));\n\n                        RunCMD(@\"sc start wuauserv\");\n                        RunCMD(@\"sc start clipsvc\");\n\n                        RunCMD(@\"clipup -v -o -altto \" + tempfile);\n                        RunCMD(@\"clipup -v -o -altto \" + tempfile.TrimEnd('\\\\')); // 旧版本系统的 ClipUp 路径不能带最后的反斜杠\n                        if (OSVersionInfo.BuildVersion >= 20348)\n                        {\n                            RunCLI(tempfile + \"ClipUp.exe\", \".\", \"-v -o -altto \" + tempfile); // 固定版本解决 22H2 后 ARM64 许可证接收问题\n                            RunCLI(tempfile + \"ClipUp.exe\", \".\", \"-v -o -altto \" + tempfile.TrimEnd('\\\\'));\n                        }\n\n                        actbtn.Dispatcher.Invoke(new Action(() =>\n                        {\n                            this.activatingtext.Text = (string)this.Resources[\"RunAct_Activating\"]; // 提示激活中\n                            ShowBallSameDig();\n                        }));\n\n                        int try_max_count = 30;\n                        for (int i = 0; i < try_max_count + 1; i++)\n                        {\n                            if (!File.Exists(tempfile + \"GenuineTicketvNext.xml\"))\n                            {\n                                break;\n                            }\n                            Thread.Sleep(1000);\n                            ConsoleLog($\"应用许可证 重试 {i}/{try_max_count}\");\n                        }\n\n                        runend = RunCScript(slmgr_self, \"-ato\").Trim();\n                        \n                        ConsoleLog(runend);\n\n                        var xprrunend = RunCScript(slmgr_self, \"-xpr\").Trim();\n                        var activated = (xprrunend.Contains(\"activated\") || xprrunend.Contains(\"activation will expire\"));\n\n                        ConsoleLog(xprrunend);\n                        \n                        if (runend.EndsWith(\"successfully.\") || activated || runend.Contains(\"0xC004C003\")) // Error 0xC004C003: The activation server determined that the specified product key is blocked. 是因为未连接激活服务器，下次连接时会自动激活。\n                        {\n                            if (runend.Contains(\"0xC004C003\"))\n                            {\n                                is_not_network_to_act = true;\n                            }\n                            code = \"200\";\n                        }\n                        else\n                        {\n                            code = \"-4\";\n                            msg = (string)this.Resources[\"ErrorMsg-4\"] + \"\\r\\n\" + (string)this.Resources[\"SysMsg\"] + \"\\r\\n\" + runend; // \"激活失败 :(\\nActivation Failed. :(\";\n                        }\n                    }\n                    else\n                    {\n                        code = \"-3\";\n                        msg = (string)this.Resources[\"ErrorMsg-3\"]; // \"执行超时，可能没有选择正确或输入的版本 :(\\nTime out, may be you choose or enter a incorrect version. :(\";\n                    }\n                }\n                else\n                {\n                    code = \"-2\";\n                    msg = (string)this.Resources[\"ErrorMsg-2\"]; // \"无法安装密钥，可能没有选择或输入正确的版本 :(\\nCannot to install key, may be you choose or enter a incorrect version. :(\";\n                }\n            }\n            else\n            {\n                code = \"-1\";\n                msg = (string)this.Resources[\"ErrorMsg-1\"]; // \"无法卸载旧密钥 :(\\nCannot to uninstall old key. :(\";\n            }\n        //string runend = RunCScript(slmgr_self, \"-upk\").Trim();\n        EndLine:;\n            if (code != \"200\")\n            {\n                actbtn.Dispatcher.Invoke(new Action(() =>\n                {\n                    this.DialogActProg.IsOpen = false;\n                    this.activatingtext.Text = (string)this.Resources[\"RunAct_Activating\"]; //提示激活中\n                    this.DialogWithOKToCloseDialog.IsOpen = true;\n                    this.DialogWithOKToCloseDialogTitle.Text = (string)this.Resources[\"ErrorTitle\"]; //错误标题\n                    this.DialogWithOKToCloseDialogText.Text = msg + \"\\r\\n\" + (string)this.Resources[\"ErrorCode\"] + code; //错误代码 如：错误信息\\r\\nCode：000\n                    if (App.hiderun == true && App.autoact == true)\n                    {\n                        int tipShowMilliseconds = 0;\n                        string tipTitle = (string)this.Resources[\"notifyIconTitle\"];\n                        string tipContent = msg;\n                        ToolTipIcon tipType = ToolTipIcon.None;\n                        notifyIcon.ShowBalloonTip(tipShowMilliseconds, tipTitle, tipContent, tipType);\n                        Exit_Button_Click(null, null);\n                    }\n                }));\n                //MessageBox.Show(msg + \"\\r\\nCode:\" + code);\n            }\n            else\n            {\n                actbtn.Dispatcher.Invoke(new Action(() =>\n                {\n                    this.DialogActProg.IsOpen = false;\n                    this.activatingtext.Text = (string)this.Resources[\"RunAct_Activating\"]; //提示激活中\n                    this.DialogWithOKToCloseDialogDonate.IsOpen = true;\n                    this.DialogWithOKToCloseDialogDonateTitle.Text = (string)this.Resources[\"CompleteTitle\"]; //完成标题\n                    if (is_not_network_to_act == true)\n                    {\n                        this.DialogWithOKToCloseDialogDonateText.Text = (string)this.Resources[\"DonateTextWillActivated\"]; //即将激活内容\n                    }\n                    else\n                    {\n                        this.DialogWithOKToCloseDialogDonateText.Text = (string)this.Resources[\"DonateTextActivated\"]; //完成激活内容\n                    }\n\n                    if (App.hiderun == true && App.autoact == true)\n                    {\n                        int tipShowMilliseconds = 0;\n                        string tipTitle = (string)this.Resources[\"notifyIconTitle\"];\n                        string tipContent = this.DialogWithOKToCloseDialogDonateText.Text;\n                        ToolTipIcon tipType = ToolTipIcon.None;\n                        notifyIcon.ShowBalloonTip(tipShowMilliseconds, tipTitle, tipContent, tipType);\n                        Exit_Button_Click(null, null);\n                    }\n                }));\n                //MessageBox.Show(\"Congratulation!\");\n            }\n            DelectTempFile();\n            //清理文件\n        }\n\n        public static string RunCLI(string path, string wdPath, string var = \"\")\n        {\n            ConsoleLog(path + \" \" + var);\n            Wow64EnableWow64FsRedirection(false);//关闭文件重定向\n            //执行命令行函数\n            try\n            {\n                System.Diagnostics.Process myProcess = new System.Diagnostics.Process();\n                myProcess.StartInfo.FileName = path;//要执行的程序名称 \n                myProcess.StartInfo.UseShellExecute = false;\n                myProcess.StartInfo.RedirectStandardInput = true;//可能接受来自调用程序的输入信息 \n                myProcess.StartInfo.RedirectStandardOutput = true;//由调用程序获取输出信息 \n                myProcess.StartInfo.CreateNoWindow = true;//不显示程序窗口 \n                myProcess.StartInfo.Arguments = var;\n                myProcess.StartInfo.WorkingDirectory = wdPath;\n                //myProcess.Arguments = \"/c chcp 65001 > nul && cmd /c \\\"\" + PHPRuntimePath + \"\\\" \\\"\" + path + \"\\\" \" + var;\n                //myProcess.Arguments = \"/c \" & Commands\n                //myProcess.StartInfo.StandardOutputEncoding = Encoding.UTF8;\n                myProcess.Start();\n                myProcess.WaitForExit(120 * 1000);\n                StreamReader myStreamReader = myProcess.StandardOutput;\n                string myString = myStreamReader.ReadToEnd();\n                myProcess.Close();\n                ConsoleLog(myString.Trim());\n                ConsoleLog(\"执行完毕\");\n                return myString.Trim();\n            }\n            catch\n            {\n                return \"Error\";\n            }\n        }\n\n        public static string RunCMD(string var)\n        {\n            ConsoleLog(var);\n            Wow64EnableWow64FsRedirection(false); //关闭文件重定向\n            //执行命令行函数\n            try\n            {\n                System.Diagnostics.Process myProcess = new System.Diagnostics.Process();\n                myProcess.StartInfo.FileName = \"cmd.exe\";//要执行的程序名称 \n                myProcess.StartInfo.UseShellExecute = false;\n                myProcess.StartInfo.RedirectStandardInput = true;//可能接受来自调用程序的输入信息 \n                myProcess.StartInfo.RedirectStandardOutput = true;//由调用程序获取输出信息 \n                myProcess.StartInfo.CreateNoWindow = true;//不显示程序窗口 \n                myProcess.StartInfo.Arguments = \"/c chcp 437 > nul && cmd /c \\\"\" + var + \"\\\"\";\n                //myProcess.Arguments = \"/c chcp 65001 > nul && cmd /c \\\"\" + PHPRuntimePath + \"\\\" \\\"\" + path + \"\\\" \" + var;\n                //myProcess.Arguments = \"/c \" & Commands\n                //myProcess.StartInfo.StandardOutputEncoding = Encoding.UTF8;\n                myProcess.Start();\n                myProcess.WaitForExit(60 * 1000);\n                System.IO.StreamReader myStreamReader = myProcess.StandardOutput;\n                string myString = myStreamReader.ReadToEnd();\n                myProcess.Close();\n                ConsoleLog(myString.Trim());\n                return myString.Trim();\n            }\n            catch\n            {\n                return \"Error\";\n            }\n        }\n\n        public static string RunCScript(string path, string var = \"\")\n        {\n            ConsoleLog(\"CScript\" + \" \" + \"//Nologo \\\"\" + path + \"\\\" \" + var);\n            Wow64EnableWow64FsRedirection(false);//关闭文件重定向\n            //执行命令行函数\n            try\n            {\n                System.Diagnostics.Process myProcess = new System.Diagnostics.Process();\n                System.Diagnostics.ProcessStartInfo ProcessStartInfo = new System.Diagnostics.ProcessStartInfo(\"CScript\", \"//Nologo \\\"\" + path + \"\\\" \" + var)\n                {\n                    UseShellExecute = false,\n                    RedirectStandardOutput = true,\n                    CreateNoWindow = true,\n                    //myProcessStartInfo.Arguments = \"/c chcp 65001 > nul && cmd /c \\\"\" + PHPRuntimePath + \"\\\" \\\"\" + path + \"\\\" \" + var;\n                    //myProcessStartInfo.Arguments = \"/c \" & Commands\n                    StandardOutputEncoding = Encoding.UTF8\n                };\n                myProcess.StartInfo = ProcessStartInfo;\n                myProcess.Start();\n                myProcess.WaitForExit(60 * 1000);\n                System.IO.StreamReader myStreamReader = myProcess.StandardOutput;\n                string myString = myStreamReader.ReadToEnd();\n                myProcess.Close();\n                ConsoleLog(myString.Trim());\n                return myString.Trim();\n            }\n            catch\n            {\n                return \"Error\";\n            }\n        }\n\n        public static string GetSKU()\n        {\n            ConsoleLog(\"Geting SKU\");\n            Wow64EnableWow64FsRedirection(false);//关闭文件重定向\n            //执行命令行函数\n            try\n            {\n                System.Diagnostics.Process myProcess = new System.Diagnostics.Process();\n                myProcess.StartInfo.FileName = \"cmd.exe\";//要执行的程序名称 \n                myProcess.StartInfo.UseShellExecute = false;\n                myProcess.StartInfo.RedirectStandardOutput = true;\n                myProcess.StartInfo.CreateNoWindow = true;\n                myProcess.StartInfo.Arguments = \"/c wmic os get OperatingSystemSKU\";\n                //myProcess.Arguments = \"/c chcp 65001 > nul && cmd /c \\\"\" + PHPRuntimePath + \"\\\" \\\"\" + path + \"\\\" \" + var;\n                //myProcess.Arguments = \"/c \" & Commands\n                myProcess.StartInfo.StandardOutputEncoding = Encoding.UTF8;\n                myProcess.Start();\n                myProcess.WaitForExit(60 * 1000);\n                System.IO.StreamReader myStreamReader = myProcess.StandardOutput;\n                string myString = myStreamReader.ReadToEnd();\n                myProcess.Close();\n                myString = Regex.Replace(myString, @\"[^0-9]+\", \"\");\n                ConsoleLog(\"Get SKU:\\\"\" + myString.Trim() + \"\\\"\");\n                return myString.Trim(); //只保留数字SKU\n            }\n            catch\n            {\n                return \"Error\";\n            }\n        }\n\n        private void Donate_Button_Click(object sender, RoutedEventArgs e)\n        {\n            System.Diagnostics.Process.Start(\"https://cmwtat.cloudmoe.com/donate\"); // 打开捐赠页\n            this.DialogWithOKToCloseDialogDonate.IsOpen = false;\n        }\n\n        string last_key = \"\";\n\n        private void SystemEditionTextInput_TextChanged(object sender, TextChangedEventArgs e)\n        {\n            if (SystemEditionTextInput.Text != last_key)\n            {\n                int selectlen = SystemEditionTextInput.SelectionStart;\n                string temp = SystemEditionTextInput.Text;\n                temp = Regex.Replace(temp, @\"[^a-zA-Z0-9]+\", \"\");//XAML禁用输入法，并替换可能粘贴进的意外字符\n                temp = Regex.Replace(temp, @\"([a-zA-Z0-9]{5}(?!$))\", \"$1-\");\n                //temp = string.Join(\"-\", Regex.Matches(temp, @\".....\").Cast<Match>().ToList());\n                SystemEditionTextInput.Text = temp.ToUpper();\n                last_key = SystemEditionTextInput.Text;\n                SystemEditionTextInput.SelectionStart = SystemEditionTextInput.Text.Length;\n            }\n            UpdateInputMatch(); // 更新按钮启用状态\n        }\n\n        /// <summary>  \n        /// 验证产品密钥字符串是否匹配正则表达式描述的规则并更新按钮状态（如果自动模式则启用按钮）\n        /// </summary>  \n        private void UpdateInputMatch()\n        {\n            //防止初始化前访问null出错\n            try\n            {\n                if (actbtn != null)\n                {\n                    string pattern = @\"^[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}-[a-zA-Z0-9]{5}$\";\n                    if (is_auto == false)\n                    {\n                        if (CMWTAT_DIGITAL.Domain.IsSN.IsMatch((SystemEditionTextInput.Text ?? \"\").ToString(), pattern))\n                        {\n                            actbtn.IsEnabled = true;\n                            installbtn.IsEnabled = true;\n                        }\n                        else\n                        {\n                            actbtn.IsEnabled = false;\n                            installbtn.IsEnabled = false;\n                        }\n                    }\n                    else\n                    {\n                        actbtn.IsEnabled = true;\n                        installbtn.IsEnabled = true;\n                    }\n                }\n            }\n            catch { }\n        }\n\n        private void A_RadioButton_Checked(object sender, RoutedEventArgs e)\n        {\n            SystemEditionText.Visibility = Visibility.Visible;\n            SystemEditionTextInput.Visibility = Visibility.Hidden;\n            is_auto = true;\n            UpdateInputMatch(); // 更新按钮启用状态\n        }\n\n        private void M_RadioButton_Checked(object sender, RoutedEventArgs e)\n        {\n            SystemEditionText.Visibility = Visibility.Hidden;\n            SystemEditionTextInput.Visibility = Visibility.Visible;\n            is_auto = false;\n            UpdateInputMatch(); // 更新按钮启用状态\n        }\n\n        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)\n        {\n            DelectTempFile();\n            notifyIcon.Visible = false;\n        }\n\n        private void UpdateBtn_Click(object sender, RoutedEventArgs e)\n        {\n            System.Diagnostics.Process.Start(\"https://cmwtat.cloudmoe.com\"); // 打开官网\n        }\n\n        private void Window_Activated(object sender, EventArgs e)\n        {\n            CheckWindowsTheme();\n            ApplyBase(isDark); // 应用颜色\n        }\n\n        private void Window_Loaded(object sender, RoutedEventArgs e)\n        {\n            CheckWindowsTheme();\n\n            ConsoleLog(\"Windows Theme Mode is: \" + WindowsTheme);\n\n            GetEdition(); // 获取程序版本\n\n            //autoact = App.autoact;\n            //hiderun = App.hiderun;\n            //expact = App.expact;\n            //log2file = App.log2file;\n            //showhelp = App.showhelp;\n\n            //MessageBox.Show(\"A:\" + autoact.ToString() + \";H:\" + hiderun.ToString());\n\n            ApplyBase(isDark);\n\n            string LangName = currentCultureInfo.Name;\n            //根据本地语言来进行本地化\n            LangName = LangName.Substring(0, LangName.IndexOf(\"-\"));\n            //LangName = \"ja\"; // 如需测试语言，请取消注释此行\n            LoadLang(LangName);\n\n            this.Title = this.Title + \" V\" + ProductVersion; // 初始化语言后为标题增加版本号\n\n            //System.Windows.MessageBox.Show((string)this.Resources[\"HelpText\"]);\n\n            if (App.showhelp == true)\n            {\n                DialogHelp.IsOpen = true;\n            }\n\n            notifyIcon = new NotifyIcon\n            {\n                Text = (string)this.Resources[\"notifyIconTitle\"], //托盘图标标题\n                Icon = Properties.Resources.CMWTAT_ICON\n            }; // 先初始化托盘图标，以方便语言缺省时提示\n\n            if ((App.hiderun == true && App.autoact == true) || NotSupportLang == true)\n            {\n\n                //notifyIcon.BalloonTipText = \"The app has been minimised. Click the tray icon to show.\";\n                //notifyIcon.BalloonTipTitle = \"The App\";\n\n                //notifyIcon.Icon = new System.Drawing.Icon(\"TheAppIcon.ico\");\n\n                //notifyIcon.Click += new EventHandler(notifyIcon_Click);\n\n                notifyIcon.Visible = true;\n\n                //打开菜单项\n                //System.Windows.Forms.MenuItem open = new System.Windows.Forms.MenuItem(\"Open\");\n                //open.Click += new EventHandler((o, e) =>\n                //{\n                //    this.Show();\n                //});\n\n                //退出菜单项\n                System.Windows.Forms.MenuItem exit = new System.Windows.Forms.MenuItem(\"Exit\");\n                exit.Click += new EventHandler(Exit_Button_Click);\n\n                //关联托盘控件\n                //System.Windows.Forms.MenuItem[] childen = new System.Windows.Forms.MenuItem[] { open, exit };\n\n                System.Windows.Forms.MenuItem[] childen = new System.Windows.Forms.MenuItem[] { exit };\n\n                notifyIcon.ContextMenu = new System.Windows.Forms.ContextMenu(childen);\n\n                //this.notifyIcon.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler((o, e) =>\n                //{\n                //    if (e.Button == MouseButtons.Left) this.Show();\n                //});\n            }\n\n            if (NotSupportLang == true)\n            {\n                int tipShowMilliseconds = 0;\n                string tipTitle = (string)this.Resources[\"notifyIconTitle\"];\n                string tipContent = \"The language pack \\\"\" + LangName + \"\\\" was not found, language has been automatically switched to English. You can submit this language on GitHub.\"; // 提示不支持语言提示\n                ToolTipIcon tipType = ToolTipIcon.None;\n                notifyIcon.ShowBalloonTip(tipShowMilliseconds, tipTitle, tipContent, tipType);\n            }\n\n            if (App.hiderun == true && App.autoact == true)\n            {\n                this.Hide();\n\n                int tipShowMilliseconds = 0;\n                string tipTitle = (string)this.Resources[\"notifyIconTitle\"]; //通知气泡标题\n                string tipContent = (string)this.Resources[\"Running\"]; //提示正在运行\n                ToolTipIcon tipType = ToolTipIcon.None;\n                notifyIcon.ShowBalloonTip(tipShowMilliseconds, tipTitle, tipContent, tipType);\n\n                //notifyIcon.BalloonTipClicked += new EventHandler((o, e) =>\n                //{\n                //    //System.Windows.MessageBox.Show(System.Windows.Forms.Control.MouseButtons.ToString());\n                //    if (System.Windows.Forms.Control.MouseButtons == MouseButtons.None) //左键返回不是Right是None\n                //    {\n                //        System.Windows.MessageBox.Show(\"Hello\");\n                //    };\n                //});\n            }\n\n            //初始化动态表单数据绑定\n            DataContext = new Domain.ViewModel();\n\n            this.DialogHostGrid.Visibility = Visibility.Visible;\n\n            DialogWait.IsOpen = true;\n            try\n            {\n                RegistryKey pRegKey = Registry.LocalMachine;\n                pRegKey = pRegKey.OpenSubKey(@\"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\");\n                SystemEdition = pRegKey.GetValue(\"EditionID\").ToString();\n            }\n            catch\n            {\n                SystemEdition = OSVersionInfo.Edition;\n            }\n\n            //SystemEditionText.Text = SystemEdition;\n            Thread loadthread = new Thread(LoadOSList);\n            loadthread.Start();\n\n            CheckWindowsCore();\n        }\n    }\n}\n"
  },
  {
    "path": "CMWTAT_DIGITAL/OSVersionInfoClass.cs",
    "content": "﻿using Microsoft.Win32;\nusing System;\nusing System.Diagnostics;\nusing System.Runtime.InteropServices;\n\n// http://www.codeproject.com/Articles/73000/Getting-Operating-System-Version-Info-Even-for-Win\n//https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions\n\n//Thanks to Member 7861383, Scott Vickery for the Windows 8.1 update and workaround.\n//I have moved it to the beginning of the Name property, though...\n\n//Thakts to Brisingr Aerowing for help with the Windows 10 adapatation\n\nnamespace OSVersionInfoClass\n{\n    /// <summary>\n    /// Provides detailed information about the host operating system.\n    /// </summary>\n    public static class OSVersionInfo\n    {\n        #region ENUMS\n        public enum SoftwareArchitecture\n        {\n            Unknown = 0,\n            Bit32 = 1,\n            Bit64 = 2\n        }\n\n        public enum ProcessorArchitecture\n        {\n            Unknown = 0,\n            Bit32 = 1,\n            Bit64 = 2,\n            Itanium64 = 3\n        }\n        #endregion ENUMS\n\n        #region DELEGATE DECLARATION\n        private delegate bool IsWow64ProcessDelegate([In] IntPtr handle, [Out] out bool isWow64Process);\n        #endregion DELEGATE DECLARATION\n\n        #region BITS\n        /// <summary>\n        /// Determines if the current application is 32 or 64-bit.\n        /// </summary>\n        static public SoftwareArchitecture ProgramBits\n        {\n            get\n            {\n                SoftwareArchitecture pbits = SoftwareArchitecture.Unknown;\n\n                System.Collections.IDictionary test = Environment.GetEnvironmentVariables();\n\n                switch (IntPtr.Size * 8)\n                {\n                    case 64:\n                        pbits = SoftwareArchitecture.Bit64;\n                        break;\n\n                    case 32:\n                        pbits = SoftwareArchitecture.Bit32;\n                        break;\n\n                    default:\n                        pbits = SoftwareArchitecture.Unknown;\n                        break;\n                }\n\n                return pbits;\n            }\n        }\n\n        static public SoftwareArchitecture OSBits\n        {\n            get\n            {\n                SoftwareArchitecture osbits = SoftwareArchitecture.Unknown;\n\n                switch (IntPtr.Size * 8)\n                {\n                    case 64:\n                        osbits = SoftwareArchitecture.Bit64;\n                        break;\n\n                    case 32:\n                        if (Is32BitProcessOn64BitProcessor())\n                            osbits = SoftwareArchitecture.Bit64;\n                        else\n                            osbits = SoftwareArchitecture.Bit32;\n                        break;\n\n                    default:\n                        osbits = SoftwareArchitecture.Unknown;\n                        break;\n                }\n\n                return osbits;\n            }\n        }\n\n        /// <summary>\n        /// Determines if the current processor is 32 or 64-bit.\n        /// </summary>\n        static public ProcessorArchitecture ProcessorBits\n        {\n            get\n            {\n                ProcessorArchitecture pbits = ProcessorArchitecture.Unknown;\n\n                try\n                {\n                    SYSTEM_INFO l_System_Info = new SYSTEM_INFO();\n                    GetNativeSystemInfo(ref l_System_Info);\n\n                    switch (l_System_Info.uProcessorInfo.wProcessorArchitecture)\n                    {\n                        case 9: // PROCESSOR_ARCHITECTURE_AMD64\n                            pbits = ProcessorArchitecture.Bit64;\n                            break;\n                        case 6: // PROCESSOR_ARCHITECTURE_IA64\n                            pbits = ProcessorArchitecture.Itanium64;\n                            break;\n                        case 0: // PROCESSOR_ARCHITECTURE_INTEL\n                            pbits = ProcessorArchitecture.Bit32;\n                            break;\n                        default: // PROCESSOR_ARCHITECTURE_UNKNOWN\n                            pbits = ProcessorArchitecture.Unknown;\n                            break;\n                    }\n                }\n                catch\n                {\n                    // Ignore        \n                }\n\n                return pbits;\n            }\n        }\n        #endregion BITS\n\n        #region EDITION\n        static private string s_Edition;\n        /// <summary>\n        /// Gets the edition of the operating system running on this computer.\n        /// </summary>\n        static public string Edition\n        {\n            get\n            {\n                if (s_Edition != null)\n                    return s_Edition;  //***** RETURN *****//\n\n                string edition = String.Empty;\n\n                OperatingSystem osVersion = Environment.OSVersion;\n                OSVERSIONINFOEX osVersionInfo = new OSVERSIONINFOEX();\n                osVersionInfo.dwOSVersionInfoSize = Marshal.SizeOf(typeof(OSVERSIONINFOEX));\n\n                if (GetVersionEx(ref osVersionInfo))\n                {\n                    int majorVersion = osVersion.Version.Major;\n                    int minorVersion = osVersion.Version.Minor;\n                    byte productType = osVersionInfo.wProductType;\n                    short suiteMask = osVersionInfo.wSuiteMask;\n\n                    #region VERSION 4\n                    if (majorVersion == 4)\n                    {\n                        if (productType == VER_NT_WORKSTATION)\n                        {\n                            // Windows NT 4.0 Workstation\n                            edition = \"Workstation\";\n                        }\n                        else if (productType == VER_NT_SERVER)\n                        {\n                            if ((suiteMask & VER_SUITE_ENTERPRISE) != 0)\n                            {\n                                // Windows NT 4.0 Server Enterprise\n                                edition = \"Enterprise Server\";\n                            }\n                            else\n                            {\n                                // Windows NT 4.0 Server\n                                edition = \"Standard Server\";\n                            }\n                        }\n                    }\n                    #endregion VERSION 4\n\n                    #region VERSION 5\n                    else if (majorVersion == 5)\n                    {\n                        if (productType == VER_NT_WORKSTATION)\n                        {\n                            if ((suiteMask & VER_SUITE_PERSONAL) != 0)\n                            {\n                                edition = \"Home\";\n                            }\n                            else\n                            {\n                                if (GetSystemMetrics(86) == 0) // 86 == SM_TABLETPC\n                                    edition = \"Professional\";\n                                else\n                                    edition = \"Tablet Edition\";\n                            }\n                        }\n                        else if (productType == VER_NT_SERVER)\n                        {\n                            if (minorVersion == 0)\n                            {\n                                if ((suiteMask & VER_SUITE_DATACENTER) != 0)\n                                {\n                                    // Windows 2000 Datacenter Server\n                                    edition = \"Datacenter Server\";\n                                }\n                                else if ((suiteMask & VER_SUITE_ENTERPRISE) != 0)\n                                {\n                                    // Windows 2000 Advanced Server\n                                    edition = \"Advanced Server\";\n                                }\n                                else\n                                {\n                                    // Windows 2000 Server\n                                    edition = \"Server\";\n                                }\n                            }\n                            else\n                            {\n                                if ((suiteMask & VER_SUITE_DATACENTER) != 0)\n                                {\n                                    // Windows Server 2003 Datacenter Edition\n                                    edition = \"Datacenter\";\n                                }\n                                else if ((suiteMask & VER_SUITE_ENTERPRISE) != 0)\n                                {\n                                    // Windows Server 2003 Enterprise Edition\n                                    edition = \"Enterprise\";\n                                }\n                                else if ((suiteMask & VER_SUITE_BLADE) != 0)\n                                {\n                                    // Windows Server 2003 Web Edition\n                                    edition = \"Web Edition\";\n                                }\n                                else\n                                {\n                                    // Windows Server 2003 Standard Edition\n                                    edition = \"Standard\";\n                                }\n                            }\n                        }\n                    }\n                    #endregion VERSION 5\n\n                    #region VERSION 6\n                    else if (majorVersion == 6)\n                    {\n                        int ed;\n                        if (GetProductInfo(majorVersion, minorVersion,\n                            osVersionInfo.wServicePackMajor, osVersionInfo.wServicePackMinor,\n                            out ed))\n                        {\n                            switch (ed)\n                            {\n                                case PRODUCT_BUSINESS:\n                                    edition = \"Business\";\n                                    break;\n                                case PRODUCT_BUSINESS_N:\n                                    edition = \"Business N\";\n                                    break;\n                                case PRODUCT_CLUSTER_SERVER:\n                                    edition = \"HPC Edition\";\n                                    break;\n                                case PRODUCT_CLUSTER_SERVER_V:\n                                    edition = \"HPC Edition without Hyper-V\";\n                                    break;\n                                case PRODUCT_DATACENTER_SERVER:\n                                    edition = \"Datacenter Server\";\n                                    break;\n                                case PRODUCT_DATACENTER_SERVER_CORE:\n                                    edition = \"Datacenter Server (core installation)\";\n                                    break;\n                                case PRODUCT_DATACENTER_SERVER_V:\n                                    edition = \"Datacenter Server without Hyper-V\";\n                                    break;\n                                case PRODUCT_DATACENTER_SERVER_CORE_V:\n                                    edition = \"Datacenter Server without Hyper-V (core installation)\";\n                                    break;\n                                case PRODUCT_EMBEDDED:\n                                    edition = \"Embedded\";\n                                    break;\n                                case PRODUCT_ENTERPRISE:\n                                    edition = \"Enterprise\";\n                                    break;\n                                case PRODUCT_ENTERPRISE_N:\n                                    edition = \"Enterprise N\";\n                                    break;\n                                case PRODUCT_ENTERPRISE_E:\n                                    edition = \"Enterprise E\";\n                                    break;\n                                case PRODUCT_ENTERPRISE_SERVER:\n                                    edition = \"Enterprise Server\";\n                                    break;\n                                case PRODUCT_ENTERPRISE_SERVER_CORE:\n                                    edition = \"Enterprise Server (core installation)\";\n                                    break;\n                                case PRODUCT_ENTERPRISE_SERVER_CORE_V:\n                                    edition = \"Enterprise Server without Hyper-V (core installation)\";\n                                    break;\n                                case PRODUCT_ENTERPRISE_SERVER_IA64:\n                                    edition = \"Enterprise Server for Itanium-based Systems\";\n                                    break;\n                                case PRODUCT_ENTERPRISE_SERVER_V:\n                                    edition = \"Enterprise Server without Hyper-V\";\n                                    break;\n                                case PRODUCT_ESSENTIALBUSINESS_SERVER_MGMT:\n                                    edition = \"Essential Business Server MGMT\";\n                                    break;\n                                case PRODUCT_ESSENTIALBUSINESS_SERVER_ADDL:\n                                    edition = \"Essential Business Server ADDL\";\n                                    break;\n                                case PRODUCT_ESSENTIALBUSINESS_SERVER_MGMTSVC:\n                                    edition = \"Essential Business Server MGMTSVC\";\n                                    break;\n                                case PRODUCT_ESSENTIALBUSINESS_SERVER_ADDLSVC:\n                                    edition = \"Essential Business Server ADDLSVC\";\n                                    break;\n                                case PRODUCT_HOME_BASIC:\n                                    edition = \"Home Basic\";\n                                    break;\n                                case PRODUCT_HOME_BASIC_N:\n                                    edition = \"Home Basic N\";\n                                    break;\n                                case PRODUCT_HOME_BASIC_E:\n                                    edition = \"Home Basic E\";\n                                    break;\n                                case PRODUCT_HOME_PREMIUM:\n                                    edition = \"Home Premium\";\n                                    break;\n                                case PRODUCT_HOME_PREMIUM_N:\n                                    edition = \"Home Premium N\";\n                                    break;\n                                case PRODUCT_HOME_PREMIUM_E:\n                                    edition = \"Home Premium E\";\n                                    break;\n                                case PRODUCT_HOME_PREMIUM_SERVER:\n                                    edition = \"Home Premium Server\";\n                                    break;\n                                case PRODUCT_HYPERV:\n                                    edition = \"Microsoft Hyper-V Server\";\n                                    break;\n                                case PRODUCT_MEDIUMBUSINESS_SERVER_MANAGEMENT:\n                                    edition = \"Windows Essential Business Management Server\";\n                                    break;\n                                case PRODUCT_MEDIUMBUSINESS_SERVER_MESSAGING:\n                                    edition = \"Windows Essential Business Messaging Server\";\n                                    break;\n                                case PRODUCT_MEDIUMBUSINESS_SERVER_SECURITY:\n                                    edition = \"Windows Essential Business Security Server\";\n                                    break;\n                                case PRODUCT_PROFESSIONAL:\n                                    edition = \"Professional\";\n                                    break;\n                                case PRODUCT_PROFESSIONAL_N:\n                                    edition = \"Professional N\";\n                                    break;\n                                case PRODUCT_PROFESSIONAL_E:\n                                    edition = \"Professional E\";\n                                    break;\n                                case PRODUCT_SB_SOLUTION_SERVER:\n                                    edition = \"SB Solution Server\";\n                                    break;\n                                case PRODUCT_SB_SOLUTION_SERVER_EM:\n                                    edition = \"SB Solution Server EM\";\n                                    break;\n                                case PRODUCT_SERVER_FOR_SB_SOLUTIONS:\n                                    edition = \"Server for SB Solutions\";\n                                    break;\n                                case PRODUCT_SERVER_FOR_SB_SOLUTIONS_EM:\n                                    edition = \"Server for SB Solutions EM\";\n                                    break;\n                                case PRODUCT_SERVER_FOR_SMALLBUSINESS:\n                                    edition = \"Windows Essential Server Solutions\";\n                                    break;\n                                case PRODUCT_SERVER_FOR_SMALLBUSINESS_V:\n                                    edition = \"Windows Essential Server Solutions without Hyper-V\";\n                                    break;\n                                case PRODUCT_SERVER_FOUNDATION:\n                                    edition = \"Server Foundation\";\n                                    break;\n                                case PRODUCT_SMALLBUSINESS_SERVER:\n                                    edition = \"Windows Small Business Server\";\n                                    break;\n                                case PRODUCT_SMALLBUSINESS_SERVER_PREMIUM:\n                                    edition = \"Windows Small Business Server Premium\";\n                                    break;\n                                case PRODUCT_SMALLBUSINESS_SERVER_PREMIUM_CORE:\n                                    edition = \"Windows Small Business Server Premium (core installation)\";\n                                    break;\n                                case PRODUCT_SOLUTION_EMBEDDEDSERVER:\n                                    edition = \"Solution Embedded Server\";\n                                    break;\n                                case PRODUCT_SOLUTION_EMBEDDEDSERVER_CORE:\n                                    edition = \"Solution Embedded Server (core installation)\";\n                                    break;\n                                case PRODUCT_STANDARD_SERVER:\n                                    edition = \"Standard Server\";\n                                    break;\n                                case PRODUCT_STANDARD_SERVER_CORE:\n                                    edition = \"Standard Server (core installation)\";\n                                    break;\n                                case PRODUCT_STANDARD_SERVER_SOLUTIONS:\n                                    edition = \"Standard Server Solutions\";\n                                    break;\n                                case PRODUCT_STANDARD_SERVER_SOLUTIONS_CORE:\n                                    edition = \"Standard Server Solutions (core installation)\";\n                                    break;\n                                case PRODUCT_STANDARD_SERVER_CORE_V:\n                                    edition = \"Standard Server without Hyper-V (core installation)\";\n                                    break;\n                                case PRODUCT_STANDARD_SERVER_V:\n                                    edition = \"Standard Server without Hyper-V\";\n                                    break;\n                                case PRODUCT_STARTER:\n                                    edition = \"Starter\";\n                                    break;\n                                case PRODUCT_STARTER_N:\n                                    edition = \"Starter N\";\n                                    break;\n                                case PRODUCT_STARTER_E:\n                                    edition = \"Starter E\";\n                                    break;\n                                case PRODUCT_STORAGE_ENTERPRISE_SERVER:\n                                    edition = \"Enterprise Storage Server\";\n                                    break;\n                                case PRODUCT_STORAGE_ENTERPRISE_SERVER_CORE:\n                                    edition = \"Enterprise Storage Server (core installation)\";\n                                    break;\n                                case PRODUCT_STORAGE_EXPRESS_SERVER:\n                                    edition = \"Express Storage Server\";\n                                    break;\n                                case PRODUCT_STORAGE_EXPRESS_SERVER_CORE:\n                                    edition = \"Express Storage Server (core installation)\";\n                                    break;\n                                case PRODUCT_STORAGE_STANDARD_SERVER:\n                                    edition = \"Standard Storage Server\";\n                                    break;\n                                case PRODUCT_STORAGE_STANDARD_SERVER_CORE:\n                                    edition = \"Standard Storage Server (core installation)\";\n                                    break;\n                                case PRODUCT_STORAGE_WORKGROUP_SERVER:\n                                    edition = \"Workgroup Storage Server\";\n                                    break;\n                                case PRODUCT_STORAGE_WORKGROUP_SERVER_CORE:\n                                    edition = \"Workgroup Storage Server (core installation)\";\n                                    break;\n                                case PRODUCT_UNDEFINED:\n                                    edition = \"Unknown product\";\n                                    break;\n                                case PRODUCT_ULTIMATE:\n                                    edition = \"Ultimate\";\n                                    break;\n                                case PRODUCT_ULTIMATE_N:\n                                    edition = \"Ultimate N\";\n                                    break;\n                                case PRODUCT_ULTIMATE_E:\n                                    edition = \"Ultimate E\";\n                                    break;\n                                case PRODUCT_WEB_SERVER:\n                                    edition = \"Web Server\";\n                                    break;\n                                case PRODUCT_WEB_SERVER_CORE:\n                                    edition = \"Web Server (core installation)\";\n                                    break;\n                            }\n                        }\n                    }\n                    #endregion VERSION 6\n                }\n\n                s_Edition = edition;\n                return edition;\n            }\n        }\n        #endregion EDITION\n\n        #region NAME\n        static private string s_Name;\n        /// <summary>\n        /// Gets the name of the operating system running on this computer.\n        /// </summary>\n        static public string Name\n        {\n            get\n            {\n                if (s_Name != null)\n                    return s_Name;  //***** RETURN *****//\n\n                string name = \"unknown\";\n\n                OperatingSystem osVersion = Environment.OSVersion;\n                OSVERSIONINFOEX osVersionInfo = new OSVERSIONINFOEX();\n                osVersionInfo.dwOSVersionInfoSize = Marshal.SizeOf(typeof(OSVERSIONINFOEX));\n\n                if (GetVersionEx(ref osVersionInfo))\n                {\n                    int majorVersion = osVersion.Version.Major;\n                    int minorVersion = osVersion.Version.Minor;\n\n                    if (majorVersion == 6 && minorVersion == 2)\n                    {\n                        //The registry read workaround is by Scott Vickery. Thanks a lot for the help!\n\n                        //http://msdn.microsoft.com/en-us/library/windows/desktop/ms724832(v=vs.85).aspx\n\n                        // For applications that have been manifested for Windows 8.1 & Windows 10. Applications not manifested for 8.1 or 10 will return the Windows 8 OS version value (6.2). \n                        // By reading the registry, we'll get the exact version - meaning we can even compare against  Win 8 and Win 8.1.\n                        string exactVersion = RegistryRead(@\"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\", \"CurrentVersion\", \"\");\n                        if (!string.IsNullOrEmpty(exactVersion))\n                        {\n                            string[] splitResult = exactVersion.Split('.');\n                            majorVersion = Convert.ToInt32(splitResult[0]);\n                            minorVersion = Convert.ToInt32(splitResult[1]);\n                        }\n                        if (IsWindows10())\n                        {\n                            majorVersion = 10;\n                            minorVersion = 0;\n                        }\n                    }\n\n                    switch (osVersion.Platform)\n                    {\n                        case PlatformID.Win32S:\n                            name = \"Windows 3.1\";\n                            break;\n                        case PlatformID.WinCE:\n                            name = \"Windows CE\";\n                            break;\n                        case PlatformID.Win32Windows:\n                            {\n                                if (majorVersion == 4)\n                                {\n                                    string csdVersion = osVersionInfo.szCSDVersion;\n                                    switch (minorVersion)\n                                    {\n                                        case 0:\n                                            if (csdVersion == \"B\" || csdVersion == \"C\")\n                                                name = \"Windows 95 OSR2\";\n                                            else\n                                                name = \"Windows 95\";\n                                            break;\n                                        case 10:\n                                            if (csdVersion == \"A\")\n                                                name = \"Windows 98 Second Edition\";\n                                            else\n                                                name = \"Windows 98\";\n                                            break;\n                                        case 90:\n                                            name = \"Windows Me\";\n                                            break;\n                                    }\n                                }\n                                break;\n                            }\n                        case PlatformID.Win32NT:\n                            {\n                                byte productType = osVersionInfo.wProductType;\n\n                                switch (majorVersion)\n                                {\n                                    case 3:\n                                        name = \"Windows NT 3.51\";\n                                        break;\n                                    case 4:\n                                        switch (productType)\n                                        {\n                                            case 1:\n                                                name = \"Windows NT 4.0\";\n                                                break;\n                                            case 3:\n                                                name = \"Windows NT 4.0 Server\";\n                                                break;\n                                        }\n                                        break;\n                                    case 5:\n                                        switch (minorVersion)\n                                        {\n                                            case 0:\n                                                name = \"Windows 2000\";\n                                                break;\n                                            case 1:\n                                                name = \"Windows XP\";\n                                                break;\n                                            case 2:\n                                                name = \"Windows Server 2003\";\n                                                break;\n                                        }\n                                        break;\n                                    case 6:\n                                        switch (minorVersion)\n                                        {\n                                            case 0:\n                                                switch (productType)\n                                                {\n                                                    case 1:\n                                                        name = \"Windows Vista\";\n                                                        break;\n                                                    case 3:\n                                                        name = \"Windows Server 2008\";\n                                                        break;\n                                                }\n                                                break;\n\n                                            case 1:\n                                                switch (productType)\n                                                {\n                                                    case 1:\n                                                        name = \"Windows 7\";\n                                                        break;\n                                                    case 3:\n                                                        name = \"Windows Server 2008 R2\";\n                                                        break;\n                                                }\n                                                break;\n                                            case 2:\n                                                switch (productType)\n                                                {\n                                                    case 1:\n                                                        name = \"Windows 8\";\n                                                        break;\n                                                    case 3:\n                                                        name = \"Windows Server 2012\";\n                                                        break;\n                                                }\n                                                break;\n                                            case 3:\n                                                switch (productType)\n                                                {\n                                                    case 1:\n                                                        name = \"Windows 8.1\";\n                                                        break;\n                                                    case 3:\n                                                        name = \"Windows Server 2012 R2\";\n                                                        break;\n                                                }\n                                                break;\n                                        }\n                                        break;\n                                    case 10:\n                                        switch (minorVersion)\n                                        {\n                                            case 0:\n                                                switch (productType)\n                                                {\n                                                    case 1:\n                                                        name = \"Windows 10\";\n                                                        break;\n                                                    case 3:\n                                                        name = \"Windows Server 2016\";\n                                                        break;\n                                                }\n                                                break;\n                                        }\n                                        break;\n                                }\n                                break;\n                            }\n                    }\n                }\n\n                s_Name = name;\n                return name;\n            }\n        }\n        #endregion NAME\n\n        #region PINVOKE\n\n        #region GET\n        #region PRODUCT INFO\n        [DllImport(\"Kernel32.dll\")]\n        internal static extern bool GetProductInfo(\n            int osMajorVersion,\n            int osMinorVersion,\n            int spMajorVersion,\n            int spMinorVersion,\n            out int edition);\n        #endregion PRODUCT INFO\n\n        #region VERSION\n        [DllImport(\"kernel32.dll\")]\n        private static extern bool GetVersionEx(ref OSVERSIONINFOEX osVersionInfo);\n        #endregion VERSION\n\n        #region SYSTEMMETRICS\n        [DllImport(\"user32\")]\n        public static extern int GetSystemMetrics(int nIndex);\n        #endregion SYSTEMMETRICS\n\n        #region SYSTEMINFO\n        [DllImport(\"kernel32.dll\")]\n        public static extern void GetSystemInfo([MarshalAs(UnmanagedType.Struct)] ref SYSTEM_INFO lpSystemInfo);\n\n        [DllImport(\"kernel32.dll\")]\n        public static extern void GetNativeSystemInfo([MarshalAs(UnmanagedType.Struct)] ref SYSTEM_INFO lpSystemInfo);\n        #endregion SYSTEMINFO\n\n        #endregion GET\n\n        #region OSVERSIONINFOEX\n        [StructLayout(LayoutKind.Sequential)]\n        private struct OSVERSIONINFOEX\n        {\n            public int dwOSVersionInfoSize;\n            public int dwMajorVersion;\n            public int dwMinorVersion;\n            public int dwBuildNumber;\n            public int dwPlatformId;\n            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]\n            public string szCSDVersion;\n            public short wServicePackMajor;\n            public short wServicePackMinor;\n            public short wSuiteMask;\n            public byte wProductType;\n            public byte wReserved;\n        }\n        #endregion OSVERSIONINFOEX\n\n        #region SYSTEM_INFO\n        [StructLayout(LayoutKind.Sequential)]\n        public struct SYSTEM_INFO\n        {\n            internal _PROCESSOR_INFO_UNION uProcessorInfo;\n            public uint dwPageSize;\n            public IntPtr lpMinimumApplicationAddress;\n            public IntPtr lpMaximumApplicationAddress;\n            public IntPtr dwActiveProcessorMask;\n            public uint dwNumberOfProcessors;\n            public uint dwProcessorType;\n            public uint dwAllocationGranularity;\n            public ushort dwProcessorLevel;\n            public ushort dwProcessorRevision;\n        }\n        #endregion SYSTEM_INFO\n\n        #region _PROCESSOR_INFO_UNION\n        [StructLayout(LayoutKind.Explicit)]\n        public struct _PROCESSOR_INFO_UNION\n        {\n            [FieldOffset(0)]\n            internal uint dwOemId;\n            [FieldOffset(0)]\n            internal ushort wProcessorArchitecture;\n            [FieldOffset(2)]\n            internal ushort wReserved;\n        }\n        #endregion _PROCESSOR_INFO_UNION\n\n        #region 64 BIT OS DETECTION\n        [DllImport(\"kernel32\", SetLastError = true, CallingConvention = CallingConvention.Winapi)]\n        public extern static IntPtr LoadLibrary(string libraryName);\n\n        [DllImport(\"kernel32\", SetLastError = true, CallingConvention = CallingConvention.Winapi)]\n        public extern static IntPtr GetProcAddress(IntPtr hwnd, string procedureName);\n        #endregion 64 BIT OS DETECTION\n\n        #region PRODUCT\n        private const int PRODUCT_UNDEFINED = 0x00000000;\n        private const int PRODUCT_ULTIMATE = 0x00000001;\n        private const int PRODUCT_HOME_BASIC = 0x00000002;\n        private const int PRODUCT_HOME_PREMIUM = 0x00000003;\n        private const int PRODUCT_ENTERPRISE = 0x00000004;\n        private const int PRODUCT_HOME_BASIC_N = 0x00000005;\n        private const int PRODUCT_BUSINESS = 0x00000006;\n        private const int PRODUCT_STANDARD_SERVER = 0x00000007;\n        private const int PRODUCT_DATACENTER_SERVER = 0x00000008;\n        private const int PRODUCT_SMALLBUSINESS_SERVER = 0x00000009;\n        private const int PRODUCT_ENTERPRISE_SERVER = 0x0000000A;\n        private const int PRODUCT_STARTER = 0x0000000B;\n        private const int PRODUCT_DATACENTER_SERVER_CORE = 0x0000000C;\n        private const int PRODUCT_STANDARD_SERVER_CORE = 0x0000000D;\n        private const int PRODUCT_ENTERPRISE_SERVER_CORE = 0x0000000E;\n        private const int PRODUCT_ENTERPRISE_SERVER_IA64 = 0x0000000F;\n        private const int PRODUCT_BUSINESS_N = 0x00000010;\n        private const int PRODUCT_WEB_SERVER = 0x00000011;\n        private const int PRODUCT_CLUSTER_SERVER = 0x00000012;\n        private const int PRODUCT_HOME_SERVER = 0x00000013;\n        private const int PRODUCT_STORAGE_EXPRESS_SERVER = 0x00000014;\n        private const int PRODUCT_STORAGE_STANDARD_SERVER = 0x00000015;\n        private const int PRODUCT_STORAGE_WORKGROUP_SERVER = 0x00000016;\n        private const int PRODUCT_STORAGE_ENTERPRISE_SERVER = 0x00000017;\n        private const int PRODUCT_SERVER_FOR_SMALLBUSINESS = 0x00000018;\n        private const int PRODUCT_SMALLBUSINESS_SERVER_PREMIUM = 0x00000019;\n        private const int PRODUCT_HOME_PREMIUM_N = 0x0000001A;\n        private const int PRODUCT_ENTERPRISE_N = 0x0000001B;\n        private const int PRODUCT_ULTIMATE_N = 0x0000001C;\n        private const int PRODUCT_WEB_SERVER_CORE = 0x0000001D;\n        private const int PRODUCT_MEDIUMBUSINESS_SERVER_MANAGEMENT = 0x0000001E;\n        private const int PRODUCT_MEDIUMBUSINESS_SERVER_SECURITY = 0x0000001F;\n        private const int PRODUCT_MEDIUMBUSINESS_SERVER_MESSAGING = 0x00000020;\n        private const int PRODUCT_SERVER_FOUNDATION = 0x00000021;\n        private const int PRODUCT_HOME_PREMIUM_SERVER = 0x00000022;\n        private const int PRODUCT_SERVER_FOR_SMALLBUSINESS_V = 0x00000023;\n        private const int PRODUCT_STANDARD_SERVER_V = 0x00000024;\n        private const int PRODUCT_DATACENTER_SERVER_V = 0x00000025;\n        private const int PRODUCT_ENTERPRISE_SERVER_V = 0x00000026;\n        private const int PRODUCT_DATACENTER_SERVER_CORE_V = 0x00000027;\n        private const int PRODUCT_STANDARD_SERVER_CORE_V = 0x00000028;\n        private const int PRODUCT_ENTERPRISE_SERVER_CORE_V = 0x00000029;\n        private const int PRODUCT_HYPERV = 0x0000002A;\n        private const int PRODUCT_STORAGE_EXPRESS_SERVER_CORE = 0x0000002B;\n        private const int PRODUCT_STORAGE_STANDARD_SERVER_CORE = 0x0000002C;\n        private const int PRODUCT_STORAGE_WORKGROUP_SERVER_CORE = 0x0000002D;\n        private const int PRODUCT_STORAGE_ENTERPRISE_SERVER_CORE = 0x0000002E;\n        private const int PRODUCT_STARTER_N = 0x0000002F;\n        private const int PRODUCT_PROFESSIONAL = 0x00000030;\n        private const int PRODUCT_PROFESSIONAL_N = 0x00000031;\n        private const int PRODUCT_SB_SOLUTION_SERVER = 0x00000032;\n        private const int PRODUCT_SERVER_FOR_SB_SOLUTIONS = 0x00000033;\n        private const int PRODUCT_STANDARD_SERVER_SOLUTIONS = 0x00000034;\n        private const int PRODUCT_STANDARD_SERVER_SOLUTIONS_CORE = 0x00000035;\n        private const int PRODUCT_SB_SOLUTION_SERVER_EM = 0x00000036;\n        private const int PRODUCT_SERVER_FOR_SB_SOLUTIONS_EM = 0x00000037;\n        private const int PRODUCT_SOLUTION_EMBEDDEDSERVER = 0x00000038;\n        private const int PRODUCT_SOLUTION_EMBEDDEDSERVER_CORE = 0x00000039;\n        //private const int ???? = 0x0000003A;\n        private const int PRODUCT_ESSENTIALBUSINESS_SERVER_MGMT = 0x0000003B;\n        private const int PRODUCT_ESSENTIALBUSINESS_SERVER_ADDL = 0x0000003C;\n        private const int PRODUCT_ESSENTIALBUSINESS_SERVER_MGMTSVC = 0x0000003D;\n        private const int PRODUCT_ESSENTIALBUSINESS_SERVER_ADDLSVC = 0x0000003E;\n        private const int PRODUCT_SMALLBUSINESS_SERVER_PREMIUM_CORE = 0x0000003F;\n        private const int PRODUCT_CLUSTER_SERVER_V = 0x00000040;\n        private const int PRODUCT_EMBEDDED = 0x00000041;\n        private const int PRODUCT_STARTER_E = 0x00000042;\n        private const int PRODUCT_HOME_BASIC_E = 0x00000043;\n        private const int PRODUCT_HOME_PREMIUM_E = 0x00000044;\n        private const int PRODUCT_PROFESSIONAL_E = 0x00000045;\n        private const int PRODUCT_ENTERPRISE_E = 0x00000046;\n        private const int PRODUCT_ULTIMATE_E = 0x00000047;\n        //private const int PRODUCT_UNLICENSED = 0xABCDABCD;\n        #endregion PRODUCT\n\n        #region VERSIONS\n        private const int VER_NT_WORKSTATION = 1;\n        private const int VER_NT_DOMAIN_CONTROLLER = 2;\n        private const int VER_NT_SERVER = 3;\n        private const int VER_SUITE_SMALLBUSINESS = 1;\n        private const int VER_SUITE_ENTERPRISE = 2;\n        private const int VER_SUITE_TERMINAL = 16;\n        private const int VER_SUITE_DATACENTER = 128;\n        private const int VER_SUITE_SINGLEUSERTS = 256;\n        private const int VER_SUITE_PERSONAL = 512;\n        private const int VER_SUITE_BLADE = 1024;\n        #endregion VERSIONS\n\n        #endregion PINVOKE\n\n        #region SERVICE PACK\n        /// <summary>\n        /// Gets the service pack information of the operating system running on this computer.\n        /// </summary>\n        static public string ServicePack\n        {\n            get\n            {\n                string servicePack = String.Empty;\n                OSVERSIONINFOEX osVersionInfo = new OSVERSIONINFOEX();\n\n                osVersionInfo.dwOSVersionInfoSize = Marshal.SizeOf(typeof(OSVERSIONINFOEX));\n\n                if (GetVersionEx(ref osVersionInfo))\n                {\n                    servicePack = osVersionInfo.szCSDVersion;\n                }\n\n                return servicePack;\n            }\n        }\n        #endregion SERVICE PACK\n\n        #region VERSION\n        #region BUILD\n        /// <summary>\n        /// Gets the build version number of the operating system running on this computer.\n        /// </summary>\n        static public int BuildVersion\n        {\n            get\n            {\n                return int.Parse(RegistryRead(@\"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\", \"CurrentBuildNumber\", \"0\"));\n            }\n        }\n        #endregion BUILD\n\n        #region FULL\n        #region STRING\n        /// <summary>\n        /// Gets the full version string of the operating system running on this computer.\n        /// </summary>\n        static public string VersionString\n        {\n            get\n            {\n                return Version.ToString();\n            }\n        }\n        #endregion STRING\n\n        #region VERSION\n        /// <summary>\n        /// Gets the full version of the operating system running on this computer.\n        /// </summary>\n        static public Version Version\n        {\n            get\n            {\n                return new Version(MajorVersion, MinorVersion, BuildVersion, RevisionVersion);\n            }\n        }\n        #endregion VERSION\n        #endregion FULL\n\n        #region MAJOR\n        /// <summary>\n        /// Gets the major version number of the operating system running on this computer.\n        /// </summary>\n        static public int MajorVersion\n        {\n            get\n            {\n                if(IsWindows10())\n                {\n                    return 10;\n                }\n                string exactVersion = RegistryRead(@\"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\", \"CurrentVersion\", \"\");\n                if(!string.IsNullOrEmpty(exactVersion))\n                {\n                    string[] splitVersion = exactVersion.Split('.');\n                    return int.Parse(splitVersion[0]);\n                }\n                return Environment.OSVersion.Version.Major;\n            }\n        }\n        #endregion MAJOR\n\n        #region MINOR\n        /// <summary>\n        /// Gets the minor version number of the operating system running on this computer.\n        /// </summary>\n        static public int MinorVersion\n        {\n            get\n            {\n                if (IsWindows10())\n                {\n                    return 0;\n                }\n                string exactVersion = RegistryRead(@\"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\", \"CurrentVersion\", \"\");\n                if (!string.IsNullOrEmpty(exactVersion))\n                {\n                    string[] splitVersion = exactVersion.Split('.');\n                    return int.Parse(splitVersion[1]);\n                }\n                return Environment.OSVersion.Version.Minor;\n            }\n        }\n        #endregion MINOR\n\n        #region REVISION\n        /// <summary>\n        /// Gets the revision version number of the operating system running on this computer.\n        /// </summary>\n        static public int RevisionVersion\n        {\n            get\n            {\n                if(IsWindows10())\n                {\n                    return 0;\n                }\n                return Environment.OSVersion.Version.Revision;\n            }\n        }\n        #endregion REVISION\n        #endregion VERSION\n\n        #region 64 BIT OS DETECTION\n        private static IsWow64ProcessDelegate GetIsWow64ProcessDelegate()\n        {\n            IntPtr handle = LoadLibrary(\"kernel32\");\n\n            if (handle != IntPtr.Zero)\n            {\n                IntPtr fnPtr = GetProcAddress(handle, \"IsWow64Process\");\n\n                if (fnPtr != IntPtr.Zero)\n                {\n                    return (IsWow64ProcessDelegate)Marshal.GetDelegateForFunctionPointer((IntPtr)fnPtr, typeof(IsWow64ProcessDelegate));\n                }\n            }\n\n            return null;\n        }\n\n        private static bool Is32BitProcessOn64BitProcessor()\n        {\n            IsWow64ProcessDelegate fnDelegate = GetIsWow64ProcessDelegate();\n\n            if (fnDelegate == null)\n            {\n                return false;\n            }\n\n            bool isWow64;\n            bool retVal = fnDelegate.Invoke(Process.GetCurrentProcess().Handle, out isWow64);\n\n            if (retVal == false)\n            {\n                return false;\n            }\n\n            return isWow64;\n        }\n        #endregion 64 BIT OS DETECTION\n\n        #region Windows 10 Detection\n\n        private static bool IsWindows10()\n        {\n            string productName = RegistryRead(@\"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\", \"ProductName\", \"\");\n            if (productName.StartsWith(\"Windows 10\", StringComparison.OrdinalIgnoreCase))\n            {\n                return true;\n            }\n            return false;\n        }\n\n        #endregion\n\n        #region Registry Methods\n\n        private static string RegistryRead(string RegistryPath, string Field, string DefaultValue)\n        {\n            string rtn = \"\";\n            string backSlash = \"\";\n            string newRegistryPath = \"\";\n\n            try\n            {\n                RegistryKey OurKey = null;\n                string[] split_result = RegistryPath.Split('\\\\');\n\n                if (split_result.Length > 0)\n                {\n                    split_result[0] = split_result[0].ToUpper();        // Make the first entry uppercase...\n\n                    if (split_result[0] == \"HKEY_CLASSES_ROOT\") OurKey = Registry.ClassesRoot;\n                    else if (split_result[0] == \"HKEY_CURRENT_USER\") OurKey = Registry.CurrentUser;\n                    else if (split_result[0] == \"HKEY_LOCAL_MACHINE\") OurKey = Registry.LocalMachine;\n                    else if (split_result[0] == \"HKEY_USERS\") OurKey = Registry.Users;\n                    else if (split_result[0] == \"HKEY_CURRENT_CONFIG\") OurKey = Registry.CurrentConfig;\n\n                    if (OurKey != null)\n                    {\n                        for (int i = 1; i < split_result.Length; i++)\n                        {\n                            newRegistryPath += backSlash + split_result[i];\n                            backSlash = \"\\\\\";\n                        }\n\n                        if (newRegistryPath != \"\")\n                        {\n                            //rtn = (string)Registry.GetValue(RegistryPath, \"CurrentVersion\", DefaultValue);\n\n                            OurKey = OurKey.OpenSubKey(newRegistryPath);\n                            rtn = (string)OurKey.GetValue(Field, DefaultValue);\n                            OurKey.Close();\n                        }\n                    }\n                }\n            }\n            catch { }\n\n            return rtn;\n        }\n\n        #endregion Registry Methods\n    }\n}\n"
  },
  {
    "path": "CMWTAT_DIGITAL/Properties/AssemblyInfo.cs",
    "content": "﻿using System.Reflection;\nusing System.Resources;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\nusing System.Windows;\n\n// 有关程序集的一般信息由以下\n// 控制。更改这些特性值可修改\n// 与程序集关联的信息。\n[assembly: AssemblyTitle(\"CMWTAT Digital Edition\")]\n[assembly: AssemblyDescription(\"CloudMoe Windows 10+ Activation Toolkit\")]\n[assembly: AssemblyConfiguration(\"\")]\n[assembly: AssemblyCompany(\"CloudMoe Network\")]\n[assembly: AssemblyProduct(\"CMWTAT Digital Edition\")]\n[assembly: AssemblyCopyright(\"Copyright © CloudMoe Saltfish Studio 2024\")]\n[assembly: AssemblyTrademark(\"CloudMoe Saltfish Studio\")]\n[assembly: AssemblyCulture(\"\")]\n\n// 将 ComVisible 设置为 false 会使此程序集中的类型\n//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型\n//请将此类型的 ComVisible 特性设置为 true。\n[assembly: ComVisible(false)]\n\n//若要开始生成可本地化的应用程序，请设置\n//.csproj 文件中的 <UICulture>CultureYouAreCodingWith</UICulture>\n//例如，如果您在源文件中使用的是美国英语，\n//使用的是美国英语，请将 <UICulture> 设置为 en-US。  然后取消\n//对以下 NeutralResourceLanguage 特性的注释。  更新\n//以下行中的“en-US”以匹配项目文件中的 UICulture 设置。\n\n//[assembly: NeutralResourcesLanguage(\"en-US\", UltimateResourceFallbackLocation.Satellite)]\n\n\n[assembly: ThemeInfo(\n    ResourceDictionaryLocation.None, //主题特定资源词典所处位置\n                                     //(未在页面中找到资源时使用，\n                                     //或应用程序资源字典中找到时使用)\n    ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置\n                                              //(未在页面中找到资源时使用，\n                                              //、应用程序或任何主题专用资源字典中找到时使用)\n)]\n\n\n// 程序集的版本信息由下列四个值组成: \n//\n//      主版本\n//      次版本\n//      生成号\n//      修订号\n//\n// 可以指定所有值，也可以使用以下所示的 \"*\" 预置版本号和修订号\n// 方法是按如下所示使用“*”: :\n// [assembly: AssemblyVersion(\"1.0.*\")]\n[assembly: AssemblyVersion(\"2.7.2.0\")]\n[assembly: AssemblyFileVersion(\"2.7.2.0\")]\n"
  },
  {
    "path": "CMWTAT_DIGITAL/Properties/Resources.Designer.cs",
    "content": "﻿//------------------------------------------------------------------------------\n// <auto-generated>\n//     此代码由工具生成。\n//     运行时版本:4.0.30319.42000\n//\n//     对此文件的更改可能会导致不正确的行为，并且如果\n//     重新生成代码，这些更改将会丢失。\n// </auto-generated>\n//------------------------------------------------------------------------------\n\nnamespace CMWTAT_DIGITAL.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\", \"17.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(\"CMWTAT_DIGITAL.Properties.Resources\", typeof(Resources).Assembly);\n                    resourceMan = temp;\n                }\n                return resourceMan;\n            }\n        }\n        \n        /// <summary>\n        ///   重写当前线程的 CurrentUICulture 属性，对\n        ///   使用此强类型资源类的所有资源查找执行重写。\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        ///   查找 System.Byte[] 类型的本地化资源。\n        /// </summary>\n        internal static byte[] ClipUp {\n            get {\n                object obj = ResourceManager.GetObject(\"ClipUp\", resourceCulture);\n                return ((byte[])(obj));\n            }\n        }\n        \n        /// <summary>\n        ///   查找类似于 (图标) 的 System.Drawing.Icon 类型的本地化资源。\n        /// </summary>\n        internal static System.Drawing.Icon CMWTAT_ICON {\n            get {\n                object obj = ResourceManager.GetObject(\"CMWTAT_ICON\", resourceCulture);\n                return ((System.Drawing.Icon)(obj));\n            }\n        }\n        \n        /// <summary>\n        ///   查找 System.Byte[] 类型的本地化资源。\n        /// </summary>\n        internal static byte[] slmgr {\n            get {\n                object obj = ResourceManager.GetObject(\"slmgr\", resourceCulture);\n                return ((byte[])(obj));\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "CMWTAT_DIGITAL/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  <assembly alias=\"System.Windows.Forms\" name=\"System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\" />\n  <data name=\"ClipUp\" type=\"System.Resources.ResXFileRef, System.Windows.Forms\">\n    <value>..\\res\\clipup.exe;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\n  </data>\n  <data name=\"CMWTAT_ICON\" type=\"System.Resources.ResXFileRef, System.Windows.Forms\">\n    <value>..\\CMWTAT.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\n  </data>\n  <data name=\"slmgr\" type=\"System.Resources.ResXFileRef, System.Windows.Forms\">\n    <value>..\\Res\\slmgr.vbs;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\n  </data>\n</root>"
  },
  {
    "path": "CMWTAT_DIGITAL/Properties/Settings.Designer.cs",
    "content": "﻿//------------------------------------------------------------------------------\n// <auto-generated>\n//     此代码由工具生成。\n//     运行时版本:4.0.30319.42000\n//\n//     对此文件的更改可能会导致不正确的行为，并且如果\n//     重新生成代码，这些更改将会丢失。\n// </auto-generated>\n//------------------------------------------------------------------------------\n\nnamespace CMWTAT_DIGITAL.Properties {\n    \n    \n    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]\n    [global::System.CodeDom.Compiler.GeneratedCodeAttribute(\"Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator\", \"17.11.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": "CMWTAT_DIGITAL/Properties/Settings.settings",
    "content": "﻿<?xml version='1.0' encoding='utf-8'?>\n<SettingsFile xmlns=\"uri:settings\" CurrentProfile=\"(Default)\">\n  <Profiles>\n    <Profile Name=\"(Default)\" />\n  </Profiles>\n  <Settings />\n</SettingsFile>"
  },
  {
    "path": "CMWTAT_DIGITAL/app.config",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<configuration>\n<startup><supportedRuntime version=\"v4.0\" sku=\".NETFramework,Version=v4.5.2\"/></startup></configuration>\n"
  },
  {
    "path": "CMWTAT_DIGITAL/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=\"highestAvailable\" uiAccess=\"false\" />\n      </requestedPrivileges>\n    </security>\n  </trustInfo>\n\n  <compatibility xmlns=\"urn:schemas-microsoft-com:compatibility.v1\">\n    <application>\n      <!-- 设计此应用程序与其一起工作且已针对此应用程序进行测试的\n           Windows 版本的列表。取消评论适当的元素，Windows 将\n           自动选择最兼容的环境。 -->\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  <!-- 启用 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": "CMWTAT_DIGITAL/packages.config",
    "content": "﻿<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<packages>\n  <package id=\"Costura.Fody\" version=\"4.1.0\" targetFramework=\"net452\" developmentDependency=\"true\" />\n  <package id=\"Fody\" version=\"6.9.1\" targetFramework=\"net452\" developmentDependency=\"true\" />\n  <package id=\"MaterialDesignColors\" version=\"2.0.6\" targetFramework=\"net452\" />\n  <package id=\"MaterialDesignThemes\" version=\"4.5.0\" targetFramework=\"net452\" />\n  <package id=\"Newtonsoft.Json\" version=\"13.0.1\" targetFramework=\"net452\" />\n</packages>"
  },
  {
    "path": "CMWTAT_DIGITAL.sln",
    "content": "﻿\nMicrosoft Visual Studio Solution File, Format Version 12.00\n# Visual Studio 15\nVisualStudioVersion = 15.0.27130.2036\nMinimumVisualStudioVersion = 10.0.40219.1\nProject(\"{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}\") = \"CMWTAT_DIGITAL\", \"CMWTAT_DIGITAL\\CMWTAT_DIGITAL.csproj\", \"{961DE925-B82C-4515-8FBD-6805E36D1212}\"\nEndProject\nGlobal\n\tGlobalSection(SolutionConfigurationPlatforms) = preSolution\n\t\tDebug|Any CPU = Debug|Any CPU\n\t\tRelease|Any CPU = Release|Any CPU\n\tEndGlobalSection\n\tGlobalSection(ProjectConfigurationPlatforms) = postSolution\n\t\t{961DE925-B82C-4515-8FBD-6805E36D1212}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{961DE925-B82C-4515-8FBD-6805E36D1212}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{961DE925-B82C-4515-8FBD-6805E36D1212}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{961DE925-B82C-4515-8FBD-6805E36D1212}.Release|Any CPU.Build.0 = Release|Any CPU\n\tEndGlobalSection\n\tGlobalSection(SolutionProperties) = preSolution\n\t\tHideSolutionNode = FALSE\n\tEndGlobalSection\n\tGlobalSection(ExtensibilityGlobals) = postSolution\n\t\tSolutionGuid = {653ED007-6FEF-4A82-9898-F60578205F1C}\n\tEndGlobalSection\nEndGlobal\n"
  },
  {
    "path": "DirectRun.ps1",
    "content": "$isAdmin = (New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)\n\nif (-not $isAdmin) {\n    Start-Process powershell -ArgumentList \"irm https://tgsan.github.io/CMWTAT_Digital_Edition/DirectRun.ps1 | iex\" -Verb RunAs\n    Exit\n}\n\n# $exePath = \".\\CMWTAT_DIGITAL\\bin\\Debug\\CMWTAT_DIGITAL.exe\"\n# $exeBytes = [System.IO.File]::ReadAllBytes($exePath)\n# $bytes = $exeBytes\n\n$bytes = (Invoke-WebRequest \"https://tgsan.github.io/CMWTAT_Digital_Edition/CMWTAT_Digital_Release_2_7_2_0.exe\").Content\n$assembly = [System.Reflection.Assembly]::Load($bytes)\n$entryPointMethod = $assembly.EntryPoint\n$entryPointMethod.Invoke($null, @())"
  },
  {
    "path": "LICENSE",
    "content": "GNU GENERAL PUBLIC LICENSE\n\nCopyright (c) 2018 TGSAN\n\n                       Version 2, June 1991\n\n Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>\n 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\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 licenses for most software are designed to take away your\nfreedom to share and change it.  By contrast, the GNU General Public\nLicense is intended to guarantee your freedom to share and change free\nsoftware--to make sure the software is free for all its users.  This\nGeneral Public License applies to most of the Free Software\nFoundation's software and to any other program whose authors commit to\nusing it.  (Some other Free Software Foundation software is covered by\nthe GNU Lesser General Public License instead.)  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\nthis service if you wish), that you receive source code or can get it\nif you want it, that you can change the software or use pieces of it\nin new free programs; and that you know you can do these things.\n\n  To protect your rights, we need to make restrictions that forbid\nanyone to deny you these rights or to ask you to surrender the rights.\nThese restrictions translate to certain responsibilities for you if you\ndistribute copies of the software, or if you modify it.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must give the recipients all the rights that\nyou have.  You must make sure that they, too, receive or can get the\nsource code.  And you must show them these terms so they know their\nrights.\n\n  We protect your rights with two steps: (1) copyright the software, and\n(2) offer you this license which gives you legal permission to copy,\ndistribute and/or modify the software.\n\n  Also, for each author's protection and ours, we want to make certain\nthat everyone understands that there is no warranty for this free\nsoftware.  If the software is modified by someone else and passed on, we\nwant its recipients to know that what they have is not the original, so\nthat any problems introduced by others will not reflect on the original\nauthors' reputations.\n\n  Finally, any free program is threatened constantly by software\npatents.  We wish to avoid the danger that redistributors of a free\nprogram will individually obtain patent licenses, in effect making the\nprogram proprietary.  To prevent this, we have made it clear that any\npatent must be licensed for everyone's free use or not licensed at all.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                    GNU GENERAL PUBLIC LICENSE\n   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n  0. This License applies to any program or other work which contains\na notice placed by the copyright holder saying it may be distributed\nunder the terms of this General Public License.  The \"Program\", below,\nrefers to any such program or work, and a \"work based on the Program\"\nmeans either the Program or any derivative work under copyright law:\nthat is to say, a work containing the Program or a portion of it,\neither verbatim or with modifications and/or translated into another\nlanguage.  (Hereinafter, translation is included without limitation in\nthe term \"modification\".)  Each licensee is addressed as \"you\".\n\nActivities other than copying, distribution and modification are not\ncovered by this License; they are outside its scope.  The act of\nrunning the Program is not restricted, and the output from the Program\nis covered only if its contents constitute a work based on the\nProgram (independent of having been made by running the Program).\nWhether that is true depends on what the Program does.\n\n  1. You may copy and distribute verbatim copies of the Program's\nsource code as you receive it, in any medium, provided that you\nconspicuously and appropriately publish on each copy an appropriate\ncopyright notice and disclaimer of warranty; keep intact all the\nnotices that refer to this License and to the absence of any warranty;\nand give any other recipients of the Program a copy of this License\nalong with the Program.\n\nYou may charge a fee for the physical act of transferring a copy, and\nyou may at your option offer warranty protection in exchange for a fee.\n\n  2. You may modify your copy or copies of the Program or any portion\nof it, thus forming a work based on the Program, and copy and\ndistribute such modifications or work under the terms of Section 1\nabove, provided that you also meet all of these conditions:\n\n    a) You must cause the modified files to carry prominent notices\n    stating that you changed the files and the date of any change.\n\n    b) You must cause any work that you distribute or publish, that in\n    whole or in part contains or is derived from the Program or any\n    part thereof, to be licensed as a whole at no charge to all third\n    parties under the terms of this License.\n\n    c) If the modified program normally reads commands interactively\n    when run, you must cause it, when started running for such\n    interactive use in the most ordinary way, to print or display an\n    announcement including an appropriate copyright notice and a\n    notice that there is no warranty (or else, saying that you provide\n    a warranty) and that users may redistribute the program under\n    these conditions, and telling the user how to view a copy of this\n    License.  (Exception: if the Program itself is interactive but\n    does not normally print such an announcement, your work based on\n    the Program is not required to print an announcement.)\n\nThese requirements apply to the modified work as a whole.  If\nidentifiable sections of that work are not derived from the Program,\nand can be reasonably considered independent and separate works in\nthemselves, then this License, and its terms, do not apply to those\nsections when you distribute them as separate works.  But when you\ndistribute the same sections as part of a whole which is a work based\non the Program, the distribution of the whole must be on the terms of\nthis License, whose permissions for other licensees extend to the\nentire whole, and thus to each and every part regardless of who wrote it.\n\nThus, it is not the intent of this section to claim rights or contest\nyour rights to work written entirely by you; rather, the intent is to\nexercise the right to control the distribution of derivative or\ncollective works based on the Program.\n\nIn addition, mere aggregation of another work not based on the Program\nwith the Program (or with a work based on the Program) on a volume of\na storage or distribution medium does not bring the other work under\nthe scope of this License.\n\n  3. You may copy and distribute the Program (or a work based on it,\nunder Section 2) in object code or executable form under the terms of\nSections 1 and 2 above provided that you also do one of the following:\n\n    a) Accompany it with the complete corresponding machine-readable\n    source code, which must be distributed under the terms of Sections\n    1 and 2 above on a medium customarily used for software interchange; or,\n\n    b) Accompany it with a written offer, valid for at least three\n    years, to give any third party, for a charge no more than your\n    cost of physically performing source distribution, a complete\n    machine-readable copy of the corresponding source code, to be\n    distributed under the terms of Sections 1 and 2 above on a medium\n    customarily used for software interchange; or,\n\n    c) Accompany it with the information you received as to the offer\n    to distribute corresponding source code.  (This alternative is\n    allowed only for noncommercial distribution and only if you\n    received the program in object code or executable form with such\n    an offer, in accord with Subsection b above.)\n\nThe source code for a work means the preferred form of the work for\nmaking modifications to it.  For an executable work, complete source\ncode means all the source code for all modules it contains, plus any\nassociated interface definition files, plus the scripts used to\ncontrol compilation and installation of the executable.  However, as a\nspecial exception, the source code distributed need not include\nanything that is normally distributed (in either source or binary\nform) with the major components (compiler, kernel, and so on) of the\noperating system on which the executable runs, unless that component\nitself accompanies the executable.\n\nIf distribution of executable or object code is made by offering\naccess to copy from a designated place, then offering equivalent\naccess to copy the source code from the same place counts as\ndistribution of the source code, even though third parties are not\ncompelled to copy the source along with the object code.\n\n  4. You may not copy, modify, sublicense, or distribute the Program\nexcept as expressly provided under this License.  Any attempt\notherwise to copy, modify, sublicense or distribute the Program is\nvoid, and will automatically terminate your rights under this License.\nHowever, parties who have received copies, or rights, from you under\nthis License will not have their licenses terminated so long as such\nparties remain in full compliance.\n\n  5. You are not required to accept this License, since you have not\nsigned it.  However, nothing else grants you permission to modify or\ndistribute the Program or its derivative works.  These actions are\nprohibited by law if you do not accept this License.  Therefore, by\nmodifying or distributing the Program (or any work based on the\nProgram), you indicate your acceptance of this License to do so, and\nall its terms and conditions for copying, distributing or modifying\nthe Program or works based on it.\n\n  6. Each time you redistribute the Program (or any work based on the\nProgram), the recipient automatically receives a license from the\noriginal licensor to copy, distribute or modify the Program subject to\nthese terms and conditions.  You may not impose any further\nrestrictions on the recipients' exercise of the rights granted herein.\nYou are not responsible for enforcing compliance by third parties to\nthis License.\n\n  7. If, as a consequence of a court judgment or allegation of patent\ninfringement or for any other reason (not limited to patent issues),\nconditions 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\ndistribute so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you\nmay not distribute the Program at all.  For example, if a patent\nlicense would not permit royalty-free redistribution of the Program by\nall those who receive copies directly or indirectly through you, then\nthe only way you could satisfy both it and this License would be to\nrefrain entirely from distribution of the Program.\n\nIf any portion of this section is held invalid or unenforceable under\nany particular circumstance, the balance of the section is intended to\napply and the section as a whole is intended to apply in other\ncircumstances.\n\nIt is not the purpose of this section to induce you to infringe any\npatents or other property right claims or to contest validity of any\nsuch claims; this section has the sole purpose of protecting the\nintegrity of the free software distribution system, which is\nimplemented by public license practices.  Many people have made\ngenerous contributions to the wide range of software distributed\nthrough that system in reliance on consistent application of that\nsystem; it is up to the author/donor to decide if he or she is willing\nto distribute software through any other system and a licensee cannot\nimpose that choice.\n\nThis section is intended to make thoroughly clear what is believed to\nbe a consequence of the rest of this License.\n\n  8. If the distribution and/or use of the Program is restricted in\ncertain countries either by patents or by copyrighted interfaces, the\noriginal copyright holder who places the Program under this License\nmay add an explicit geographical distribution limitation excluding\nthose countries, so that distribution is permitted only in or among\ncountries not thus excluded.  In such case, this License incorporates\nthe limitation as if written in the body of this License.\n\n  9. The Free Software Foundation may publish revised and/or new versions\nof the 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\nEach version is given a distinguishing version number.  If the Program\nspecifies a version number of this License which applies to it and \"any\nlater version\", you have the option of following the terms and conditions\neither of that version or of any later version published by the Free\nSoftware Foundation.  If the Program does not specify a version number of\nthis License, you may choose any version ever published by the Free Software\nFoundation.\n\n  10. If you wish to incorporate parts of the Program into other free\nprograms whose distribution conditions are different, write to the author\nto ask for permission.  For software which is copyrighted by the Free\nSoftware Foundation, write to the Free Software Foundation; we sometimes\nmake exceptions for this.  Our decision will be guided by the two goals\nof preserving the free status of all derivatives of our free software and\nof promoting the sharing and reuse of software generally.\n\n                            NO WARRANTY\n\n  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\nFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN\nOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\nPROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\nOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS\nTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE\nPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\nREPAIR OR CORRECTION.\n\n  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\nREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\nINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\nOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\nTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\nYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\nPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGES.\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\nconvey 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    \n    Copyright (C) 2018  TGSAN\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 2 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 along\n    with this program; if not, write to the Free Software Foundation, Inc.,\n    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program is interactive, make it output a short notice like this\nwhen it starts in an interactive mode:\n\n    Gnomovision version 69, Copyright (C) year name of author\n    Gnomovision 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, the commands you use may\nbe called something other than `show w' and `show c'; they could even be\nmouse-clicks or menu items--whatever suits your program.\n\nYou should also get your employer (if you work as a programmer) or your\nschool, if any, to sign a \"copyright disclaimer\" for the program, if\nnecessary.  Here is a sample; alter the names:\n\n  Yoyodyne, Inc., hereby disclaims all copyright interest in the program\n  `Gnomovision' (which makes passes at compilers) written by James Hacker.\n\n  {signature of Ty Coon}, 1 April 1989\n  Ty Coon, President of Vice\n\nThis General Public License does not permit incorporating your program into\nproprietary programs.  If your program is a subroutine library, you may\nconsider it more useful to permit linking proprietary applications with the\nlibrary.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.\n"
  },
  {
    "path": "README.en.md",
    "content": "# Official Site\n\n[https://cmwtat.cloudmoe.com]\n\n# CloudMoe Windows 10+ Activation Toolkit Digital Edition\n\nThis toolkit can activate your Windows 10 and Windows 11 use digital license.  \n\nA Windows 10 and Windows 11 digital license activation tool written in CSharp.  \n\n![UI Screenshot][UI_image]\n\n# Download\n\n## Save Locally and Use\n\n> Since it is flagged by Microsoft Defender as a \"Windows activation tool,\" it may be detected as a threat and automatically deleted after downloading.\n\n1. Download the `.exe` release file from [Releases](https://github.com/TGSAN/CMWTAT_Digital_Edition/releases/latest).  \n\n2. Run the file directly.  \n\n## Use Directly\n\n> Since it fetches the latest version online every time it starts, the startup time will be slower.\n\n1. Press the `Win + R` key combination to open the Run dialog.  \n\n2. Copy the following command into the Run dialog and press Enter.  \n\n```\npowershell -Command \"irm https://tgsan.github.io/CMWTAT_Digital_Edition/DirectRun.ps1 | iex\"\n```\n\n3. Wait for the fetch to complete, and the tool will start automatically.  \n\n# Usage\n\n## Getting started\n\n### Use Auto Mode to activate `Windows 10` or `Windows 11`\n\n1. Download release `.exe` file.\n\n2. Run it.\n\n3. Click `Activate` button.\n\n4. Enjoy it :)\n\n## Advanced\n\n### Switch between different editions of `Windows`\n\n* Note: Currently, it is known that `Windows` `Professional`, `ProfessionalWorkstation`, `Education`, `ProfessionalEducation`, and `Enterprise` editions can be switched between each other (except for N and LTSB editions), and these editions cannot be directly converted to `Home (Core)` edition with one click. If you need to switch, please use the `Upgrade to full version of Windows` function added in version 2.6 (this function only appears on the core edition of the operating system) or use the `Change product key` function in `Windows Settings` to upgrade.  \nYou need to activate the `Enterprise` edition before activating the `IoTEnterprise` edition.\n\n##### Auto Mode\n\n1. Run it.\n\n2. Select `Auto Mode` 。\n\n3. Select the edition you want to upgrade to from the drop-down list.\n\n4. Press the `Convert versions` conversion button.\n\n5. Done.\n\n##### Manual Mode\n\n* Note: This method does not work for activating some versions, such as `Professional Education (ProfessionalEducation)`, even if you enter the corresponding OEM retail key.\n\n1. Run it.\n\n2. Select `Manual Mode`.\n\n3. Enter the OEM retail key corresponding to the version you want to upgrade to in the input box (you do not need the activation key on the product packaging, but the key assigned by Microsoft official, such as the professional version corresponding key is `VK7JG-NPHTM-C97JM-9MPGT-3V66T`).\n\n4. Press the `Convert versions` conversion button.\n\n5. Done.\n\n### Activate a `Windows` edition that is not in the list using `Manual Mode`\n\n1. Run it.\n\n2. Select `Manual Mode`.\n\n3. Enter the OEM retail key corresponding to the version you want to upgrade to in the input box (you do not need the activation key on the product packaging, but the key assigned by Microsoft official, such as the professional version corresponding key is `VK7JG-NPHTM-C97JM-9MPGT-3V66T`).\n\n4. Press the `Activate` conversion button.\n\n5. Done.\n\n## Startup Parameters\n\n```\n-?  --help            Pop up the startup parameter help dialog after startup.\n-a  --auto            Automatically activate the system after startup.\n-e  --expact          Allow the use of experimental schemes when automatically activating the system. (Need to be used with -a or --auto)\n-h  --hide            Start in hidden mode, the activation progress is displayed in the form of notifications. (Need to be used with -a or --auto)\n```\n\n# License\n\n[GPL-2.0](./LICENSE)\n\n# Contributors\n\n[https://github.com/TGSAN/CMWTAT_Digital_Edition/graphs/contributors]\n\n[UI_image]:./images/UI.jpg\n[https://cmwtat.cloudmoe.com]:https://cmwtat.cloudmoe.com\n[https://github.com/TGSAN/CMWTAT_Digital_Edition/graphs/contributors]:https://github.com/TGSAN/CMWTAT_Digital_Edition/graphs/contributors\n"
  },
  {
    "path": "README.md",
    "content": "# Official Site 官方网站\n\n[https://cmwtat.cloudmoe.com]\n\n# CloudMoe Windows 10+ Activation Toolkit Digital Edition\n\nThis toolkit can activate your Windows 10 and Windows 11 use digital license.  \n\n此工具可以使用数字权利激活您的 `Windows 10` 和 `Windows 11`。 \n\nA Windows 10 and Windows 11 digital license activation tool written in CSharp.  \n\n一款使用`CSharp`编写的 `Windows 10` 和 `Windows 11` 数字权利激活工具。\n\n![UI界面截图][UI_image]\n\n# Usage 使用\n\n### [English Readme](./README.en.md)  \n\n### [中文 Readme](./README.zh.md)  \n\n# License 许可协议\n\n[GPL-2.0](./LICENSE)\n\n# Contributors 贡献者\n\n[https://github.com/TGSAN/CMWTAT_Digital_Edition/graphs/contributors]\n\n[UI_image]:./images/UI.jpg\n[https://cmwtat.cloudmoe.com]:https://cmwtat.cloudmoe.com\n[https://github.com/TGSAN/CMWTAT_Digital_Edition/graphs/contributors]:https://github.com/TGSAN/CMWTAT_Digital_Edition/graphs/contributors\n"
  },
  {
    "path": "README.zh.md",
    "content": "# 官方网站\n\n[https://cmwtat.cloudmoe.com]\n\n# 云萌 Windows 10+ 数字权利激活工具\n\n此工具可以使用数字权利激活您的 `Windows 10` 和 `Windows 11`。  \n\n一款使用`CSharp`编写的 `Windows 10` 和 `Windows 11` 数字权利激活工具。\n\n![UI界面截图][UI_image]\n\n# 下载\n\n## 保存到本地并使用\n\n> 由于被 Microsoft Defender 标记为 “Windows 激活工具”，所以可能会下载后提示检测到威胁并自动删除。\n\n1. 下载 [Releases](https://github.com/TGSAN/CMWTAT_Digital_Edition/releases/latest) 里的 `.exe` 发行文件。\n\n2. 运行即可。\n\n## 直接使用\n\n> 由于每次启动时都会联网拉取最新版本，所以启动时间会更慢。\n> 由于被 Microsoft Defender 标记为 “Windows 激活工具”，所以可能无法执行或报错。\n\n1. 按 `Win + R` 组合键打开运行对话框。  \n\n2. 复制以下命令到运行对话框中并按回车键。  \n\n```\npowershell -Command \"irm https://tgsan.github.io/CMWTAT_Digital_Edition/DirectRun.ps1 | iex\"\n```\n\n> 由于中国大陆部分地区的部分运营商屏蔽了 github.io，如果报错或速度缓慢可以使用以下命令替代\n\n```\npowershell -Command \"irm https://fastly.jsdelivr.net/gh/TGSAN/CMWTAT_Digital_Edition/CDNDirectRun.ps1 | iex\"\n```\n\n3. 等待拉取成功后，会自动启动工具。\n\n# 使用\n\n## 入门\n\n### 使用自动模式激活 `Windows 10` 或 `Windows 11`\n\n1. 下载 Releases 里的 `.exe` 发行文件。\n\n2. 运行它。\n\n3. 点按 `激活` 按钮。\n\n4. 完成~\n\n## 进阶\n\n### 在不同版本 `Windows` 之间转换\n\n* 注意: 目前已知 `Windows` 的 `专业版（Professional）`、`专业工作站版（ProfessionalWorkstation）`、`教育版（Education）`、`专业教育版（ProfessionalEducation）`、`企业版（Enterprise）` 之间可以进行互相转换（N版本与LTSB版本除外），而这些版本与`家庭版（Core）`均不能直接一键转换，如需转换请使用 2.6 版本新增的 `升级到完整版 Windows` 功能（此功能仅在核心版操作系统上显示）或使用 `Windows设置` 中的 `更改产品密钥` 功能进行升级。  \n激活 `物联网企业版（IoTEnterprise）` 版本前需要先激活 `企业版（Enterprise）`。\n\n##### 自动模式\n\n1. 运行它。\n\n2. 选择 `自动模式` 。\n\n3. 在下拉列表中选择要升级到的版本。\n\n4. 点按 `版本无缝转换` 按钮。\n\n5. 完成。\n\n##### 手动模式\n\n* 注意:  此方法不适用于某些版本的激活，如 `专业教育版（ProfessionalEducation）` ，即使你输入了对应的OEM零售密钥。\n\n1. 运行它。\n\n2. 选择 `手动模式` 。\n\n3. 输入框中输入需要升级到的版本对应的OEM零售密钥（不需要产品包装上的激活密钥，而是微软官方分配的密钥，如专业版对应密钥为 `VK7JG-NPHTM-C97JM-9MPGT-3V66T`）。\n\n4. 点按 `版本无缝转换` 按钮。\n\n5. 完成。\n\n### 通过 `手动模式` 激活不在列表中的 `Windows` 版本\n\n1. 运行它。\n\n2. 选择 `手动模式` 。\n\n3. 输入框中输入需要升级到的版本对应的OEM零售密钥（不需要产品包装上的激活密钥，而是微软官方分配的密钥，如专业版对应密钥为 `VK7JG-NPHTM-C97JM-9MPGT-3V66T`）。\n\n4. 点按 `激活` 按钮。\n\n5. 完成。\n\n## 启动参数\n\n```\n-?  --help            启动后弹出启动参数帮助对话框。\n-a  --auto            启动后自动激活系统。\n-e  --expact          自动激活系统时允许使用实验性方案。（需要与 -a 或 --auto 配合使用）\n-h  --hide            以隐藏模式启动，激活进度以通知形式显示。（需要与 -a 或 --auto 配合使用）\n```\n\n# 许可协议\n\n[GPL-2.0](./LICENSE)\n\n# 贡献者\n\n[https://github.com/TGSAN/CMWTAT_Digital_Edition/graphs/contributors]\n\n[UI_image]:./images/UI.jpg\n[https://cmwtat.cloudmoe.com]:https://cmwtat.cloudmoe.com\n[https://github.com/TGSAN/CMWTAT_Digital_Edition/graphs/contributors]:https://github.com/TGSAN/CMWTAT_Digital_Edition/graphs/contributors\n"
  },
  {
    "path": "_config.yml",
    "content": "theme: jekyll-theme-cayman\nshow_downloads: false\ntitle: CloudMoe Windows 10  Toolkit Digital Edition\ndescription: CloudMoe Windows 10 Acivation Toolkit get digital license, the best open source Win 10 activator in GitHub. <br>GitHub 上最棒的开源 Win10 数字权利（数字许可证）激活工具！\n# SEORelate\ngoogle_site_verification :\nbing_site_verification   :\nalexa_site_verification  :\nyandex_site_verification :\ntags: [Digital License, Windows 10 Acivation Toolkit, Activator]\nnavbar-links:\n  Resources:\n    - Learn markdown: \"http://www.markdowntutorial.com/\"\n    - GitHub Pages: \"https://pages.github.com/\"\n  \n"
  }
]