Browse Source

提交

master
test 2 years ago
parent
commit
88a19893d2
  1. 25
      CMWTAT_DIGITAL.sln
  2. 18
      CMWTAT_DIGITAL/App.xaml
  3. 17
      CMWTAT_DIGITAL/App.xaml.cs
  4. BIN
      CMWTAT_DIGITAL/CMWTAT.ico
  5. BIN
      CMWTAT_DIGITAL/CMWTAT.png
  6. 198
      CMWTAT_DIGITAL/CMWTAT_DIGITAL.csproj
  7. 20
      CMWTAT_DIGITAL/CMWTAT_DIGITAL.csproj.user
  8. 82
      CMWTAT_DIGITAL/Domain/IsSN.cs
  9. 20
      CMWTAT_DIGITAL/Domain/NotifyPropertyChangedExtension.cs
  10. 37
      CMWTAT_DIGITAL/Domain/ViewModel.cs
  11. 213
      CMWTAT_DIGITAL/Lang/en.xaml
  12. 213
      CMWTAT_DIGITAL/Lang/ja.xaml
  13. 213
      CMWTAT_DIGITAL/Lang/zh.xaml
  14. 237
      CMWTAT_DIGITAL/MainWindow.xaml
  15. 1552
      CMWTAT_DIGITAL/MainWindow.xaml.cs
  16. 1089
      CMWTAT_DIGITAL/OSVersionInfoClass.cs
  17. 112
      CMWTAT_DIGITAL/Program.cs
  18. 55
      CMWTAT_DIGITAL/Properties/AssemblyInfo.cs
  19. 113
      CMWTAT_DIGITAL/Properties/Resources.Designer.cs
  20. 136
      CMWTAT_DIGITAL/Properties/Resources.resx
  21. 26
      CMWTAT_DIGITAL/Properties/Settings.Designer.cs
  22. 7
      CMWTAT_DIGITAL/Properties/Settings.settings
  23. 3
      CMWTAT_DIGITAL/app.config
  24. 74
      CMWTAT_DIGITAL/app.manifest
  25. 6
      CMWTAT_DIGITAL/packages.config
  26. BIN
      CMWTAT_Digital_Release_2_5_0_0.exe
  27. BIN
      CMWTAT_Digital_Release_2_5_0_0.zip
  28. 342
      LICENSE
  29. 15
      _config.yml
  30. BIN
      images/2.2.0.1.jpg
  31. BIN
      images/UI.jpg

25
CMWTAT_DIGITAL.sln

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2036
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CMWTAT_DIGITAL", "CMWTAT_DIGITAL\CMWTAT_DIGITAL.csproj", "{961DE925-B82C-4515-8FBD-6805E36D1212}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{961DE925-B82C-4515-8FBD-6805E36D1212}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{961DE925-B82C-4515-8FBD-6805E36D1212}.Debug|Any CPU.Build.0 = Debug|Any CPU
{961DE925-B82C-4515-8FBD-6805E36D1212}.Release|Any CPU.ActiveCfg = Release|Any CPU
{961DE925-B82C-4515-8FBD-6805E36D1212}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {653ED007-6FEF-4A82-9898-F60578205F1C}
EndGlobalSection
EndGlobal

18
CMWTAT_DIGITAL/App.xaml

@ -0,0 +1,18 @@
<Application x:Class="CMWTAT_DIGITAL.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:CMWTAT_KMS"
StartupUri="MainWindow.xaml"
>
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Dark.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.Pink.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Lime.xaml" />
<ResourceDictionary Source="Lang/en.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>

17
CMWTAT_DIGITAL/App.xaml.cs

@ -0,0 +1,17 @@
using CMWTAT_DIGITAL;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
namespace CMWTAT_KMS
{
/// <summary>
/// App.xaml 的交互逻辑
/// </summary>
public partial class App : Application
{
}
}

BIN
CMWTAT_DIGITAL/CMWTAT.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 KiB

BIN
CMWTAT_DIGITAL/CMWTAT.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

198
CMWTAT_DIGITAL/CMWTAT_DIGITAL.csproj

@ -0,0 +1,198 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<TargetPlatformVersion>10.0.10240.0</TargetPlatformVersion>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{961DE925-B82C-4515-8FBD-6805E36D1212}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>CMWTAT_DIGITAL</RootNamespace>
<AssemblyName>CMWTAT_DIGITAL</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<TargetFrameworkProfile />
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>CMWTAT.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup>
<StartupObject>CMWTAT_DIGITAL.Program</StartupObject>
</PropertyGroup>
<ItemGroup>
<Reference Include="MaterialDesignColors, Version=1.1.3.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\MaterialDesignColors.1.1.3\lib\net45\MaterialDesignColors.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="MaterialDesignThemes.Wpf, Version=2.5.0.1205, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\MaterialDesignThemes.2.5.0.1205\lib\net45\MaterialDesignThemes.Wpf.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Runtime" />
<Reference Include="System.Runtime.InteropServices.WindowsRuntime" />
<Reference Include="System.Runtime.WindowsRuntime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="Windows.Data" />
<Reference Include="Windows.Foundation" />
<Reference Include="Windows.UI" />
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="Lang\en.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Lang\ja.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Lang\zh.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="MainWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="Domain\IsSN.cs" />
<Compile Include="Domain\NotifyPropertyChangedExtension.cs" />
<Compile Include="Domain\ViewModel.cs" />
<Compile Include="MainWindow.xaml.cs">
<DependentUpon>MainWindow.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="OSVersionInfoClass.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="app.config" />
<None Include="app.manifest">
<SubType>Designer</SubType>
</None>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<Resource Include="CMWTAT.ico" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="..\packages\MaterialDesignColors.1.1.3\lib\net45\MaterialDesignColors.dll">
<Link>Res\MaterialDesignColors.dll</Link>
</EmbeddedResource>
<EmbeddedResource Include="..\packages\MaterialDesignThemes.2.5.0.1205\lib\net45\MaterialDesignThemes.Wpf.dll">
<Link>Res\MaterialDesignThemes.Wpf.dll</Link>
</EmbeddedResource>
<EmbeddedResource Include="..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll">
<Link>Res\Newtonsoft.Json.dll</Link>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<None Include="Res\gatherosstate.exe" />
</ItemGroup>
<ItemGroup>
<None Include="Res\slc.dll" />
</ItemGroup>
<ItemGroup>
<None Include="Res\slmgr.vbs" />
</ItemGroup>
<ItemGroup>
<Folder Include="bin\Debug\" />
</ItemGroup>
<ItemGroup>
<None Include="Res\gatherosstateltsc.exe" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

20
CMWTAT_DIGITAL/CMWTAT_DIGITAL.csproj.user

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<StartArguments>
</StartArguments>
</PropertyGroup>
<PropertyGroup>
<PublishUrlHistory>publish\</PublishUrlHistory>
<InstallUrlHistory />
<SupportUrlHistory />
<UpdateUrlHistory />
<BootstrapperUrlHistory />
<ErrorReportUrlHistory />
<FallbackCulture>zh-CN</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<StartArguments>-l -%3f</StartArguments>
</PropertyGroup>
</Project>

82
CMWTAT_DIGITAL/Domain/IsSN.cs

