Upload project 2.0.0.0
Upload project 2.0.0.0
This commit is contained in:
parent
499cfd6d30
commit
457f8c172a
BIN
.vs/CMWTAT_DIGITAL/v15/.suo
Normal file
BIN
.vs/CMWTAT_DIGITAL/v15/.suo
Normal file
Binary file not shown.
0
.vs/CMWTAT_DIGITAL/v15/Server/sqlite3/db.lock
Normal file
0
.vs/CMWTAT_DIGITAL/v15/Server/sqlite3/db.lock
Normal file
BIN
.vs/CMWTAT_DIGITAL/v15/Server/sqlite3/storage.ide
Normal file
BIN
.vs/CMWTAT_DIGITAL/v15/Server/sqlite3/storage.ide
Normal file
Binary file not shown.
25
CMWTAT_DIGITAL.sln
Normal file
25
CMWTAT_DIGITAL.sln
Normal file
@ -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
|
16
CMWTAT_DIGITAL/App.xaml
Normal file
16
CMWTAT_DIGITAL/App.xaml
Normal file
@ -0,0 +1,16 @@
|
||||
<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.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Application.Resources>
|
||||
</Application>
|
16
CMWTAT_DIGITAL/App.xaml.cs
Normal file
16
CMWTAT_DIGITAL/App.xaml.cs
Normal file
@ -0,0 +1,16 @@
|
||||
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
Normal file
BIN
CMWTAT_DIGITAL/CMWTAT.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 394 KiB |
BIN
CMWTAT_DIGITAL/CMWTAT.png
Normal file
BIN
CMWTAT_DIGITAL/CMWTAT.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 153 KiB |
123
CMWTAT_DIGITAL/CMWTAT_DIGITAL.csproj
Normal file
123
CMWTAT_DIGITAL/CMWTAT_DIGITAL.csproj
Normal file
@ -0,0 +1,123 @@
|
||||
<?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>
|
||||
<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</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<TargetFrameworkProfile />
|
||||
</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>
|
||||
<ItemGroup>
|
||||
<Reference Include="MaterialDesignColors, Version=1.1.3.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MaterialDesignColors.1.1.3\lib\net45\MaterialDesignColors.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MaterialDesignThemes.Wpf, Version=2.4.0.1044, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MaterialDesignThemes.2.4.0.1044\lib\net45\MaterialDesignThemes.Wpf.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<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="WindowsBase" />
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="PresentationFramework" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ApplicationDefinition Include="App.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</ApplicationDefinition>
|
||||
<Page Include="Lang\zh-cn.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="MainWindow.xaml.cs">
|
||||
<DependentUpon>MainWindow.xaml</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="OSVersionInfoClass.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>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
160
CMWTAT_DIGITAL/MainWindow.xaml
Normal file
160
CMWTAT_DIGITAL/MainWindow.xaml
Normal file
@ -0,0 +1,160 @@
|
||||
<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:local="clr-namespace:CMWTAT_DIGITAL"
|
||||
mc:Ignorable="d"
|
||||
Title="CMWTAT Digital Edition V2" Height="380" 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="Auto"
|
||||
Background="{DynamicResource MaterialDesignPaper}"
|
||||
FontFamily="{DynamicResource MaterialDesignFont}" ResizeMode="NoResize">
|
||||
<Grid>
|
||||
<Button x:Name="actbtn" Content="Activation" Margin="30,250,30,0" VerticalAlignment="Top" Click="Button_Click" Height="65"/>
|
||||
<materialDesign:Card Padding="32" Margin="16,70,16,0">
|
||||
<ComboBox x:Name="SystemEditionText" DisplayMemberPath="DisplayOS" VerticalAlignment="Top"/>
|
||||
<!--<TextBlock x:Name="SystemEditionText" Style="{DynamicResource MaterialDesignTitleTextBlock}" Text="Checking System" />-->
|
||||
</materialDesign:Card>
|
||||
<materialDesign:Card Padding="32" Margin="16">
|
||||
<TextBlock Style="{DynamicResource MaterialDesignTitleTextBlock}"><Run Text="CMWTAT Digital Edition V2"/></TextBlock>
|
||||
</materialDesign:Card>
|
||||
<materialDesign:DialogHost x:Name="DialogWait" IsOpen="False">
|
||||
<materialDesign:DialogHost.DialogContent>
|
||||
<Grid>
|
||||
<materialDesign:Card>
|
||||
<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 Style="{DynamicResource MaterialDesignTitleTextBlock}" Margin="0,24,0,0" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="14" >Loading</TextBlock>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</materialDesign:Card>
|
||||
</Grid>
|
||||
</materialDesign:DialogHost.DialogContent>
|
||||
</materialDesign:DialogHost>
|
||||
<materialDesign:DialogHost x:Name="DialogActProg" IsOpen="False">
|
||||
<materialDesign:DialogHost.DialogContent>
|
||||
<Grid>
|
||||
<materialDesign:Card>
|
||||
<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 x:Name="activatingtext" Style="{DynamicResource MaterialDesignTitleTextBlock}" Margin="0,24,0,0" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="14" >Activating</TextBlock>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</materialDesign:Card>
|
||||
</Grid>
|
||||
</materialDesign:DialogHost.DialogContent>
|
||||
</materialDesign:DialogHost>
|
||||
<materialDesign:DialogHost x:Name="DialogWithCancel" IsOpen="False">
|
||||
<materialDesign:DialogHost.DialogContent>
|
||||
<Grid>
|
||||
<materialDesign:Card>
|
||||
<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 Style="{DynamicResource MaterialDesignTitleTextBlock}" Margin="24,16,24,0" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="14" >Loading</TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal" Margin="8,0,8,8">
|
||||
<Button Style="{StaticResource MaterialDesignFlatButton}" IsCancel="True"
|
||||
Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
|
||||
CommandParameter="Sample2Cancel"
|
||||
HorizontalAlignment="Center">CANCEL</Button>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</materialDesign:Card>
|
||||
</Grid>
|
||||
</materialDesign:DialogHost.DialogContent>
|
||||
</materialDesign:DialogHost>
|
||||
<materialDesign:DialogHost x:Name="DialogWithOK" IsOpen="False">
|
||||
<materialDesign:DialogHost.DialogContent>
|
||||
<Grid>
|
||||
<materialDesign:Card>
|
||||
<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 Style="{DynamicResource MaterialDesignTitleTextBlock}" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="16" FontWeight="Bold" >Title</TextBlock>
|
||||
<TextBlock Style="{DynamicResource MaterialDesignTitleTextBlock}" Margin="0,8,0,0" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="14" >Hello World</TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal" Margin="8,0,8,8">
|
||||
<Button Style="{StaticResource MaterialDesignFlatButton}" IsCancel="True"
|
||||
Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
|
||||
CommandParameter="Sample2Cancel"
|
||||
HorizontalAlignment="Center">OK</Button>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</materialDesign:Card>
|
||||
</Grid>
|
||||
</materialDesign:DialogHost.DialogContent>
|
||||
</materialDesign:DialogHost>
|
||||
<materialDesign:DialogHost x:Name="DialogWithExit" IsOpen="False">
|
||||
<materialDesign:DialogHost.DialogContent>
|
||||
<Grid>
|
||||
<materialDesign:Card>
|
||||
<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 x:Name="DialogWithExitTitle" Style="{DynamicResource MaterialDesignTitleTextBlock}" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="16" FontWeight="Bold" >Error</TextBlock>
|
||||
<TextBlock x:Name="DialogWithExitText" Style="{DynamicResource MaterialDesignTitleTextBlock}" Margin="0,8,0,0" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="14" >Unable to connect to server, program will exit.</TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal" Margin="8,0,8,8">
|
||||
<Button Style="{StaticResource MaterialDesignFlatButton}" IsCancel="True"
|
||||
Click="Exit_Button_Click"
|
||||
HorizontalAlignment="Center">Exit</Button>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</materialDesign:Card>
|
||||
</Grid>
|
||||
</materialDesign:DialogHost.DialogContent>
|
||||
</materialDesign:DialogHost>
|
||||
<materialDesign:DialogHost x:Name="DialogWithOKToCloseDialog" IsOpen="False">
|
||||
<materialDesign:DialogHost.DialogContent>
|
||||
<Grid>
|
||||
<materialDesign:Card>
|
||||
<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 x:Name="DialogWithOKToCloseDialogTitle" Style="{DynamicResource MaterialDesignTitleTextBlock}" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="16" FontWeight="Bold" >Title</TextBlock>
|
||||
<TextBlock x:Name="DialogWithOKToCloseDialogText" Style="{DynamicResource MaterialDesignTitleTextBlock}" 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 Style="{StaticResource MaterialDesignFlatButton}" IsCancel="True"
|
||||
Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
|
||||
HorizontalAlignment="Center">OK</Button>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</materialDesign:Card>
|
||||
</Grid>
|
||||
</materialDesign:DialogHost.DialogContent>
|
||||
</materialDesign:DialogHost>
|
||||
<materialDesign:DialogHost x:Name="DialogWithOKToCloseDialogDonate" IsOpen="False">
|
||||
<materialDesign:DialogHost.DialogContent>
|
||||
<Grid>
|
||||
<materialDesign:Card>
|
||||
<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 x:Name="DialogWithOKToCloseDialogDonateTitle" Style="{DynamicResource MaterialDesignTitleTextBlock}" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="16" FontWeight="Bold" >Title</TextBlock>
|
||||
<TextBlock x:Name="DialogWithOKToCloseDialogDonateText" Style="{DynamicResource MaterialDesignTitleTextBlock}" Margin="0,8,0,0" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontSize="14" ><LineBreak/>Congratulation! <LineBreak/><LineBreak/> Windows 10 has been successful activated.<LineBreak/></TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal" Margin="8,0,8,8">
|
||||
<Button Style="{StaticResource MaterialDesignFlatButton}" IsCancel="True"
|
||||
Click="Donate_Button_Click"
|
||||
HorizontalAlignment="Center">Thanks developer and donate a dinner</Button>
|
||||
<Button Style="{StaticResource MaterialDesignFlatButton}" IsCancel="True"
|
||||
Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
|
||||
HorizontalAlignment="Center">Refuse</Button>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</materialDesign:Card>
|
||||
</Grid>
|
||||
</materialDesign:DialogHost.DialogContent>
|
||||
</materialDesign:DialogHost>
|
||||
</Grid>
|
||||
|
||||
</Window>
|
395
CMWTAT_DIGITAL/MainWindow.xaml.cs
Normal file
395
CMWTAT_DIGITAL/MainWindow.xaml.cs
Normal file
@ -0,0 +1,395 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using OSVersionInfoClass;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Net;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using Microsoft.Win32;
|
||||
|
||||
namespace CMWTAT_DIGITAL
|
||||
{
|
||||
/// <summary>
|
||||
/// MainWindow.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
[DllImport("Kernel32.dll")]
|
||||
private static extern bool Wow64EnableWow64FsRedirection(bool Wow64FsEnableRedirection);//重定向
|
||||
public struct Frequency
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string DisplayOS { get; set; }
|
||||
}
|
||||
//public string SystemEdition = OSVersionInfo.Name + " " + OSVersionInfo.Edition;
|
||||
public string SystemEdition = OSVersionInfo.Edition;
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
//MessageBox.Show(@"reg add ""HKLM\SYSTEM\Tokens\"" /v ""Channel"" /t REG_SZ /d ""Retail"" /f");
|
||||
DialogWait.IsOpen = true;
|
||||
try
|
||||
{
|
||||
RegistryKey pRegKey = Registry.LocalMachine;
|
||||
pRegKey = pRegKey.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
|
||||
SystemEdition = pRegKey.GetValue("EditionID").ToString();
|
||||
}
|
||||
catch
|
||||
{
|
||||
SystemEdition = OSVersionInfo.Edition;
|
||||
}
|
||||
|
||||
//SystemEditionText.Text = SystemEdition;
|
||||
Thread loadthread = new Thread(LoadOSList);
|
||||
loadthread.Start();
|
||||
}
|
||||
JArray ositems;
|
||||
int now_os_index = 0;
|
||||
string checked_os = "unknow";
|
||||
private void InvokeTest()
|
||||
{
|
||||
actbtn.Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
LoadOSList();
|
||||
}));
|
||||
}
|
||||
private void LoadOSList()
|
||||
{
|
||||
actbtn.Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
DialogWait.IsOpen = true;
|
||||
}));
|
||||
try
|
||||
{
|
||||
string json = GetHttpWebRequest("https://kms.kumo.moe/api/digital?list=1");
|
||||
JObject jsonobj = JObject.Parse(json);
|
||||
List<Frequency> list = new List<Frequency>();
|
||||
Frequency freq = new Frequency();
|
||||
ositems = (JArray)jsonobj["OS"];
|
||||
for (int i = 0; i < ositems.Count(); i++)
|
||||
{
|
||||
freq.ID = i;
|
||||
freq.DisplayOS = jsonobj["OS"][i].ToString();
|
||||
if (jsonobj["OS"][i].ToString() == SystemEdition)
|
||||
{
|
||||
now_os_index = i;
|
||||
checked_os = SystemEdition;
|
||||
}
|
||||
if (jsonobj["OS"][i].ToString() == SystemEdition + OSVersionInfo.BuildVersion)
|
||||
{
|
||||
now_os_index = i;
|
||||
checked_os = SystemEdition + OSVersionInfo.BuildVersion;
|
||||
}
|
||||
list.Add(freq);
|
||||
}
|
||||
|
||||
actbtn.Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
this.SystemEditionText.ItemsSource = list;//控件的ID
|
||||
|
||||
if (checked_os == "unknow")
|
||||
{
|
||||
this.SystemEditionText.SelectedIndex = 0;
|
||||
this.DialogWithOKToCloseDialogTitle.Text = "Attention";
|
||||
this.DialogWithOKToCloseDialogText.Text = "Unable to correctly identify your operating system, may be not be supported.\r\n(System edition: " + SystemEdition + OSVersionInfo.BuildVersion + ")";
|
||||
this.DialogWithOKToCloseDialog.IsOpen = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SystemEditionText.SelectedIndex = now_os_index;
|
||||
}
|
||||
}));
|
||||
|
||||
//this.SystemEditionText.SelectedIndex = now_os_index;
|
||||
// 在此点之下插入创建对象所需的代码。
|
||||
}
|
||||
catch
|
||||
{
|
||||
actbtn.Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
DialogWithExit.IsOpen = true;
|
||||
}));
|
||||
}
|
||||
actbtn.Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
DialogWait.IsOpen = false;
|
||||
}));
|
||||
|
||||
}
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Thread actthread = new Thread(RunAct);
|
||||
actthread.Start();
|
||||
|
||||
//RunAct();
|
||||
//LoadOSList();
|
||||
|
||||
//MessageBox.Show(json);
|
||||
//MessageBox.Show(rss["OS"][0].ToString());
|
||||
//MessageBox.Show(SystemEdition);
|
||||
}
|
||||
private string GetHttpWebRequest(string url)
|
||||
{
|
||||
Uri uri = new Uri(url);
|
||||
HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create(uri);
|
||||
myReq.UserAgent = "User-Agent:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705";
|
||||
myReq.Accept = "*/*";
|
||||
myReq.KeepAlive = true;
|
||||
myReq.Headers.Add("Accept-Language", "zh-cn,en-us;q=0.5");
|
||||
HttpWebResponse result = (HttpWebResponse)myReq.GetResponse();
|
||||
Stream receviceStream = result.GetResponseStream();
|
||||
StreamReader readerOfStream = new StreamReader(receviceStream, System.Text.Encoding.GetEncoding("utf-8"));
|
||||
string strHTML = readerOfStream.ReadToEnd();
|
||||
readerOfStream.Close();
|
||||
receviceStream.Close();
|
||||
result.Close();
|
||||
return strHTML;
|
||||
}
|
||||
|
||||
private void Exit_Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Application.Current.Shutdown();
|
||||
}
|
||||
|
||||
private void RunAct()
|
||||
{
|
||||
actbtn.Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
this.DialogActProg.IsOpen = true;
|
||||
this.activatingtext.Text = "Activating";
|
||||
}));
|
||||
|
||||
Wow64EnableWow64FsRedirection(false);//关闭文件重定向
|
||||
|
||||
string code = "-0";
|
||||
string key = "00000-00000-00000-00000-00000";
|
||||
string sku = "0";
|
||||
string msg = "Unknow Error!";
|
||||
string system = "";
|
||||
actbtn.Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
system = this.SystemEditionText.Text;
|
||||
}));
|
||||
|
||||
|
||||
string slmgr = Environment.GetFolderPath(Environment.SpecialFolder.SystemX86) + "\\slmgr.vbs";
|
||||
string slmgr_self = System.AppDomain.CurrentDomain.BaseDirectory + "slmgr.vbs";
|
||||
|
||||
string changepk = Environment.SystemDirectory + "\\changepk.exe";
|
||||
|
||||
actbtn.Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
this.activatingtext.Text = "Getting Key";
|
||||
}));
|
||||
|
||||
//获取密钥和SKU
|
||||
try
|
||||
{
|
||||
|
||||
string json = GetHttpWebRequest("https://kms.kumo.moe/api/digital?list=0");
|
||||
JObject jsonobj = JObject.Parse(json);
|
||||
List<Frequency> list = new List<Frequency>();
|
||||
ositems = (JArray)jsonobj["OS"];
|
||||
key = jsonobj[system]["key"].ToString();
|
||||
sku = jsonobj[system]["sku"].ToString();
|
||||
Console.WriteLine("Edition:" + system + "\r\nSKU:" + key + "\r\nSKU:" + sku);
|
||||
|
||||
}
|
||||
catch
|
||||
{
|
||||
code = "-0";
|
||||
msg = "激活Windows10需要网络获取产品密钥 :) \nActivate Windows 10 requires a network to gets the product key :)";
|
||||
goto EndLine;
|
||||
}
|
||||
actbtn.Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
this.activatingtext.Text = "Uninstalling old Key";
|
||||
}));
|
||||
//卸载
|
||||
string runend = RunCScript(slmgr_self, "-upk").Trim();
|
||||
Console.WriteLine(runend);
|
||||
if (runend.EndsWith("successfully.") || runend.EndsWith("not found."))
|
||||
{
|
||||
|
||||
RunCScript(slmgr_self, "-ckms").Trim();
|
||||
|
||||
//写入Win7特征
|
||||
//ChangePKAction(changepk + " /ProductKey " + key);
|
||||
|
||||
actbtn.Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
this.activatingtext.Text = "Writing feature of old Windows version";
|
||||
}));
|
||||
|
||||
RunCMD(@"reg add ""HKLM\SYSTEM\Tokens"" /v ""Channel"" /t REG_SZ /d ""Retail"" /f");
|
||||
RunCMD(@"reg add ""HKLM\SYSTEM\Tokens\Kernel"" /v ""Kernel-ProductInfo"" /t REG_DWORD /d " + sku + " /f");
|
||||
RunCMD(@"reg add ""HKLM\SYSTEM\Tokens\Kernel"" /v ""Security-SPP-GenuineLocalStatus"" /t REG_DWORD /d 1 /f");
|
||||
RunCMD(@"reg add ""HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"" /v ""C:\gatherosstate.exe"" /d ""~ WIN7RTM"" /f");
|
||||
|
||||
actbtn.Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
this.activatingtext.Text = "Installing Key";
|
||||
}));
|
||||
|
||||
//安装数字权利升级密钥
|
||||
if (RunCScript(slmgr_self, "-ipk " + key).Trim().EndsWith("successfully."))
|
||||
{
|
||||
|
||||
actbtn.Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
this.activatingtext.Text = "Getting free upgrade permissions";
|
||||
}));
|
||||
|
||||
RunCMD(System.AppDomain.CurrentDomain.BaseDirectory + "gatherosstate.exe");
|
||||
|
||||
for (int i = 0; i < 3 || !File.Exists(System.AppDomain.CurrentDomain.BaseDirectory + "GenuineTicket.xml"); i++)
|
||||
{
|
||||
Thread.Sleep(3000);
|
||||
}
|
||||
|
||||
if (File.Exists(System.AppDomain.CurrentDomain.BaseDirectory + "GenuineTicket.xml"))
|
||||
{
|
||||
|
||||
actbtn.Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
this.activatingtext.Text = "Cleaning changes";
|
||||
}));
|
||||
|
||||
RunCMD(@"reg delete ""HKLM\SYSTEM\Tokens"" /f");
|
||||
RunCMD(@"reg delete ""HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"" /v ""C:\gatherosstate.exe"" /f");
|
||||
|
||||
actbtn.Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
this.activatingtext.Text = "Getting digital license";
|
||||
}));
|
||||
|
||||
Wow64EnableWow64FsRedirection(false);//关闭文件重定向
|
||||
RunCMD(Environment.SystemDirectory + @"\ClipUp.exe -v -o -altto " + System.AppDomain.CurrentDomain.BaseDirectory);
|
||||
|
||||
actbtn.Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
this.activatingtext.Text = "Activating";
|
||||
}));
|
||||
|
||||
runend = RunCScript(slmgr_self, "-ato").Trim();
|
||||
if (runend.EndsWith("060' to display the error text.") || runend.EndsWith("successfully.") || runend.EndsWith("to display the error text."))
|
||||
{
|
||||
code = "200";
|
||||
}
|
||||
else
|
||||
{
|
||||
code = "-4";
|
||||
msg = "激活失败 :(\nActivation Failed. :(";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
code = "-3";
|
||||
msg = "执行超时,可能没有选择正确的版本 :(\nTime out, may be you choose a incorrect version. :(";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
code = "-2";
|
||||
msg = "无法安装密钥,可能没有选择正确的版本 :(\nCannot to install key, may be you choose a incorrect version. :(";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
code = "-1";
|
||||
msg = "无法卸载旧密钥 :(\nCannot to uninstall old key. :(";
|
||||
}
|
||||
//string runend = RunCScript(slmgr_self, "-upk").Trim();
|
||||
EndLine:;
|
||||
if (code != "200")
|
||||
{
|
||||
actbtn.Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
this.DialogActProg.IsOpen = false;
|
||||
this.activatingtext.Text = "Activating";
|
||||
this.DialogWithOKToCloseDialog.IsOpen = true;
|
||||
this.DialogWithOKToCloseDialogTitle.Text = "Error";
|
||||
this.DialogWithOKToCloseDialogText.Text = msg + "\r\nCode:" + code;
|
||||
}));
|
||||
//MessageBox.Show(msg + "\r\nCode:" + code);
|
||||
}
|
||||
else
|
||||
{
|
||||
actbtn.Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
this.DialogActProg.IsOpen = false;
|
||||
this.activatingtext.Text = "Activating";
|
||||
this.DialogWithOKToCloseDialogDonate.IsOpen = true;
|
||||
//this.DialogWithOKToCloseDialogDonateTitle.Text = "Complete";
|
||||
//this.DialogWithOKToCloseDialogDonateText.Text = "Congratulation!";
|
||||
}));
|
||||
//MessageBox.Show("Congratulation!");
|
||||
}
|
||||
}
|
||||
|
||||
private void RunCMD(string var)
|
||||
{
|
||||
Wow64EnableWow64FsRedirection(false);//关闭文件重定向
|
||||
System.Diagnostics.Process p = new System.Diagnostics.Process();
|
||||
p.StartInfo.FileName = "cmd.exe";//要执行的程序名称
|
||||
p.StartInfo.WorkingDirectory = System.AppDomain.CurrentDomain.BaseDirectory;
|
||||
p.StartInfo.UseShellExecute = false;
|
||||
p.StartInfo.RedirectStandardInput = true;//可能接受来自调用程序的输入信息
|
||||
p.StartInfo.RedirectStandardOutput = true;//由调用程序获取输出信息
|
||||
p.StartInfo.CreateNoWindow = true;//不显示程序窗口
|
||||
p.Start();//启动程序
|
||||
//向CMD窗口发送输入信息:
|
||||
p.StandardInput.WriteLine(var); //10秒后重启(C#中可不好做哦)
|
||||
Console.WriteLine(var);
|
||||
//Wow64EnableWow64FsRedirection(false);//关闭文件重定向
|
||||
//System.Diagnostics.Process.Start(var);
|
||||
}
|
||||
|
||||
public static string RunCScript(string path, string var = "")
|
||||
{
|
||||
Wow64EnableWow64FsRedirection(false);//关闭文件重定向
|
||||
//执行命令行函数
|
||||
try
|
||||
{
|
||||
System.Diagnostics.Process myProcess = new System.Diagnostics.Process();
|
||||
System.Diagnostics.ProcessStartInfo myProcessStartInfo = new System.Diagnostics.ProcessStartInfo("CScript", "//Nologo \"" + path + "\" " + var);
|
||||
myProcessStartInfo.UseShellExecute = false;
|
||||
myProcessStartInfo.RedirectStandardOutput = true;
|
||||
myProcessStartInfo.CreateNoWindow = true;
|
||||
//myProcessStartInfo.Arguments = "/c chcp 65001 > nul && cmd /c \"" + PHPRuntimePath + "\" \"" + path + "\" " + var;
|
||||
//myProcessStartInfo.Arguments = "/c " & Commands
|
||||
myProcessStartInfo.StandardOutputEncoding = Encoding.UTF8;
|
||||
myProcess.StartInfo = myProcessStartInfo;
|
||||
myProcess.Start();
|
||||
myProcess.WaitForExit(120 * 1000);
|
||||
System.IO.StreamReader myStreamReader = myProcess.StandardOutput;
|
||||
string myString = myStreamReader.ReadToEnd();
|
||||
myProcess.Close();
|
||||
return myString;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return "Error";
|
||||
}
|
||||
}
|
||||
|
||||
private void Donate_Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
System.Diagnostics.Process.Start("https://waxel.cloudmoe.com/donate/");
|
||||
this.DialogWithOKToCloseDialogDonate.IsOpen = false;
|
||||
}
|
||||
}
|
||||
}
|
1089
CMWTAT_DIGITAL/OSVersionInfoClass.cs
Normal file
1089
CMWTAT_DIGITAL/OSVersionInfoClass.cs
Normal file
File diff suppressed because it is too large
Load Diff
55
CMWTAT_DIGITAL/Properties/AssemblyInfo.cs
Normal file
55
CMWTAT_DIGITAL/Properties/AssemblyInfo.cs
Normal file
@ -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 2017")]
|
||||
[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.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("2.0.0.0")]
|
63
CMWTAT_DIGITAL/Properties/Resources.Designer.cs
generated
Normal file
63
CMWTAT_DIGITAL/Properties/Resources.Designer.cs
generated
Normal file
@ -0,0 +1,63 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 属性。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
117
CMWTAT_DIGITAL/Properties/Resources.resx
Normal file
117
CMWTAT_DIGITAL/Properties/Resources.resx
Normal file
@ -0,0 +1,117 @@
|
||||
<?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.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: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" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</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" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
26
CMWTAT_DIGITAL/Properties/Settings.Designer.cs
generated
Normal file
26
CMWTAT_DIGITAL/Properties/Settings.Designer.cs
generated
Normal file
@ -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.5.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
Normal file
7
CMWTAT_DIGITAL/Properties/Settings.settings
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
3
CMWTAT_DIGITAL/app.config
Normal file
3
CMWTAT_DIGITAL/app.config
Normal file
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration>
|
74
CMWTAT_DIGITAL/app.manifest
Normal file
74
CMWTAT_DIGITAL/app.manifest
Normal file
@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<!-- UAC 清单选项
|
||||
如果想要更改 Windows 用户帐户控制级别,请使用
|
||||
以下节点之一替换 requestedExecutionLevel 节点。n
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
|
||||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
|
||||
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
|
||||
|
||||
指定 requestedExecutionLevel 元素将禁用文件和注册表虚拟化。
|
||||
如果你的应用程序需要此虚拟化来实现向后兼容性,则删除此
|
||||
元素。
|
||||
-->
|
||||
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
|
||||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||
<application>
|
||||
<!-- 设计此应用程序与其一起工作且已针对此应用程序进行测试的
|
||||
Windows 版本的列表。取消评论适当的元素,Windows 将
|
||||
自动选择最兼容的环境。 -->
|
||||
|
||||
<!-- Windows Vista -->
|
||||
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
|
||||
|
||||
<!-- Windows 7 -->
|
||||
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
|
||||
|
||||
<!-- Windows 8 -->
|
||||
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
|
||||
|
||||
<!-- Windows 8.1 -->
|
||||
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
|
||||
|
||||
<!-- Windows 10 -->
|
||||
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
|
||||
|
||||
</application>
|
||||
</compatibility>
|
||||
|
||||
<!-- 指示该应用程序可以感知 DPI 且 Windows 在 DPI 较高时将不会对其进行
|
||||
自动缩放。Windows Presentation Foundation (WPF)应用程序自动感知 DPI,无需
|
||||
选择加入。选择加入此设置的 Windows 窗体应用程序(目标设定为 .NET Framework 4.6 )还应
|
||||
在其 app.config 中将 "EnableWindowsFormsHighDpiAutoResizing" 设置设置为 "true"。-->
|
||||
|
||||
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<windowsSettings>
|
||||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
|
||||
</windowsSettings>
|
||||
</application>
|
||||
|
||||
<!-- 启用 Windows 公共控件和对话框的主题(Windows XP 和更高版本) -->
|
||||
<!--
|
||||
<dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity
|
||||
type="win32"
|
||||
name="Microsoft.Windows.Common-Controls"
|
||||
version="6.0.0.0"
|
||||
processorArchitecture="*"
|
||||
publicKeyToken="6595b64144ccf1df"
|
||||
language="*"
|
||||
/>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
-->
|
||||
|
||||
</assembly>
|
6
CMWTAT_DIGITAL/packages.config
Normal file
6
CMWTAT_DIGITAL/packages.config
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="MaterialDesignColors" version="1.1.3" targetFramework="net45" />
|
||||
<package id="MaterialDesignThemes" version="2.4.0.1044" targetFramework="net45" />
|
||||
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net45" />
|
||||
</packages>
|
Loading…
Reference in New Issue
Block a user