First in 202205060145
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"Version": 1,
|
||||
"ProjectMap": {
|
||||
"26b67f06-5b9b-4b06-bfaa-fccf9a11d391": {
|
||||
"ProjectGuid": "26b67f06-5b9b-4b06-bfaa-fccf9a11d391",
|
||||
"DisplayName": "Project1",
|
||||
"ColorIndex": 0
|
||||
}
|
||||
},
|
||||
"NextColorIndex": 1
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Threading;
|
||||
using System.Timers;
|
||||
|
||||
namespace THCCD_Demo
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
System.Timers.Timer mainTimer = new System.Timers.Timer();
|
||||
Say sentence = new Say();
|
||||
mainTimer.Interval = 1000.0 / 60.0;
|
||||
|
||||
|
||||
//Timer.interval属性是一个double类型参数,可以是小数,理论可以用于THCCD的游戏时钟。
|
||||
|
||||
|
||||
Console.WriteLine(mainTimer.Interval);
|
||||
mainTimer.Elapsed += sentence.say;
|
||||
mainTimer.Start();
|
||||
Console.ReadLine();
|
||||
}
|
||||
}
|
||||
class Say
|
||||
{
|
||||
private int count;
|
||||
public Say()
|
||||
{
|
||||
this.count = 0;
|
||||
}
|
||||
internal void say(object sender, ElapsedEventArgs e)
|
||||
{
|
||||
this.count++;
|
||||
if (count <= 60)
|
||||
{
|
||||
Console.WriteLine("Long live TouHou!");
|
||||
Console.WriteLine(DateTime.UtcNow.ToString());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("THCCD Demo")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("THCCD Demo")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2021")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("63873377-e0ba-4d4b-b560-8ad3bdff7bb2")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
||||
//通过使用 "*",如下所示:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,49 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.0.32112.339
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Timer Demo", "Timer Demo.csproj", "{63873377-E0BA-4D4B-B560-8AD3BDFF7BB2}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ThreadingTimersDemo", "..\ThreadingTimersDemo\ThreadingTimersDemo.csproj", "{527292DD-1BE3-4E95-A49C-E29216D6234D}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Threding Demo2", "..\Threding Demo2\Threding Demo2.csproj", "{BCDD3037-9193-4881-AC65-E02BED9704D0}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Threading Demo3", "..\ConsoleApp1\Threading Demo3.csproj", "{53EAA6AE-6C72-4F64-B3C0-EC660C4431FC}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Project1", "..\Project1\Project1.csproj", "{26B67F06-5B9B-4B06-BFAA-FCCF9A11D391}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{63873377-E0BA-4D4B-B560-8AD3BDFF7BB2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{63873377-E0BA-4D4B-B560-8AD3BDFF7BB2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{63873377-E0BA-4D4B-B560-8AD3BDFF7BB2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{63873377-E0BA-4D4B-B560-8AD3BDFF7BB2}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{527292DD-1BE3-4E95-A49C-E29216D6234D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{527292DD-1BE3-4E95-A49C-E29216D6234D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{527292DD-1BE3-4E95-A49C-E29216D6234D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{527292DD-1BE3-4E95-A49C-E29216D6234D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BCDD3037-9193-4881-AC65-E02BED9704D0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BCDD3037-9193-4881-AC65-E02BED9704D0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BCDD3037-9193-4881-AC65-E02BED9704D0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BCDD3037-9193-4881-AC65-E02BED9704D0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{53EAA6AE-6C72-4F64-B3C0-EC660C4431FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{53EAA6AE-6C72-4F64-B3C0-EC660C4431FC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{53EAA6AE-6C72-4F64-B3C0-EC660C4431FC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{53EAA6AE-6C72-4F64-B3C0-EC660C4431FC}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{26B67F06-5B9B-4B06-BFAA-FCCF9A11D391}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{26B67F06-5B9B-4B06-BFAA-FCCF9A11D391}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{26B67F06-5B9B-4B06-BFAA-FCCF9A11D391}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{26B67F06-5B9B-4B06-BFAA-FCCF9A11D391}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {F6AD5A92-EBAB-4F5B-AF26-B99E38F52553}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,54 @@
|
||||
<?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>{63873377-E0BA-4D4B-B560-8AD3BDFF7BB2}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>THCCD_Demo</RootNamespace>
|
||||
<AssemblyName>THCCD Demo</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</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>
|
||||
</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>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
Binary file not shown.
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
7f4b213b428f4c013f19137338418ee1f5525793
|
||||
@@ -0,0 +1,7 @@
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\THCCD Demo\bin\Debug\THCCD Demo.exe.config
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\THCCD Demo\bin\Debug\THCCD Demo.exe
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\THCCD Demo\bin\Debug\THCCD Demo.pdb
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\THCCD Demo\obj\Debug\THCCD Demo.csproj.AssemblyReference.cache
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\THCCD Demo\obj\Debug\THCCD Demo.csproj.CoreCompileInputs.cache
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\THCCD Demo\obj\Debug\THCCD Demo.exe
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\THCCD Demo\obj\Debug\THCCD Demo.pdb
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
7f4b213b428f4c013f19137338418ee1f5525793
|
||||
@@ -0,0 +1,7 @@
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\THCCD Demo\bin\Debug\THCCD Demo.exe.config
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\THCCD Demo\bin\Debug\THCCD Demo.exe
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\THCCD Demo\bin\Debug\THCCD Demo.pdb
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\THCCD Demo\obj\Debug\Timer Demo.csproj.CoreCompileInputs.cache
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\THCCD Demo\obj\Debug\THCCD Demo.exe
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\THCCD Demo\obj\Debug\THCCD Demo.pdb
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\THCCD Demo\obj\Debug\Timer Demo.csproj.AssemblyReference.cache
|
||||
Binary file not shown.
Binary file not shown.
+22
@@ -0,0 +1,22 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<CoreCompileDependsOn>$(CoreCompileDependsOn);Kernel</CoreCompileDependsOn>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<AvailableItemName Include="Kernel"/>
|
||||
</ItemGroup>
|
||||
<UsingTask TaskName="OpenCL.Net.Tasks.Kernel" AssemblyFile="..\..\lib\net40\OpenCL.Net.dll" />
|
||||
<Target Name="Kernel" Inputs="@(Kernel)" Outputs="@(Kernel->'$(IntermediateOutputPath)%(FileName).kernel.cs')">
|
||||
<Kernel InputFiles="@(Kernel)" OutputFiles="@(Kernel->'$(IntermediateOutputPath)%(FileName).kernel.cs')">
|
||||
<Output TaskParameter="OutputFiles" ItemName="KernelWrapper"/>
|
||||
</Kernel>
|
||||
</Target>
|
||||
<ItemGroup>
|
||||
<Compile Include="@(Kernel->'$(IntermediateOutputPath)%(FileName).kernel.cs')">
|
||||
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||
</Compile>
|
||||
<Content Include="@(Kernel)">
|
||||
<CopyToOutputDirectory>%(CopyToOutputDirectory)</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
Binary file not shown.
Reference in New Issue
Block a user