@ -0,0 +1,82 @@
using System;
using System.Globalization;
using System.Text.RegularExpressions;
using System.Windows.Controls;
namespace CMWTAT_DIGITAL.Domain
{
class IsSN : ValidationRule
{
#region 匹配方法
/// <summary>
/// 验证字符串是否匹配正则表达式描述的规则
/// </summary>
/// <param name="inputStr">待验证的字符串</param>
/// <param name="patternStr">正则表达式字符串</param>
/// <returns>是否匹配</returns>
public static bool IsMatch(string inputStr, string patternStr)
{
return IsMatch(inputStr, patternStr, false, false);
}
/// <summary>
/// 验证字符串是否匹配正则表达式描述的规则
/// </summary>
/// <param name="inputStr">待验证的字符串</param>
/// <param name="patternStr">正则表达式字符串</param>
/// <param name="ifIgnoreCase">匹配时是否不区分大小写</param>
/// <returns>是否匹配</returns>
public static bool IsMatch(string inputStr, string patternStr, bool ifIgnoreCase)
{
return IsMatch(inputStr, patternStr, ifIgnoreCase, false);
}
/// <summary>
/// 验证字符串是否匹配正则表达式描述的规则
/// </summary>
/// <param name="inputStr">待验证的字符串</param>
/// <param name="patternStr">正则表达式字符串</param>
/// <param name="ifIgnoreCase">匹配时是否不区分大小写</param>
/// <param name="ifValidateWhiteSpace">是否验证空白字符串</param>
/// <returns>是否匹配</returns>
public static bool IsMatch(string inputStr, string patternStr, bool ifIgnoreCase, bool ifValidateWhiteSpace)
{
if (!ifValidateWhiteSpace && string.IsNullOrEmpty(inputStr))
return false;//如果不要求验证空白字符串而此时传入的待验证字符串为空白字符串,则不匹配
Regex regex = null;
if (ifIgnoreCase)
regex = new Regex(patternStr, RegexOptions.IgnoreCase);//指定不区分大小写的匹配
else
regex = new Regex(patternStr);
return regex.IsMatch(inputStr);
}
#endregion
public override ValidationResult Validate(object value, CultureInfo cultureInfo)
{
//Console.WriteLine("\""+value+"\"");
//return string.IsNullOrWhiteSpace((value ?? "").ToString())
// ? new ValidationResult(false, "Key is required.")
// : ValidationResult.ValidResult;
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}$";
if (IsMatch((value ?? "").ToString(), pattern))
{
return ValidationResult.ValidResult;
}
else if (string.IsNullOrWhiteSpace((value ?? "").ToString()))
{
return new ValidationResult(false, "Please enter the key for the current edition.");
}
else
{
return new ValidationResult(false, "Invalid format.");
}
}
}
}

20
CMWTAT_DIGITAL/Domain/NotifyPropertyChangedExtension.cs

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace CMWTAT_DIGITAL.Domain
{
public static class NotifyPropertyChangedExtension
{
public static void MutateVerbose<TField>(this INotifyPropertyChanged instance, ref TField field, TField newValue, Action<PropertyChangedEventArgs> raise, [CallerMemberName] string propertyName = null)
{
if (EqualityComparer<TField>.Default.Equals(field, newValue)) return;
field = newValue;
raise?.Invoke(new PropertyChangedEventArgs(propertyName));
}
}
}

37
CMWTAT_DIGITAL/Domain/ViewModel.cs

@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CMWTAT_DIGITAL.Domain
{
class ViewModel : INotifyPropertyChanged
{
private string _sn;
public ViewModel()
{
LongListToTestComboVirtualization = new List<int>(Enumerable.Range(0, 1000));
}
public string SN
{
get { return _sn; }
set
{
this.MutateVerbose(ref _sn, value, RaisePropertyChanged());
}
}
public IList<int> LongListToTestComboVirtualization { get; }
public event PropertyChangedEventHandler PropertyChanged;
private Action<PropertyChangedEventArgs> RaisePropertyChanged()
{
return args => PropertyChanged?.Invoke(this, args);
}
}
}

213
CMWTAT_DIGITAL/Lang/en.xaml

