跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

提交记录
新增Core/Core.csproj+54 −0看文件
@@ -0,0 +1,54 @@
1新增:<?xml version="1.0" encoding="utf-8"?>
2新增:<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3新增: <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4新增: <PropertyGroup>
5新增: <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6新增: <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7新增: <ProjectGuid>{FA57023C-3399-45A4-A339-E453002BD878}</ProjectGuid>
8新增: <OutputType>Library</OutputType>
9新增: <AppDesignerFolder>Properties</AppDesignerFolder>
10新增: <RootNamespace>Core</RootNamespace>
11新增: <AssemblyName>Core</AssemblyName>
12新增: <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
13新增: <FileAlignment>512</FileAlignment>
14新增: <Deterministic>true</Deterministic>
15新增: <TargetFrameworkProfile />
16新增: </PropertyGroup>
17新增: <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
18新增: <DebugSymbols>true</DebugSymbols>
19新增: <DebugType>full</DebugType>
20新增: <Optimize>false</Optimize>
21新增: <OutputPath>bin\Debug\</OutputPath>
22新增: <DefineConstants>DEBUG;TRACE</DefineConstants>
23新增: <ErrorReport>prompt</ErrorReport>
24新增: <WarningLevel>4</WarningLevel>
25新增: </PropertyGroup>
26新增: <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27新增: <DebugType>pdbonly</DebugType>
28新增: <Optimize>true</Optimize>
29新增: <OutputPath>bin\Release\</OutputPath>
30新增: <DefineConstants>TRACE</DefineConstants>
31新增: <ErrorReport>prompt</ErrorReport>
32新增: <WarningLevel>4</WarningLevel>
33新增: </PropertyGroup>
34新增: <ItemGroup>
35新增: <Reference Include="System" />
36新增: <Reference Include="System.Core" />
37新增: <Reference Include="System.Xml.Linq" />
38新增: <Reference Include="System.Data.DataSetExtensions" />
39新增: <Reference Include="Microsoft.CSharp" />
40新增: <Reference Include="System.Data" />
41新增: <Reference Include="System.Net.Http" />
42新增: <Reference Include="System.Xml" />
43新增: </ItemGroup>
44新增: <ItemGroup>
45新增: <Compile Include="Librarys\Win32API.cs" />
46新增: <Compile Include="Properties\AssemblyInfo.cs" />
47新增: <Compile Include="Servicers\Instances\Main.cs" />
48新增: <Compile Include="Servicers\Instances\Observer.cs" />
49新增: <Compile Include="Servicers\Interfaces\IMain.cs" />
50新增: <Compile Include="Servicers\Interfaces\IObserver.cs" />
51新增: </ItemGroup>
52新增: <ItemGroup />
53新增: <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
54新增:</Project>
文件末尾没有换行
新增Core/Librarys/Win32API.cs+25 −0看文件
@@ -0,0 +1,25 @@
1新增:using System;
2新增:using System.Collections.Generic;
3新增:using System.Linq;
4新增:using System.Runtime.InteropServices;
5新增:using System.Text;
6新增:using System.Threading.Tasks;
7新增:
8新增:namespace Core.Librarys
9新增:{
10新增: public static class Win32API
11新增: {
12新增: public delegate void WinEventDelegate(IntPtr hWinEventHook, uint eventType,
13新增: IntPtr hwnd, int idObject, int idChild, uint dwEventThread, uint dwmsEventTime);
14新增: [DllImport("user32.dll")]
15新增: public static extern IntPtr SetWinEventHook(uint eventMin, uint eventMax, IntPtr
16新增: hmodWinEventProc, WinEventDelegate lpfnWinEventProc, uint idProcess,
17新增: uint idThread, uint dwFlags);
18新增:
19新增: [DllImport("user32.dll")]
20新增: public static extern bool UnhookWinEvent(IntPtr hWinEventHook);
21新增:
22新增: [DllImport("user32.dll", CharSet = CharSet.Auto)]
23新增: public static extern int GetWindowThreadProcessId(IntPtr hwnd, out int ID);
24新增: }
25新增:}
新增Core/Properties/AssemblyInfo.cs+36 −0看文件
@@ -0,0 +1,36 @@
1新增:using System.Reflection;
2新增:using System.Runtime.CompilerServices;
3新增:using System.Runtime.InteropServices;
4新增:
5新增:// 有关程序集的一般信息由以下
6新增:// 控制。更改这些特性值可修改
7新增:// 与程序集关联的信息。
8新增:[assembly: AssemblyTitle("Core")]
9新增:[assembly: AssemblyDescription("")]
10新增:[assembly: AssemblyConfiguration("")]
11新增:[assembly: AssemblyCompany("")]
12新增:[assembly: AssemblyProduct("Core")]
13新增:[assembly: AssemblyCopyright("Copyright © 2021")]
14新增:[assembly: AssemblyTrademark("")]
15新增:[assembly: AssemblyCulture("")]
16新增:
17新增:// 将 ComVisible 设置为 false 会使此程序集中的类型
18新增://对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
19新增://请将此类型的 ComVisible 特性设置为 true。
20新增:[assembly: ComVisible(false)]
21新增:
22新增:// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23新增:[assembly: Guid("fa57023c-3399-45a4-a339-e453002bd878")]
24新增:
25新增:// 程序集的版本信息由下列四个值组成:
26新增://
27新增:// 主版本
28新增:// 次版本
29新增:// 生成号
30新增:// 修订号
31新增://
32新增://可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
33新增://通过使用 "*",如下所示:
34新增:// [assembly: AssemblyVersion("1.0.*")]
35新增:[assembly: AssemblyVersion("1.0.0.0")]
36新增:[assembly: AssemblyFileVersion("1.0.0.0")]
新增Core/Servicers/Instances/Main.cs+27 −0看文件
@@ -0,0 +1,27 @@
1新增:using Core.Servicers.Interfaces;
2新增:using System;
3新增:using System.Collections.Generic;
4新增:using System.Linq;
5新增:using System.Text;
6新增:using System.Threading.Tasks;
7新增:
8新增:namespace Core.Servicers.Instances
9新增:{
10新增: public class Main : IMain
11新增: {
12新增: private readonly IObserver observer;
13新增: public Main(IObserver observer)
14新增: {
15新增: this.observer = observer;
16新增: }
17新增: public void Run()
18新增: {
19新增: observer.Start();
20新增: }
21新增:
22新增: public void Exit()
23新增: {
24新增: observer?.Stop();
25新增: }
26新增: }
27新增:}
新增Core/Servicers/Instances/Observer.cs+41 −0看文件
@@ -0,0 +1,41 @@
1新增:using Core.Librarys;
2新增:using Core.Servicers.Interfaces;
3新增:using System;
4新增:using System.Collections.Generic;
5新增:using System.Diagnostics;
6新增:using System.Linq;
7新增:using System.Text;
8新增:using System.Threading.Tasks;
9新增:
10新增:namespace Core.Servicers.Instances
11新增:{
12新增: public class Observer : IObserver
13新增: {
14新增: private IntPtr hook;
15新增: Win32API.WinEventDelegate winEventDelegate;
16新增:
17新增: public Observer()
18新增: {
19新增: winEventDelegate = new Win32API.WinEventDelegate(WinEventProc);
20新增: }
21新增: public void Start()
22新增: {
23新增: hook = Win32API.SetWinEventHook(0x0003, 0x0003, IntPtr.Zero,
24新增: winEventDelegate, 0, 0, 0);
25新增: }
26新增:
27新增: private static void WinEventProc(IntPtr hWinEventHook, uint eventType, IntPtr hwnd, int idObject, int idChild, uint dwEventThread, uint dwmsEventTime)
28新增: {
29新增: int processID = 0;
30新增: Win32API.GetWindowThreadProcessId(hwnd, out processID);
31新增: Process process = Process.GetProcessById(processID);
32新增: Debug.WriteLine(process.ProcessName);
33新增: }
34新增:
35新增:
36新增: public void Stop()
37新增: {
38新增: Win32API.UnhookWinEvent(hook);
39新增: }
40新增: }
41新增:}
新增Core/Servicers/Interfaces/IMain.cs+23 −0看文件
@@ -0,0 +1,23 @@
1新增:using System;
2新增:using System.Collections.Generic;
3新增:using System.Linq;
4新增:using System.Text;
5新增:using System.Threading.Tasks;
6新增:
7新增:namespace Core.Servicers.Interfaces
8新增:{
9新增: /// <summary>
10新增: /// 主要服务
11新增: /// </summary>
12新增: public interface IMain
13新增: {
14新增: /// <summary>
15新增: /// 启动服务
16新增: /// </summary>
17新增: void Run();
18新增: /// <summary>
19新增: /// 退出服务
20新增: /// </summary>
21新增: void Exit();
22新增: }
23新增:}
新增Core/Servicers/Interfaces/IObserver.cs+23 −0看文件
@@ -0,0 +1,23 @@
1新增:using System;
2新增:using System.Collections.Generic;
3新增:using System.Linq;
4新增:using System.Text;
5新增:using System.Threading.Tasks;
6新增:
7新增:namespace Core.Servicers.Interfaces
8新增:{
9新增: /// <summary>
10新增: /// 观察者,用于监听应用程序获取焦点事件
11新增: /// </summary>
12新增: public interface IObserver
13新增: {
14新增: /// <summary>
15新增: /// 启动观察
16新增: /// </summary>
17新增: void Start();
18新增: /// <summary>
19新增: /// 停止观察
20新增: /// </summary>
21新增: void Stop();
22新增: }
23新增:}
新增Tai.sln+31 −0看文件
@@ -0,0 +1,31 @@
1新增:
2新增:Microsoft Visual Studio Solution File, Format Version 12.00
3新增:# Visual Studio Version 17
4新增:VisualStudioVersion = 17.0.31912.275
5新增:MinimumVisualStudioVersion = 10.0.40219.1
6新增:Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core", "Core\Core.csproj", "{FA57023C-3399-45A4-A339-E453002BD878}"
7新增:EndProject
8新增:Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UI", "UI\UI.csproj", "{24270E1E-8C24-40B0-A463-98753DFAA4AE}"
9新增:EndProject
10新增:Global
11新增: GlobalSection(SolutionConfigurationPlatforms) = preSolution
12新增: Debug|Any CPU = Debug|Any CPU
13新增: Release|Any CPU = Release|Any CPU
14新增: EndGlobalSection
15新增: GlobalSection(ProjectConfigurationPlatforms) = postSolution
16新增: {FA57023C-3399-45A4-A339-E453002BD878}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17新增: {FA57023C-3399-45A4-A339-E453002BD878}.Debug|Any CPU.Build.0 = Debug|Any CPU
18新增: {FA57023C-3399-45A4-A339-E453002BD878}.Release|Any CPU.ActiveCfg = Release|Any CPU
19新增: {FA57023C-3399-45A4-A339-E453002BD878}.Release|Any CPU.Build.0 = Release|Any CPU
20新增: {24270E1E-8C24-40B0-A463-98753DFAA4AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21新增: {24270E1E-8C24-40B0-A463-98753DFAA4AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
22新增: {24270E1E-8C24-40B0-A463-98753DFAA4AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
23新增: {24270E1E-8C24-40B0-A463-98753DFAA4AE}.Release|Any CPU.Build.0 = Release|Any CPU
24新增: EndGlobalSection
25新增: GlobalSection(SolutionProperties) = preSolution
26新增: HideSolutionNode = FALSE
27新增: EndGlobalSection
28新增: GlobalSection(ExtensibilityGlobals) = postSolution
29新增: SolutionGuid = {EC745831-4BEE-4E09-953C-32E76AC383B1}
30新增: EndGlobalSection
31新增:EndGlobal
新增UI/App.config+14 −0看文件
@@ -0,0 +1,14 @@
1新增:<?xml version="1.0" encoding="utf-8"?>
2新增:<configuration>
3新增: <startup>
4新增: <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
5新增: </startup>
6新增: <runtime>
7新增: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
8新增: <dependentAssembly>
9新增: <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
10新增: <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
11新增: </dependentAssembly>
12新增: </assemblyBinding>
13新增: </runtime>
14新增:</configuration>
新增UI/App.xaml+10 −0看文件
@@ -0,0 +1,10 @@
1新增:<Application x:Class="UI.App"
2新增: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4新增: xmlns:local="clr-namespace:UI"
5新增: Startup="OnStartup"
6新增: >
7新增: <Application.Resources>
8新增:
9新增: </Application.Resources>
10新增:</Application>
新增UI/App.xaml.cs+39 −0看文件
@@ -0,0 +1,39 @@
1新增:using Core.Servicers.Instances;
2新增:using Core.Servicers.Interfaces;
3新增:using Microsoft.Extensions.DependencyInjection;
4新增:using System;
5新增:using System.Collections.Generic;
6新增:using System.Configuration;
7新增:using System.Data;
8新增:using System.Linq;
9新增:using System.Threading.Tasks;
10新增:using System.Windows;
11新增:
12新增:namespace UI
13新增:{
14新增: /// <summary>
15新增: /// App.xaml 的交互逻辑
16新增: /// </summary>
17新增: public partial class App : Application
18新增: {
19新增: private readonly ServiceProvider serviceProvider;
20新增: public App()
21新增: {
22新增: var serviceCollection = new ServiceCollection();
23新增: ConfigureServices(serviceCollection);
24新增: serviceProvider = serviceCollection.BuildServiceProvider();
25新增:
26新增: }
27新增: private void ConfigureServices(IServiceCollection services)
28新增: {
29新增: services.AddSingleton<IObserver, Observer>();
30新增: services.AddSingleton<IMain, Main>();
31新增: }
32新增:
33新增: private void OnStartup(object sender, StartupEventArgs e)
34新增: {
35新增: var main = serviceProvider.GetService<IMain>();
36新增: main.Run();
37新增: }
38新增: }
39新增:}
新增UI/MainWindow.xaml+12 −0看文件
@@ -0,0 +1,12 @@
1新增:<Window x:Class="UI.MainWindow"
2新增: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3新增: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4新增: xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5新增: xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6新增: xmlns:local="clr-namespace:UI"
7新增: mc:Ignorable="d"
8新增: Title="MainWindow" Height="450" Width="800">
9新增: <Grid>
10新增:
11新增: </Grid>
12新增:</Window>
新增UI/MainWindow.xaml.cs+29 −0看文件
@@ -0,0 +1,29 @@
1新增:using Core;
2新增:using System;
3新增:using System.Collections.Generic;
4新增:using System.Linq;
5新增:using System.Text;
6新增:using System.Threading.Tasks;
7新增:using System.Windows;
8新增:using System.Windows.Controls;
9新增:using System.Windows.Data;
10新增:using System.Windows.Documents;
11新增:using System.Windows.Input;
12新增:using System.Windows.Media;
13新增:using System.Windows.Media.Imaging;
14新增:using System.Windows.Navigation;
15新增:using System.Windows.Shapes;
16新增:
17新增:namespace UI
18新增:{
19新增: /// <summary>
20新增: /// MainWindow.xaml 的交互逻辑
21新增: /// </summary>
22新增: public partial class MainWindow : Window
23新增: {
24新增: public MainWindow()
25新增: {
26新增: InitializeComponent();
27新增: }
28新增: }
29新增:}
新增UI/Properties/AssemblyInfo.cs+55 −0看文件
@@ -0,0 +1,55 @@
1新增:using System.Reflection;
2新增:using System.Resources;
3新增:using System.Runtime.CompilerServices;
4新增:using System.Runtime.InteropServices;
5新增:using System.Windows;
6新增:
7新增:// 有关程序集的一般信息由以下
8新增:// 控制。更改这些特性值可修改
9新增:// 与程序集关联的信息。
10新增:[assembly: AssemblyTitle("Test")]
11新增:[assembly: AssemblyDescription("")]
12新增:[assembly: AssemblyConfiguration("")]
13新增:[assembly: AssemblyCompany("")]
14新增:[assembly: AssemblyProduct("UI")]
15新增:[assembly: AssemblyCopyright("Copyright © 2021")]
16新增:[assembly: AssemblyTrademark("")]
17新增:[assembly: AssemblyCulture("")]
18新增:
19新增:// 将 ComVisible 设置为 false 会使此程序集中的类型
20新增://对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
21新增://请将此类型的 ComVisible 特性设置为 true。
22新增:[assembly: ComVisible(false)]
23新增:
24新增://若要开始生成可本地化的应用程序,请设置
25新增://.csproj 文件中的 <UICulture>CultureYouAreCodingWith</UICulture>
26新增://例如,如果您在源文件中使用的是美国英语,
27新增://使用的是美国英语,请将 <UICulture> 设置为 en-US。 然后取消
28新增://对以下 NeutralResourceLanguage 特性的注释。 更新
29新增://以下行中的“en-US”以匹配项目文件中的 UICulture 设置。
30新增:
31新增://[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32新增:
33新增:
34新增:[assembly: ThemeInfo(
35新增: ResourceDictionaryLocation.None, //主题特定资源词典所处位置
36新增: //(未在页面中找到资源时使用,
37新增: //或应用程序资源字典中找到时使用)
38新增: ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置
39新增: //(未在页面中找到资源时使用,
40新增: //、应用程序或任何主题专用资源字典中找到时使用)
41新增:)]
42新增:
43新增:
44新增:// 程序集的版本信息由下列四个值组成:
45新增://
46新增:// 主版本
47新增:// 次版本
48新增:// 生成号
49新增:// 修订号
50新增://
51新增://可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
52新增://通过使用 "*",如下所示:
53新增:// [assembly: AssemblyVersion("1.0.*")]
54新增:[assembly: AssemblyVersion("1.0.0.0")]
55新增:[assembly: AssemblyFileVersion("1.0.0.0")]
新增UI/Properties/Resources.Designer.cs+63 −0看文件
@@ -0,0 +1,63 @@
1新增://------------------------------------------------------------------------------
2新增:// <auto-generated>
3新增:// 此代码由工具生成。
4新增:// 运行时版本:4.0.30319.42000
5新增://
6新增:// 对此文件的更改可能会导致不正确的行为,并且如果
7新增:// 重新生成代码,这些更改将会丢失。
8新增:// </auto-generated>
9新增://------------------------------------------------------------------------------
10新增:
11新增:namespace UI.Properties {
12新增: using System;
13新增:
14新增:
15新增: /// <summary>
16新增: /// 一个强类型的资源类,用于查找本地化的字符串等。
17新增: /// </summary>
18新增: // 此类是由 StronglyTypedResourceBuilder
19新增: // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20新增: // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21新增: // (以 /str 作为命令选项),或重新生成 VS 项目。
22新增: [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
23新增: [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24新增: [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25新增: internal class Resources {
26新增:
27新增: private static global::System.Resources.ResourceManager resourceMan;
28新增:
29新增: private static global::System.Globalization.CultureInfo resourceCulture;
30新增:
31新增: [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32新增: internal Resources() {
33新增: }
34新增:
35新增: /// <summary>
36新增: /// 返回此类使用的缓存的 ResourceManager 实例。
37新增: /// </summary>
38新增: [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39新增: internal static global::System.Resources.ResourceManager ResourceManager {
40新增: get {
41新增: if (object.ReferenceEquals(resourceMan, null)) {
42新增: global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("UI.Properties.Resources", typeof(Resources).Assembly);
43新增: resourceMan = temp;
44新增: }
45新增: return resourceMan;
46新增: }
47新增: }
48新增:
49新增: /// <summary>
50新增: /// 重写当前线程的 CurrentUICulture 属性,对
51新增: /// 使用此强类型资源类的所有资源查找执行重写。
52新增: /// </summary>
53新增: [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54新增: internal static global::System.Globalization.CultureInfo Culture {
55新增: get {
56新增: return resourceCulture;
57新增: }
58新增: set {
59新增: resourceCulture = value;
60新增: }
61新增: }
62新增: }
63新增:}
新增UI/Properties/Resources.resx+117 −0看文件
@@ -0,0 +1,117 @@
1新增:<?xml version="1.0" encoding="utf-8"?>
2新增:<root>
3新增: <!--
4新增: Microsoft ResX Schema
5新增:
6新增: Version 2.0
7新增:
8新增: The primary goals of this format is to allow a simple XML format
9新增: that is mostly human readable. The generation and parsing of the
10新增: various data types are done through the TypeConverter classes
11新增: associated with the data types.
12新增:
13新增: Example:
14新增:
15新增: ... ado.net/XML headers & schema ...
16新增: <resheader name="resmimetype">text/microsoft-resx</resheader>
17新增: <resheader name="version">2.0</resheader>
18新增: <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19新增: <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20新增: <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21新增: <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22新增: <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23新增: <value>[base64 mime encoded serialized .NET Framework object]</value>
24新增: </data>
25新增: <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26新增: <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27新增: <comment>This is a comment</comment>
28新增: </data>
29新增:
30新增: There are any number of "resheader" rows that contain simple
31新增: name/value pairs.
32新增:
33新增: Each data row contains a name, and value. The row also contains a
34新增: type or mimetype. Type corresponds to a .NET class that support
35新增: text/value conversion through the TypeConverter architecture.
36新增: Classes that don't support this are serialized and stored with the
37新增: mimetype set.
38新增:
39新增: The mimetype is used for serialized objects, and tells the
40新增: ResXResourceReader how to depersist the object. This is currently not
41新增: extensible. For a given mimetype the value must be set accordingly:
42新增:
43新增: Note - application/x-microsoft.net.object.binary.base64 is the format
44新增: that the ResXResourceWriter will generate, however the reader can
45新增: read any of the formats listed below.
46新增:
47新增: mimetype: application/x-microsoft.net.object.binary.base64
48新增: value : The object must be serialized with
49新增: : System.Serialization.Formatters.Binary.BinaryFormatter
50新增: : and then encoded with base64 encoding.
51新增:
52新增: mimetype: application/x-microsoft.net.object.soap.base64
53新增: value : The object must be serialized with
54新增: : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55新增: : and then encoded with base64 encoding.
56新增:
57新增: mimetype: application/x-microsoft.net.object.bytearray.base64
58新增: value : The object must be serialized into a byte array
59新增: : using a System.ComponentModel.TypeConverter
60新增: : and then encoded with base64 encoding.
61新增: -->
62新增: <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63新增: <xsd:element name="root" msdata:IsDataSet="true">
64新增: <xsd:complexType>
65新增: <xsd:choice maxOccurs="unbounded">
66新增: <xsd:element name="metadata">
67新增: <xsd:complexType>
68新增: <xsd:sequence>
69新增: <xsd:element name="value" type="xsd:string" minOccurs="0" />
70新增: </xsd:sequence>
71新增: <xsd:attribute name="name" type="xsd:string" />
72新增: <xsd:attribute name="type" type="xsd:string" />
73新增: <xsd:attribute name="mimetype" type="xsd:string" />
74新增: </xsd:complexType>
75新增: </xsd:element>
76新增: <xsd:element name="assembly">
77新增: <xsd:complexType>
78新增: <xsd:attribute name="alias" type="xsd:string" />
79新增: <xsd:attribute name="name" type="xsd:string" />
80新增: </xsd:complexType>
81新增: </xsd:element>
82新增: <xsd:element name="data">
83新增: <xsd:complexType>
84新增: <xsd:sequence>
85新增: <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
86新增: <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
87新增: </xsd:sequence>
88新增: <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
89新增: <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
90新增: <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
91新增: </xsd:complexType>
92新增: </xsd:element>
93新增: <xsd:element name="resheader">
94新增: <xsd:complexType>
95新增: <xsd:sequence>
96新增: <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
97新增: </xsd:sequence>
98新增: <xsd:attribute name="name" type="xsd:string" use="required" />
99新增: </xsd:complexType>
100新增: </xsd:element>
101新增: </xsd:choice>
102新增: </xsd:complexType>
103新增: </xsd:element>
104新增: </xsd:schema>
105新增: <resheader name="resmimetype">
106新增: <value>text/microsoft-resx</value>
107新增: </resheader>
108新增: <resheader name="version">
109新增: <value>2.0</value>
110新增: </resheader>
111新增: <resheader name="reader">
112新增: <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
113新增: </resheader>
114新增: <resheader name="writer">
115新增: <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116新增: </resheader>
117新增:</root>
文件末尾没有换行
新增UI/Properties/Settings.Designer.cs+26 −0看文件
@@ -0,0 +1,26 @@
1新增://------------------------------------------------------------------------------
2新增:// <auto-generated>
3新增:// 此代码由工具生成。
4新增:// 运行时版本:4.0.30319.42000
5新增://
6新增:// 对此文件的更改可能会导致不正确的行为,并且如果
7新增:// 重新生成代码,这些更改将会丢失。
8新增:// </auto-generated>
9新增://------------------------------------------------------------------------------
10新增:
11新增:namespace UI.Properties {
12新增:
13新增:
14新增: [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15新增: [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.0.3.0")]
16新增: internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17新增:
18新增: private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19新增:
20新增: public static Settings Default {
21新增: get {
22新增: return defaultInstance;
23新增: }
24新增: }
25新增: }
26新增:}
新增UI/Properties/Settings.settings+7 −0看文件
@@ -0,0 +1,7 @@
1新增:<?xml version='1.0' encoding='utf-8'?>
2新增:<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
3新增: <Profiles>
4新增: <Profile Name="(Default)" />
5新增: </Profiles>
6新增: <Settings />
7新增:</SettingsFile>
文件末尾没有换行
新增UI/UI.csproj+120 −0看文件
@@ -0,0 +1,120 @@
1新增:<?xml version="1.0" encoding="utf-8"?>
2新增:<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3新增: <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4新增: <PropertyGroup>
5新增: <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6新增: <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7新增: <ProjectGuid>{24270E1E-8C24-40B0-A463-98753DFAA4AE}</ProjectGuid>
8新增: <OutputType>WinExe</OutputType>
9新增: <RootNamespace>UI</RootNamespace>
10新增: <AssemblyName>Tai</AssemblyName>
11新增: <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
12新增: <FileAlignment>512</FileAlignment>
13新增: <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
14新增: <WarningLevel>4</WarningLevel>
15新增: <Deterministic>true</Deterministic>
16新增: <TargetFrameworkProfile />
17新增: </PropertyGroup>
18新增: <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
19新增: <PlatformTarget>AnyCPU</PlatformTarget>
20新增: <DebugSymbols>true</DebugSymbols>
21新增: <DebugType>full</DebugType>
22新增: <Optimize>false</Optimize>
23新增: <OutputPath>bin\Debug\</OutputPath>
24新增: <DefineConstants>DEBUG;TRACE</DefineConstants>
25新增: <ErrorReport>prompt</ErrorReport>
26新增: <WarningLevel>4</WarningLevel>
27新增: </PropertyGroup>
28新增: <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
29新增: <PlatformTarget>AnyCPU</PlatformTarget>
30新增: <DebugType>pdbonly</DebugType>
31新增: <Optimize>true</Optimize>
32新增: <OutputPath>bin\Release\</OutputPath>
33新增: <DefineConstants>TRACE</DefineConstants>
34新增: <ErrorReport>prompt</ErrorReport>
35新增: <WarningLevel>4</WarningLevel>
36新增: </PropertyGroup>
37新增: <ItemGroup>
38新增: <Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
39新增: <HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.6.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
40新增: </Reference>
41新增: <Reference Include="Microsoft.Extensions.DependencyInjection, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
42新增: <HintPath>..\packages\Microsoft.Extensions.DependencyInjection.6.0.0\lib\net461\Microsoft.Extensions.DependencyInjection.dll</HintPath>
43新增: </Reference>
44新增: <Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
45新增: <HintPath>..\packages\Microsoft.Extensions.DependencyInjection.Abstractions.6.0.0\lib\net461\Microsoft.Extensions.DependencyInjection.Abstractions.dll</HintPath>
46新增: </Reference>
47新增: <Reference Include="System" />
48新增: <Reference Include="System.Data" />
49新增: <Reference Include="System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
50新增: <HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
51新增: </Reference>
52新增: <Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
53新增: <HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
54新增: </Reference>
55新增: <Reference Include="System.Xml" />
56新增: <Reference Include="Microsoft.CSharp" />
57新增: <Reference Include="System.Core" />
58新增: <Reference Include="System.Xml.Linq" />
59新增: <Reference Include="System.Data.DataSetExtensions" />
60新增: <Reference Include="System.Net.Http" />
61新增: <Reference Include="System.Xaml">
62新增: <RequiredTargetFramework>4.0</RequiredTargetFramework>
63新增: </Reference>
64新增: <Reference Include="WindowsBase" />
65新增: <Reference Include="PresentationCore" />
66新增: <Reference Include="PresentationFramework" />
67新增: </ItemGroup>
68新增: <ItemGroup>
69新增: <ApplicationDefinition Include="App.xaml">
70新增: <Generator>MSBuild:Compile</Generator>
71新增: <SubType>Designer</SubType>
72新增: </ApplicationDefinition>
73新增: <Page Include="MainWindow.xaml">
74新增: <Generator>MSBuild:Compile</Generator>
75新增: <SubType>Designer</SubType>
76新增: </Page>
77新增: <Compile Include="App.xaml.cs">
78新增: <DependentUpon>App.xaml</DependentUpon>
79新增: <SubType>Code</SubType>
80新增: </Compile>
81新增: <Compile Include="MainWindow.xaml.cs">
82新增: <DependentUpon>MainWindow.xaml</DependentUpon>
83新增: <SubType>Code</SubType>
84新增: </Compile>
85新增: </ItemGroup>
86新增: <ItemGroup>
87新增: <Compile Include="Properties\AssemblyInfo.cs">
88新增: <SubType>Code</SubType>
89新增: </Compile>
90新增: <Compile Include="Properties\Resources.Designer.cs">
91新增: <AutoGen>True</AutoGen>
92新增: <DesignTime>True</DesignTime>
93新增: <DependentUpon>Resources.resx</DependentUpon>
94新增: </Compile>
95新增: <Compile Include="Properties\Settings.Designer.cs">
96新增: <AutoGen>True</AutoGen>
97新增: <DependentUpon>Settings.settings</DependentUpon>
98新增: <DesignTimeSharedInput>True</DesignTimeSharedInput>
99新增: </Compile>
100新增: <EmbeddedResource Include="Properties\Resources.resx">
101新增: <Generator>ResXFileCodeGenerator</Generator>
102新增: <LastGenOutput>Resources.Designer.cs</LastGenOutput>
103新增: </EmbeddedResource>
104新增: <None Include="packages.config" />
105新增: <None Include="Properties\Settings.settings">
106新增: <Generator>SettingsSingleFileGenerator</Generator>
107新增: <LastGenOutput>Settings.Designer.cs</LastGenOutput>
108新增: </None>
109新增: </ItemGroup>
110新增: <ItemGroup>
111新增: <None Include="App.config" />
112新增: </ItemGroup>
113新增: <ItemGroup>
114新增: <ProjectReference Include="..\Core\Core.csproj">
115新增: <Project>{fa57023c-3399-45a4-a339-e453002bd878}</Project>
116新增: <Name>Core</Name>
117新增: </ProjectReference>
118新增: </ItemGroup>
119新增: <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
120新增:</Project>
文件末尾没有换行
新增UI/packages.config+8 −0看文件
@@ -0,0 +1,8 @@
1新增:<?xml version="1.0" encoding="utf-8"?>
2新增:<packages>
3新增: <package id="Microsoft.Bcl.AsyncInterfaces" version="6.0.0" targetFramework="net461" />
4新增: <package id="Microsoft.Extensions.DependencyInjection" version="6.0.0" targetFramework="net461" />
5新增: <package id="Microsoft.Extensions.DependencyInjection.Abstractions" version="6.0.0" targetFramework="net461" />
6新增: <package id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" targetFramework="net461" />
7新增: <package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net461" />
8新增:</packages>
文件末尾没有换行