@ -0,0 +1,213 @@
<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">
<!--
Version: 2.5.0.0
-->
<!--FontFamily Dictionary-->
<FontFamily x:Key="Font">
Roboto
</FontFamily>
<!--String Dictionary-->
<sys:String x:Key="OK">
OK
</sys:String>
<sys:String x:Key="Cancel">
Cancel
</sys:String>
<sys:String x:Key="Refuse">
Refuse
</sys:String>
<sys:String x:Key="DonateBtn">
Thanks developer and donate a dinner
</sys:String>
<sys:String x:Key="Exit">
Exit
</sys:String>
<sys:String x:Key="UpdateNow">
Update Now
</sys:String>
<sys:String x:Key="Ignore">
Ignore
</sys:String>
<sys:String x:Key="TitleName">
CMWTAT Digital Edition
</sys:String>
<sys:String x:Key="AppName">
CMWTAT Digital Edition V2
</sys:String>
<sys:String x:Key="UpdateTitle">
A new version available!
</sys:String>
<sys:String x:Key="CurrentVersion">
Current Version
</sys:String>
<sys:String x:Key="LatestVersion">
Latest Version
</sys:String>
<sys:String x:Key="Auto_Mode">
Auto Mode
</sys:String>
<sys:String x:Key="Manual_Mode">
Manual Mode
</sys:String>
<sys:String x:Key="Activate_Button">
Activate
</sys:String>
<sys:String x:Key="Convert_versions">
Convert versions (Install Key without Activate)
</sys:String>
<sys:String x:Key="test">
Test Text
</sys:String>
<sys:String x:Key="Loading">
Loading
</sys:String>
<sys:String x:Key="Activating">
Activating
</sys:String>
<sys:String x:Key="Complete">
Complete
</sys:String>
<sys:String x:Key="notifyIconTitle">
CloudMoe Windows 10 Activation Toolkit V2
</sys:String>
<sys:String x:Key="Running">
Running.
</sys:String>
<sys:String x:Key="Experimental">
Experimental
</sys:String>
<sys:String x:Key="Attention">
Attention
</sys:String>
<sys:String x:Key="System_Edition">
System edition
</sys:String>
<sys:String x:Key="May_be_not_be_supported">
Unable to correctly identify your operating system edition in support list, may be not be supported.
</sys:String>
<sys:String x:Key="Only_find_experimental">
Only found experimental options that can be used with this operating system edition, little hope of activation success.
</sys:String>
<sys:String x:Key="notify_May_be_not_be_supported_try">
Your system edition may not be supported, program will exit. you can try add --expact or -e to startup.
</sys:String>
<sys:String x:Key="notify_May_be_not_be_supported_exit">
Your system edition may not be supported, program will exit.
</sys:String>
<sys:String x:Key="notify_Disconnect_to_server_exit">
Unable to connect to server, Please check the network and try to try again later, program will exit.
</sys:String>
<sys:String x:Key="Disconnect_to_server_exit">
Unable to connect to server, Please check the network and try to try again later, program will exit.
</sys:String>
<sys:String x:Key="RunInstall_Converting">
Converting
</sys:String>
<sys:String x:Key="RunAct_Activating">
Activating
</sys:String>
<sys:String x:Key="RunInstall_Getting_Key">
Getting Key via Internet
</sys:String>
<sys:String x:Key="RunAct_Getting_Key">
Getting Key via Internet
</sys:String>
<sys:String x:Key="RunInstall_Uninstalling_old_Key">
Uninstalling old Key
</sys:String>
<sys:String x:Key="RunAct_Uninstalling_old_Key">
Uninstalling old Key
</sys:String>
<sys:String x:Key="RunAct_Uninstalling_old_Key_Exp">
Uninstalling old Key (Experimental)
</sys:String>
<sys:String x:Key="RunInstall_Installing_Key">
Installing Key
</sys:String>
<sys:String x:Key="RunAct_Installing_Key">
Installing Key
</sys:String>
<sys:String x:Key="RunAct_Getting_edition_code_Exp">
Getting edition code (Experimental)
</sys:String>
<sys:String x:Key="RunAct_Prepare_for_the_next_step_Exp">
Prepare for the next step (Experimental)
</sys:String>
<sys:String x:Key="RunAct_Writing_old_OS">
Writing feature of old Windows version
</sys:String>
<sys:String x:Key="RunAct_Getting_free_upgrade_permissions">
Getting free upgrade permissions
</sys:String>
<sys:String x:Key="RunAct_Cleaning_changes">
Cleaning changes
</sys:String>
<sys:String x:Key="RunAct_Getting_digital_license">
Getting digital license
</sys:String>
<sys:String x:Key="CompleteTitle">
Complete
</sys:String>
<sys:String x:Key="ErrorTitle">
Error
</sys:String>
<sys:String x:Key="ErrorCode">
Code:
</sys:String>
<sys:String x:Key="SysMsg">
System return:
</sys:String>
<!--
Attention:
DO NOT USE ANY Indentation in Preserve Mode, Please!
-->
<sys:String x:Key="HelpText" xml:space="preserve">
This 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.
</sys:String>
<sys:String x:Key="DonateTextConverted" xml:space="preserve">
Congratulation! &#10;&#10;Windows 10 has been successful converted.
</sys:String>
<sys:String x:Key="DonateTextActivated" xml:space="preserve">
Congratulation! &#10;&#10;Windows 10 has been successful activated.
</sys:String>
<sys:String x:Key="UpdateText" xml:space="preserve">
We found a new version for CloudMoe Windows 10 Activation Toolkit Digital Edition.&#10;Please update to the latest version to make sure it works.
</sys:String>
<sys:String x:Key="UpdateMustText" xml:space="preserve">
We 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.
</sys:String>
<sys:String x:Key="ErrorMsg-0" xml:space="preserve">
Activate Windows 10 requires a network to gets the product key :)
</sys:String>
<sys:String x:Key="ErrorMsg-1" xml:space="preserve">
Cannot to uninstall old key. :(
</sys:String>
<sys:String x:Key="ErrorMsg-1.1" xml:space="preserve">
Cannot to install key, may be you choose or enter a incorrect version. :(
</sys:String>
<sys:String x:Key="ErrorMsg-1.2" xml:space="preserve">
Cannot to get edition code. :(
</sys:String>
<sys:String x:Key="ErrorMsg-2" xml:space="preserve">
Cannot to install key, may be you choose or enter a incorrect version. :(
</sys:String>
<sys:String x:Key="ErrorMsg-3" xml:space="preserve">
Time out, may be you choose or enter a incorrect version. :(
</sys:String>
<sys:String x:Key="ErrorMsg-4" xml:space="preserve">
Activation 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;
</sys:String>
<sys:String x:Key="Only_find_ltok" xml:space="preserve">
Only 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 19 years even it is without networking!
</sys:String>
<sys:String x:Key="DonateTextWillActivated" xml:space="preserve">
Congratulation! &#10;&#10;Windows 10 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.
</sys:String>
</ResourceDictionary>

213
CMWTAT_DIGITAL/Lang/ja.xaml

@ -0,0 +1,213 @@
<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">
<!--
Version: 2.5.0.0
-->
<!--FontFamily Dictionary-->
<FontFamily x:Key="Font">
Yu Gothic UI
</FontFamily>
<!--String Dictionary-->
<sys:String x:Key="OK">
はい
</sys:String>
<sys:String x:Key="Cancel">
キャンセル
</sys:String>
<sys:String x:Key="Refuse">
リフューズ
</sys:String>
<sys:String x:Key="DonateBtn">
寄付します
</sys:String>
<sys:String x:Key="Exit">
終了
</sys:String>
<sys:String x:Key="UpdateNow">
今すぐアップデート
</sys:String>
<sys:String x:Key="Ignore">
無視する
</sys:String>
<sys:String x:Key="TitleName">
雲萌 Windows 10 デジタルライセンス認証アプリ
</sys:String>
<sys:String x:Key="AppName">
CMWTAT Digital Edition V2
</sys:String>
<sys:String x:Key="UpdateTitle">
新しいバージョンがあります!
</sys:String>
<sys:String x:Key="CurrentVersion">
バージョン
</sys:String>
<sys:String x:Key="LatestVersion">
ラストバージョン
</sys:String>
<sys:String x:Key="Auto_Mode">
オートモード
</sys:String>
<sys:String x:Key="Manual_Mode">
マニュアルモード
</sys:String>
<sys:String x:Key="Activate_Button">
認証
</sys:String>
<sys:String x:Key="Convert_versions">
エディション変換 (キーをインストールするが、認証しません)
</sys:String>
<sys:String x:Key="test">
テストテキスト
</sys:String>
<sys:String x:Key="Loading">
ローディング
</sys:String>
<sys:String x:Key="Activating">
認証中
</sys:String>
<sys:String x:Key="Complete">
コンプリート
</sys:String>
<sys:String x:Key="notifyIconTitle">
雲萌 Windows 10 認証アプリ V2
</sys:String>
<sys:String x:Key="Running">
実行中。
</sys:String>
<sys:String x:Key="Experimental">
実験性
</sys:String>
<sys:String x:Key="Attention">
注意
</sys:String>
<sys:String x:Key="System_Edition">
システムエディション
</sys:String>
<sys:String x:Key="May_be_not_be_supported">
あなたのシステムエディションが判別できません、対応していないかもしれません。
</sys:String>
<sys:String x:Key="Only_find_experimental">
このシステムエディションに実験性オプションしか取れません、認証成功の可能性は極めて低い。
</sys:String>
<sys:String x:Key="notify_May_be_not_be_supported_try">
あなたのシステムエディションは対応していないかもしれません。アプリは終了する。試して、--expactまたは-eを追加することでアプリ起動してください。
</sys:String>
<sys:String x:Key="notify_May_be_not_be_supported_exit">
あなたのシステムエディションは対応していないかもしれません。アプリは終了する。
</sys:String>
<sys:String x:Key="notify_Disconnect_to_server_exit">
サーバーに接続できません、インターネット接続を確認するまたは後で試してください、アプリは終了します。
</sys:String>
<sys:String x:Key="Disconnect_to_server_exit">
サーバーに接続できません、インターネット接続を確認するまたは後で試してください、アプリは終了します。
</sys:String>
<sys:String x:Key="RunInstall_Converting">
変換中
</sys:String>
<sys:String x:Key="RunAct_Activating">
ライセンス認証中
</sys:String>
<sys:String x:Key="RunInstall_Getting_Key">
インターネットを通じてキーを取得しています
</sys:String>
<sys:String x:Key="RunAct_Getting_Key">
インターネットを通じてキーを取得しています
</sys:String>
<sys:String x:Key="RunInstall_Uninstalling_old_Key">
以前のキーをアンインストールしています
</sys:String>
<sys:String x:Key="RunAct_Uninstalling_old_Key">
以前のキーをアンインストールしています
</sys:String>
<sys:String x:Key="RunAct_Uninstalling_old_Key_Exp">
以前のキーをアンインストールしています(実験性)
</sys:String>
<sys:String x:Key="RunInstall_Installing_Key">
キーをインストールしています
</sys:String>
<sys:String x:Key="RunAct_Installing_Key">
キーをインストールしています
</sys:String>
<sys:String x:Key="RunAct_Getting_edition_code_Exp">
エディションコードを取得中(実験性)
</sys:String>
<sys:String x:Key="RunAct_Prepare_for_the_next_step_Exp">
次のステップに準備しています(実験性)
</sys:String>
<sys:String x:Key="RunAct_Writing_old_OS">
旧システムの特徴を書き込み中
</sys:String>
<sys:String x:Key="RunAct_Getting_free_upgrade_permissions">
無償アップグレード権限を取得中
</sys:String>
<sys:String x:Key="RunAct_Cleaning_changes">
変更がクリーンアップされます
</sys:String>
<sys:String x:Key="RunAct_Getting_digital_license">
デジタルライセンスを取得中
</sys:String>
<sys:String x:Key="CompleteTitle">
コンプリート
</sys:String>
<sys:String x:Key="ErrorTitle">
エラー
</sys:String>
<sys:String x:Key="ErrorCode">
コード:
</sys:String>
<sys:String x:Key="SysMsg">
システムメッセージ:
</sys:String>
<!--
Attention:
DO NOT USE ANY Indentation in Preserve Mode, Please!
-->
<sys:String x:Key="HelpText" xml:space="preserve">
このアプリは起動時にコンソール引数を使用できるようになりました!&#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;この説明ダイアログボックスを表示する。
</sys:String>
<sys:String x:Key="DonateTextConverted" xml:space="preserve">
おめでとう! &#10;&#10;Windows 10 エディション変換成功。
</sys:String>
<sys:String x:Key="DonateTextActivated" xml:space="preserve">
おめでとう! &#10;&#10;Windows 10 認証成功。
</sys:String>
<sys:String x:Key="UpdateText" xml:space="preserve">
雲萌 Windows10 デジタルライセンス認証アプリの新しいバージョン発見しました。&#10;最新バージョンにアップデートしてください。
</sys:String>
<sys:String x:Key="UpdateMustText" xml:space="preserve">
雲萌 Windows10 デジタルライセンス認証アプリの新しいバージョン発見しました。&#10;アプリが古すぎるため、最新バージョンにアップデートしてから利用ください。
</sys:String>
<sys:String x:Key="ErrorMsg-0" xml:space="preserve">
Windows10ライセンス認証にはインターネットを通じてキーを取得する必要があります :)
</sys:String>
<sys:String x:Key="ErrorMsg-1" xml:space="preserve">
以前のキーをアンインストールできません :(
</sys:String>
<sys:String x:Key="ErrorMsg-1.1" xml:space="preserve">
キーをインストールできません、選択または入力されたエディションが間違っているかもしれません :(
</sys:String>
<sys:String x:Key="ErrorMsg-1.2" xml:space="preserve">
エディションコードを取得できません :(
</sys:String>
<sys:String x:Key="ErrorMsg-2" xml:space="preserve">
キーをインストールできません、選択または入力されたエディションが間違っているかもしれません :(
</sys:String>
<sys:String x:Key="ErrorMsg-3" xml:space="preserve">
タイムアウト,選択または入力されたエディションが間違っているかもしれません :(
</sys:String>
<sys:String x:Key="ErrorMsg-4" xml:space="preserve">
認証失敗。 :( &#10;多分: &#10;1. このエディション/バージョンの Windows はデジタルライセンス認証が適用しない。 &#10;2. マイクロソフトの認証サーバーに接続できません。 &#10;3. その他。 &#10;&#10;暫くお待ちくださいまたはあとでもう一度やり直してください。 &#10;
</sys:String>
<sys:String x:Key="Only_find_ltok" xml:space="preserve">
このシステムエディションに適用されたのは長期オフラインKMS(LTOK)オプションしか見つかりません。これによってシステムを再インストールした時自動的にライセンス認証しませんが、心配する必要はありません。この方法(LTOK)でライセンス認証後、インターネット接続なしでも最大19年間稼働を継続できます!
</sys:String>
<sys:String x:Key="DonateTextWillActivated" xml:space="preserve">
おめでとうございます! &#10;&#10;Windows 10はライセンス認証の準備が出来ています。&#10;でも、マイクロソフトのライセンス認証サーバーに接続できませんみたいです。&#10;システムは認証サーバーに接続出来る次第に自動的にライセンス認証します。
</sys:String>
</ResourceDictionary>

213
CMWTAT_DIGITAL/Lang/zh.xaml

@ -0,0 +1,213 @@
<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">
<!--
Version: 2.5.0.0
-->
<!--FontFamily Dictionary-->
<FontFamily x:Key="Font">
Microsoft YaHei UI
</FontFamily>
<!--String Dictionary-->
<sys:String x:Key="OK">
</sys:String>
<sys:String x:Key="Cancel">
取消
</sys:String>
<sys:String x:Key="Refuse">
丑拒
</sys:String>
<sys:String x:Key="DonateBtn">
请顿晚饭,感谢作者
</sys:String>
<sys:String x:Key="Exit">
退出
</sys:String>
<sys:String x:Key="UpdateNow">
立即更新
</sys:String>
<sys:String x:Key="Ignore">
忽略
</sys:String>
<sys:String x:Key="TitleName">
云萌 Windows 10 数字权利激活工具
</sys:String>
<sys:String x:Key="AppName">
CMWTAT Digital Edition V2
</sys:String>
<sys:String x:Key="UpdateTitle">
新版本可用!
</sys:String>
<sys:String x:Key="CurrentVersion">
当前版本
</sys:String>
<sys:String x:Key="LatestVersion">
最新版本
</sys:String>
<sys:String x:Key="Auto_Mode">
自动模式
</sys:String>
<sys:String x:Key="Manual_Mode">
手动模式
</sys:String>
<sys:String x:Key="Activate_Button">
激活
</sys:String>
<sys:String x:Key="Convert_versions">
版本无缝转换 (安装产品密钥而不激活)
</sys:String>
<sys:String x:Key="test">
测试文本
</sys:String>
<sys:String x:Key="Loading">
载入中
</sys:String>
<sys:String x:Key="Activating">
激活中
</sys:String>
<sys:String x:Key="Complete">
完成
</sys:String>
<sys:String x:Key="notifyIconTitle">
云萌 Windows 10 激活工具 V2
</sys:String>
<sys:String x:Key="Running">
运行中。
</sys:String>
<sys:String x:Key="Experimental">
实验性
</sys:String>
<sys:String x:Key="Attention">
注意
</sys:String>
<sys:String x:Key="System_Edition">
系统版本
</sys:String>
<sys:String x:Key="May_be_not_be_supported">
无法在支持列表里识别您的操作系统版本,可能不受支持。
</sys:String>
<sys:String x:Key="Only_find_experimental">
只找到用于此版本系统的实验性选项,成功概率极低。
</sys:String>
<sys:String x:Key="notify_May_be_not_be_supported_try">
你的系统版本可能不受支持,程序即将退出。不过你可以尝试添加 --expact 或者 -e 参数来启动。
</sys:String>
<sys:String x:Key="notify_May_be_not_be_supported_exit">
你的系统版本可能不受支持,程序即将退出。
</sys:String>
<sys:String x:Key="notify_Disconnect_to_server_exit">
无法连接服务器,请检查网络并尝试稍后重试,程序即将退出。
</sys:String>
<sys:String x:Key="Disconnect_to_server_exit">
无法连接服务器,请检查网络并尝试稍后重试,程序即将退出。
</sys:String>
<sys:String x:Key="RunInstall_Converting">
转换中
</sys:String>
<sys:String x:Key="RunAct_Activating">
激活中
</sys:String>
<sys:String x:Key="RunInstall_Getting_Key">
正在通过网络获取产品密钥
</sys:String>
<sys:String x:Key="RunAct_Getting_Key">
正在通过网络获取产品密钥
</sys:String>
<sys:String x:Key="RunInstall_Uninstalling_old_Key">
正在卸载旧的产品密钥
</sys:String>
<sys:String x:Key="RunAct_Uninstalling_old_Key">
正在卸载旧的产品密钥
</sys:String>
<sys:String x:Key="RunAct_Uninstalling_old_Key_Exp">
正在卸载旧的产品密钥(实验性)
</sys:String>
<sys:String x:Key="RunInstall_Installing_Key">
正在安装产品密钥
</sys:String>
<sys:String x:Key="RunAct_Installing_Key">
正在安装产品密钥
</sys:String>
<sys:String x:Key="RunAct_Getting_edition_code_Exp">
正在获取版本代号(实验性)
</sys:String>
<sys:String x:Key="RunAct_Prepare_for_the_next_step_Exp">
正在准备下一步(实验性)
</sys:String>
<sys:String x:Key="RunAct_Writing_old_OS">
正在写入旧系统残留特征
</sys:String>
<sys:String x:Key="RunAct_Getting_free_upgrade_permissions">
正在获取免费升级许可
</sys:String>
<sys:String x:Key="RunAct_Cleaning_changes">
正在清理更改
</sys:String>
<sys:String x:Key="RunAct_Getting_digital_license">
正在获取数字许可证
</sys:String>
<sys:String x:Key="CompleteTitle">
完成
</sys:String>
<sys:String x:Key="ErrorTitle">
错误
</sys:String>
<sys:String x:Key="ErrorCode">
代码:
</sys:String>
<sys:String x:Key="SysMsg">
系统返回:
</sys:String>
<!--
Attention:
DO NOT USE ANY Indentation in Preserve Mode, Please!
-->
<sys:String x:Key="HelpText" xml:space="preserve">
这个应用现已支持通过控制台参数启动!&#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;显示此说明对话框。
</sys:String>
<sys:String x:Key="DonateTextConverted" xml:space="preserve">
祝贺! &#10;&#10;Windows 10 已经成功转换。
</sys:String>
<sys:String x:Key="DonateTextActivated" xml:space="preserve">
祝贺! &#10;&#10;Windows 10 已经成功激活。
</sys:String>
<sys:String x:Key="UpdateText" xml:space="preserve">
我们发现了新版本的 云萌 Windows10 数字权利激活工具。&#10;请更新到最新版本来确保它可以正常工作。
</sys:String>
<sys:String x:Key="UpdateMustText" xml:space="preserve">
我们发现了新版本的 云萌 Windows10 数字权利激活工具。&#10;由于您的版本太旧,所以您必须更新到最新版本来确保它可以正常工作。
</sys:String>
<sys:String x:Key="ErrorMsg-0" xml:space="preserve">
激活Windows10需要网络获取产品密钥 :)
</sys:String>
<sys:String x:Key="ErrorMsg-1" xml:space="preserve">
无法卸载旧密钥 :(
</sys:String>
<sys:String x:Key="ErrorMsg-1.1" xml:space="preserve">
无法安装密钥,可能没有选择或输入正确的版本 :(
</sys:String>
<sys:String x:Key="ErrorMsg-1.2" xml:space="preserve">
无法获取版本代号 :(
</sys:String>
<sys:String x:Key="ErrorMsg-2" xml:space="preserve">
无法安装密钥,可能没有选择或输入正确的版本 :(
</sys:String>
<sys:String x:Key="ErrorMsg-3" xml:space="preserve">
执行超时,可能没有选择正确或输入的版本 :(
</sys:String>
<sys:String x:Key="ErrorMsg-4" xml:space="preserve">
激活失败。 :( &#10;可能因为: &#10;1. 此版本/类型的 Windows 不支持数字权利(数字许可证)方式激活。 &#10;2. 无法连接到微软Windows激活服务器。 &#10;3. 其它未知问题。 &#10;&#10;你可以尝试稍等片刻或者稍后重试。 &#10;
</sys:String>
<sys:String x:Key="Only_find_ltok" xml:space="preserve">
只找到用于此版本系统的长期离线KMS(批量激活)选项。&#10;这表示您将不能在下次重装系统后自动激活。&#10;不过无需担心,这不同于传统的KMS激活方式(离线状态下可以保持激活180天)&#10;长期离线KMS(Offline-KMS)即使不联网也可以保持激活长达19年!
</sys:String>
<sys:String x:Key="DonateTextWillActivated" xml:space="preserve">
祝贺! &#10;&#10;Windows 10 已经快要激活成功了。&#10;不过似乎Windows无法连接到微软激活服务器,&#10;当下次连接上服务器时系统将会自动激活。
</sys:String>
</ResourceDictionary>

237
CMWTAT_DIGITAL/MainWindow.xaml

@ -0,0 +1,237 @@
<Window x:Class="CMWTAT_DIGITAL.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:domain="clr-namespace:CMWTAT_DIGITAL.Domain"
xmlns:local="clr-namespace:CMWTAT_DIGITAL"
mc:Ignorable="d"
Title="{DynamicResource TitleName}" Height="550" Width="450"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular"
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Aliased"
Background="{DynamicResource MaterialDesignPaper}"
ResizeMode="NoResize"
d:DataContext="{d:DesignInstance domain:ViewModel, d:IsDesignTimeCreatable=False}"
Icon="CMWTAT.ico"
Closing="Window_Closing"
FontFamily="{DynamicResource Font}"
Activated="Window_Activated"
WindowStartupLocation="CenterScreen"
>
<!--FontFamily="{DynamicResource MaterialDesignFont}"-->
<Grid>
<Grid Margin="30,30,30,30" VerticalAlignment="Center">
<StackPanel>
<materialDesign:Card Padding="30" Margin="0,0,0,0" materialDesign:ShadowAssist.ShadowDepth="Depth3" UniformCornerRadius="8">
<TextBlock FontFamily="{DynamicResource Font}" Style="{DynamicResource MaterialDesignTitleTextBlock}" ><Run Text="{DynamicResource AppName}"/></TextBlock>
</materialDesign:Card>
<materialDesign:Card Padding="30,30" Margin="0,30,0,0" materialDesign:ShadowAssist.ShadowDepth="Depth3" UniformCornerRadius="8">
<StackPanel>
<Grid>
<ComboBox x:Name="SystemEditionText" DisplayMemberPath="DisplayOS" VerticalAlignment="Center" Visibility="Visible"/>
<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">
<TextBox.Text>
<Binding Path="SN" UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<domain:IsSN ValidatesOnTargetUpdated="True"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</Grid>
<!--<TextBlock FontFamily="{DynamicResource Font}" Style="{DynamicResource MaterialDesignTitleTextBlock}" x:Name="SystemEditionText" Text="Checking System" />-->
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Margin="0,30,0,0">
<RadioButton x:Name="AutoRadio" Content="{DynamicResource Auto_Mode}" Margin="30,0,30,0" IsChecked="True" Checked="A_RadioButton_Checked"/>
<RadioButton x:Name="ManualRadio" Content="{DynamicResource Manual_Mode}" Margin="30,0,30,0" Checked="M_RadioButton_Checked"/>
</StackPanel>
</StackPanel>
</materialDesign:Card>
<materialDesign:Card Margin="0,30,0,0" VerticalAlignment="Top" materialDesign:ShadowAssist.ShadowDepth="Depth3" Height="65" UniformCornerRadius="8">
<Button FontFamily="{DynamicResource Font}" x:Name="actbtn" Content="{DynamicResource Activate_Button}" materialDesign:ShadowAssist.ShadowDepth="Depth0" Click="Activate_Button_Click" Margin="0" Height="65" />
</materialDesign:Card>
<materialDesign:Card Margin="0,30,0,0" VerticalAlignment="Top" materialDesign:ShadowAssist.ShadowDepth="Depth3" Height="65" UniformCornerRadius="8">
<Button FontFamily="{DynamicResource Font}" x:Name="installbtn" Content="{DynamicResource Convert_versions}" materialDesign:ShadowAssist.ShadowDepth="Depth0" Click="installbtn_Click" Margin="0" Height="65"/>
</materialDesign:Card>
</StackPanel>
</Grid>
<Grid x:Name="DialogHostGrid" Visibility="Hidden">
<materialDesign:DialogHost x:Name="DialogWait" IsOpen="False">
<materialDesign:DialogHost.DialogContent>
<Grid>
<materialDesign:Card UniformCornerRadius="8" materialDesign:ShadowAssist.ShadowDepth="Depth3">
<StackPanel>
<StackPanel Margin="32,24,32,24">
<ProgressBar Style="{DynamicResource MaterialDesignCircularProgressBar}" HorizontalAlignment="Center" Margin="0,0,0,0" IsIndeterminate="True" Value="0" VerticalAlignment="Top" Width="32" Height="32" />
<TextBlock FontFamily="{DynamicResource Font}" Style="{DynamicResource MaterialDesignTitleTextBlock}" Margin="0,24,0,0" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="14" Text="{DynamicResource Loading}" />
</StackPanel>
</StackPanel>
</materialDesign:Card>
</Grid>
</materialDesign:DialogHost.DialogContent>
</materialDesign:DialogHost>
<materialDesign:DialogHost x:Name="DialogActProg" IsOpen="False">
<materialDesign:DialogHost.DialogContent>
<Grid>
<materialDesign:Card UniformCornerRadius="8" materialDesign:ShadowAssist.ShadowDepth="Depth3">
<StackPanel>
<StackPanel Margin="32,24,32,24">
<ProgressBar Style="{DynamicResource MaterialDesignCircularProgressBar}" HorizontalAlignment="Center" Margin="0,0,0,0" IsIndeterminate="True" Value="0" VerticalAlignment="Top" Width="32" Height="32" />
<TextBlock FontFamily="{DynamicResource Font}" Style="{DynamicResource MaterialDesignTitleTextBlock}" x:Name="activatingtext" Margin="0,24,0,0" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="14" Text="{DynamicResource Activating}" />
</StackPanel>
</StackPanel>
</materialDesign:Card>
</Grid>
</materialDesign:DialogHost.DialogContent>
</materialDesign:DialogHost>
<materialDesign:DialogHost x:Name="DialogWithCancel" IsOpen="False">
<materialDesign:DialogHost.DialogContent>
<Grid>
<materialDesign:Card UniformCornerRadius="8" materialDesign:ShadowAssist.ShadowDepth="Depth3">
<StackPanel>
<StackPanel Margin="24,24,24,8">
<ProgressBar Style="{DynamicResource MaterialDesignCircularProgressBar}" HorizontalAlignment="Center" Margin="0,0,0,0" IsIndeterminate="True" Value="0" VerticalAlignment="Top" Width="32" Height="32" />
<TextBlock FontFamily="{DynamicResource Font}" Style="{DynamicResource MaterialDesignTitleTextBlock}" Margin="24,16,24,0" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="14" Text="{DynamicResource Loading}" />
</StackPanel>
<StackPanel HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal" Margin="8,0,8,8">
<Button FontFamily="{DynamicResource Font}" Style="{StaticResource MaterialDesignFlatButton}" IsCancel="True"
Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
CommandParameter="Sample2Cancel"
HorizontalAlignment="Center" Content="{DynamicResource Cancel}" />
</StackPanel>
</StackPanel>
</materialDesign:Card>
</Grid>
</materialDesign:DialogHost.DialogContent>
</materialDesign:DialogHost>
<materialDesign:DialogHost x:Name="DialogWithOK" IsOpen="False">
<materialDesign:DialogHost.DialogContent>
<Grid>
<materialDesign:Card UniformCornerRadius="8" materialDesign:ShadowAssist.ShadowDepth="Depth3">
<StackPanel>
<StackPanel Margin="16,16,16,8">
<!--<ProgressBar Style="{DynamicResource MaterialDesignCircularProgressBar}" HorizontalAlignment="Center" Margin="0,0,0,0" IsIndeterminate="True" Value="0" VerticalAlignment="Top" Width="32" Height="32" />-->
<TextBlock FontFamily="{DynamicResource Font}" Style="{DynamicResource MaterialDesignTitleTextBlock}" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="16" FontWeight="Bold" Text="Title" />
<TextBlock FontFamily="{DynamicResource Font}" Style="{DynamicResource MaterialDesignTitleTextBlock}" Margin="0,8,0,0" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="14" Text="Hello World" />
</StackPanel>
<StackPanel HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal" Margin="8,0,8,8">
<Button FontFamily="{DynamicResource Font}" Style="{StaticResource MaterialDesignFlatButton}" IsCancel="True"
Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
CommandParameter="Sample2Cancel"
HorizontalAlignment="Center" Content="{DynamicResource OK}" />
</StackPanel>
</StackPanel>
</materialDesign:Card>
</Grid>
</materialDesign:DialogHost.DialogContent>
</materialDesign:DialogHost>
<materialDesign:DialogHost x:Name="DialogHelp" IsOpen="False">
<materialDesign:DialogHost.DialogContent>
<Grid>
<materialDesign:Card UniformCornerRadius="8" materialDesign:ShadowAssist.ShadowDepth="Depth3">
<StackPanel>
<StackPanel Margin="16,16,16,8">
<!--<ProgressBar Style="{DynamicResource MaterialDesignCircularProgressBar}" HorizontalAlignment="Center" Margin="0,0,0,0" IsIndeterminate="True" Value="0" VerticalAlignment="Top" Width="32" Height="32" />-->
<TextBlock FontFamily="{DynamicResource Font}" Style="{DynamicResource MaterialDesignTitleTextBlock}" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="16" FontWeight="Bold" Text="Help"></TextBlock>
<TextBlock FontFamily="{DynamicResource Font}" Style="{DynamicResource MaterialDesignTitleTextBlock}" Margin="0,8,0,0" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="14" Text="{DynamicResource HelpText}"></TextBlock>
</StackPanel>
<StackPanel HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal" Margin="8,0,8,8">
<Button FontFamily="{DynamicResource Font}" Style="{StaticResource MaterialDesignFlatButton}" IsCancel="True"
Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
CommandParameter="Sample2Cancel"
HorizontalAlignment="Center" Content="{DynamicResource OK}" />
</StackPanel>
</StackPanel>
</materialDesign:Card>
</Grid>
</materialDesign:DialogHost.DialogContent>
</materialDesign:DialogHost>
<materialDesign:DialogHost x:Name="DialogWithExit" IsOpen="False">
<materialDesign:DialogHost.DialogContent>
<Grid>
<materialDesign:Card UniformCornerRadius="8" materialDesign:ShadowAssist.ShadowDepth="Depth3">
<StackPanel>
<StackPanel Margin="16,16,16,8">
<!--<ProgressBar Style="{DynamicResource MaterialDesignCircularProgressBar}" HorizontalAlignment="Center" Margin="0,0,0,0" IsIndeterminate="True" Value="0" VerticalAlignment="Top" Width="32" Height="32" />-->
<TextBlock FontFamily="{DynamicResource Font}" Style="{DynamicResource MaterialDesignTitleTextBlock}" x:Name="DialogWithExitTitle" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="16" FontWeight="Bold" Text="{DynamicResource ErrorTitle}"/>
<TextBlock FontFamily="{DynamicResource Font}" Style="{DynamicResource MaterialDesignTitleTextBlock}" x:Name="DialogWithExitText" Margin="0,8,0,0" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="14" Text="{DynamicResource Disconnect_to_server_exit}"/>
</StackPanel>
<StackPanel HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal" Margin="8,0,8,8">
<Button FontFamily="{DynamicResource Font}" Style="{StaticResource MaterialDesignFlatButton}" IsCancel="True"
Click="Exit_Button_Click"
HorizontalAlignment="Center" Content="{DynamicResource Exit}"/>
</StackPanel>
</StackPanel>
</materialDesign:Card>
</Grid>
</materialDesign:DialogHost.DialogContent>
</materialDesign:DialogHost>
<materialDesign:DialogHost x:Name="DialogWithOKToCloseDialog" IsOpen="False">
<materialDesign:DialogHost.DialogContent>
<Grid>
<materialDesign:Card UniformCornerRadius="8" materialDesign:ShadowAssist.ShadowDepth="Depth3">
<StackPanel>
<StackPanel Margin="16,16,16,8">
<!--<ProgressBar Style="{DynamicResource MaterialDesignCircularProgressBar}" HorizontalAlignment="Center" Margin="0,0,0,0" IsIndeterminate="True" Value="0" VerticalAlignment="Top" Width="32" Height="32" />-->
<TextBlock FontFamily="{DynamicResource Font}" Style="{DynamicResource MaterialDesignTitleTextBlock}" x:Name="DialogWithOKToCloseDialogTitle" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="16" FontWeight="Bold" >Title</TextBlock>
<TextBlock FontFamily="{DynamicResource Font}" Style="{DynamicResource MaterialDesignTitleTextBlock}" x:Name="DialogWithOKToCloseDialogText" Margin="0,8,0,0" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="14" >Text</TextBlock>
</StackPanel>
<StackPanel HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal" Margin="8,0,8,8">
<Button FontFamily="{DynamicResource Font}" Style="{StaticResource MaterialDesignFlatButton}" IsCancel="True"
Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
HorizontalAlignment="Center" Content="{DynamicResource OK}"/>
</StackPanel>
</StackPanel>
</materialDesign:Card>
</Grid>
</materialDesign:DialogHost.DialogContent>
</materialDesign:DialogHost>
<materialDesign:DialogHost x:Name="DialogWithOKToCloseDialogDonate" IsOpen="False">
<materialDesign:DialogHost.DialogContent>
<Grid>
<materialDesign:Card UniformCornerRadius="8" materialDesign:ShadowAssist.ShadowDepth="Depth3">
<StackPanel>
<StackPanel Margin="16,16,16,8">
<!--<ProgressBar Style="{DynamicResource MaterialDesignCircularProgressBar}" HorizontalAlignment="Center" Margin="0,0,0,0" IsIndeterminate="True" Value="0" VerticalAlignment="Top" Width="32" Height="32" />-->
<TextBlock FontFamily="{DynamicResource Font}" Style="{DynamicResource MaterialDesignTitleTextBlock}" x:Name="DialogWithOKToCloseDialogDonateTitle" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="16" FontWeight="Bold" Text="{DynamicResource Complete}" />
<TextBlock FontFamily="{DynamicResource Font}" Style="{DynamicResource MaterialDesignTitleTextBlock}" x:Name="DialogWithOKToCloseDialogDonateText" Margin="0,8,0,0" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontSize="14" Text="{DynamicResource DonateTextActivated}" />
</StackPanel>
<StackPanel HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal" Margin="8,0,8,8">
<Button FontFamily="{DynamicResource Font}" Style="{StaticResource MaterialDesignFlatButton}" IsCancel="True"
Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}" HorizontalAlignment="Center" Content="{DynamicResource Refuse}"/>
<Button FontFamily="{DynamicResource Font}" Style="{StaticResource MaterialDesignFlatButton}" IsCancel="True"
Click="Donate_Button_Click" HorizontalAlignment="Center" Content="{DynamicResource DonateBtn}"/>
</StackPanel>
</StackPanel>
</materialDesign:Card>
</Grid>
</materialDesign:DialogHost.DialogContent>
</materialDesign:DialogHost>
<materialDesign:DialogHost x:Name="DialogUpdate" IsOpen="False">
<materialDesign:DialogHost.DialogContent>
<Grid>
<materialDesign:Card UniformCornerRadius="8" materialDesign:ShadowAssist.ShadowDepth="Depth3">
<StackPanel>
<StackPanel Margin="16,16,16,8">
<!--<ProgressBar Style="{DynamicResource MaterialDesignCircularProgressBar}" HorizontalAlignment="Center" Margin="0,0,0,0" IsIndeterminate="True" Value="0" VerticalAlignment="Top" Width="32" Height="32" />-->
<TextBlock FontFamily="{DynamicResource Font}" Style="{DynamicResource MaterialDesignTitleTextBlock}" x:Name="DialogUpdateTitle" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="16" FontWeight="Bold" Text="{DynamicResource UpdateTitle}" />
<TextBlock FontFamily="{DynamicResource Font}" Style="{DynamicResource MaterialDesignTitleTextBlock}" x:Name="DialogUpdateText" Margin="0,8,0,0" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontSize="14" Text="{DynamicResource UpdateText}" />
</StackPanel>
<StackPanel HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal" Margin="8,0,8,8">
<Button x:Name="IgnoreUpdate" FontFamily="{DynamicResource Font}" Style="{StaticResource MaterialDesignFlatButton}" IsCancel="True"
Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}" HorizontalAlignment="Center" Content="{DynamicResource Ignore}"/>
<Button x:Name="UpdateBtn" FontFamily="{DynamicResource Font}" Style="{StaticResource MaterialDesignFlatButton}" IsCancel="True"
Click="UpdateBtn_Click" HorizontalAlignment="Center" Content="{DynamicResource UpdateNow}"/>
</StackPanel>
</StackPanel>
</materialDesign:Card>
</Grid>
</materialDesign:DialogHost.DialogContent>
</materialDesign:DialogHost>
</Grid>
</Grid>
</Window>

1552
CMWTAT_DIGITAL/MainWindow.xaml.cs

File diff suppressed because it is too large

1089
CMWTAT_DIGITAL/OSVersionInfoClass.cs

File diff suppressed because it is too large

112
CMWTAT_DIGITAL/Program.cs

@ -0,0 +1,112 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace CMWTAT_DIGITAL
{
public static class Program
{
public static bool autoact = false;
public static bool hiderun = false;
public static bool expact = false;
public static bool log2file = false;
public static bool showhelp = false;
/// <summary>
/// Application Entry Point.
/// </summary>
[System.STAThreadAttribute()]
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public static void Main(string[] startup_args)
{
//添加程序集解析事件
//AppDomain.CurrentDomain.AssemblyResolve += (sender, args) =>
//{
// String resourceName = "CMWTAT_DIGITAL.Res." +
// new AssemblyName(args.Name).Name + ".dll";
// Console.WriteLine("Load Assembly: " + resourceName);
// using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(resourceName))
// {
// if (stream == null)
// return null;
// Byte[] assemblyData = new Byte[stream.Length];
// stream.Read(assemblyData, 0, assemblyData.Length);
// return Assembly.Load(assemblyData);
// }
//};
var loadedAssemblies = new Dictionary<string, Assembly>();
AppDomain.CurrentDomain.AssemblyResolve += (sender, args) =>
{
String resourceName = "CMWTAT_DIGITAL.Res." +
new AssemblyName(args.Name).Name + ".dll";
//Must return the EXACT same assembly, do not reload from a new stream
if (loadedAssemblies.TryGetValue(resourceName, out Assembly loadedAssembly))
{
return loadedAssembly;
}
using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(resourceName))
{
if (stream == null)
return null;
Byte[] assemblyData = new Byte[stream.Length];
stream.Read(assemblyData, 0, assemblyData.Length);
var assembly = Assembly.Load(assemblyData);
loadedAssemblies[resourceName] = assembly;
return assembly;
}
};
foreach (string arg in startup_args)
{
Console.WriteLine("arg: " + arg);
if (arg == "-a" || arg == "--auto")
{
Console.WriteLine("AUTO: True");
autoact = true;
}
if (arg == "-h" || arg == "--hide")
{
Console.WriteLine("HIDE: True");
hiderun = true;
}
if (arg == "-e" || arg == "--expact")
{
Console.WriteLine("EXPACT: True");
expact = true;
}
if (arg == "-l" || arg == "--log")
{
Console.WriteLine("LOG: True");
log2file = true;
}
if (arg == "-?" || arg == "--help")
{
Console.WriteLine("SHOWHELP: True");
showhelp = true;
}
}
CMWTAT_DIGITAL.App app = new CMWTAT_DIGITAL.App();//WPF项目的Application实例,用来启动WPF项目的
app.InitializeComponent();
app.Run();
}
}
}

55
CMWTAT_DIGITAL/Properties/AssemblyInfo.cs

@ -0,0 +1,55 @@
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("CMWTAT Digital Edition V2")]
[assembly: AssemblyDescription("CloudMoe Windows 10 Activation Toolkit V2")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("CloudMoe Network")]
[assembly: AssemblyProduct("CMWTAT Digital Edition V2")]
[assembly: AssemblyCopyright("Copyright © CloudMoe Saltfish Studio 2018")]
[assembly: AssemblyTrademark("CloudMoe Saltfish Studio")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
//若要开始生成可本地化的应用程序,请设置
//.csproj 文件中的 <UICulture>CultureYouAreCodingWith</UICulture>
//例如,如果您在源文件中使用的是美国英语,
//使用的是美国英语,请将 <UICulture> 设置为 en-US。 然后取消
//对以下 NeutralResourceLanguage 特性的注释。 更新
//以下行中的“en-US”以匹配项目文件中的 UICulture 设置。
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //主题特定资源词典所处位置
//(未在页面中找到资源时使用,
//或应用程序资源字典中找到时使用)
ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置
//(未在页面中找到资源时使用,
//、应用程序或任何主题专用资源字典中找到时使用)
)]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.5.0.0")]
[assembly: AssemblyFileVersion("2.5.0.0")]

113
CMWTAT_DIGITAL/Properties/Resources.Designer.cs

@ -0,0 +1,113 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace CMWTAT_DIGITAL.Properties {
using System;
/// <summary>
/// 一个强类型的资源类,用于查找本地化的字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// 返回此类使用的缓存的 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CMWTAT_DIGITAL.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// 重写当前线程的 CurrentUICulture 属性
/// 重写当前线程的 CurrentUICulture 属性。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// 查找类似于 (图标) 的 System.Drawing.Icon 类型的本地化资源。
/// </summary>
internal static System.Drawing.Icon CMWTAT_ICON {
get {
object obj = ResourceManager.GetObject("CMWTAT_ICON", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
/// <summary>
/// 查找 System.Byte[] 类型的本地化资源。
/// </summary>
internal static byte[] gatherosstate {
get {
object obj = ResourceManager.GetObject("gatherosstate", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// 查找 System.Byte[] 类型的本地化资源。
/// </summary>
internal static byte[] gatherosstateltsc {
get {
object obj = ResourceManager.GetObject("gatherosstateltsc", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// 查找 System.Byte[] 类型的本地化资源。
/// </summary>
internal static byte[] slc {
get {
object obj = ResourceManager.GetObject("slc", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// 查找 System.Byte[] 类型的本地化资源。
/// </summary>
internal static byte[] slmgr {
get {
object obj = ResourceManager.GetObject("slmgr", resourceCulture);
return ((byte[])(obj));
}
}
}
}

136
CMWTAT_DIGITAL/Properties/Resources.resx

@ -0,0 +1,136 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="CMWTAT_ICON" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\CMWTAT.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="gatherosstate" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Res\gatherosstate.exe;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="gatherosstateltsc" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Res\gatherosstateltsc.exe;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="slc" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Res\slc.dll;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="slmgr" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Res\slmgr.vbs;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>

26
CMWTAT_DIGITAL/Properties/Settings.Designer.cs

@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace CMWTAT_DIGITAL.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.7.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
}
}

7
CMWTAT_DIGITAL/Properties/Settings.settings

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />