Skip to content
Snippets Groups Projects
Commit 38cc93a6 authored by 圣巢一哥's avatar 圣巢一哥
Browse files

First Release

parents
No related branches found
No related tags found
No related merge requests found
Showing
with 444 additions and 0 deletions
{
"CurrentProjectSetting": null
}
\ No newline at end of file
File added
{
"ExpandedNodes": [
""
],
"PreviewInSolutionExplorer": true
}
\ No newline at end of file
File added
512.ico 0 → 100644
512.ico

1.03 MiB

namespace CardControl
{
partial class CardControl
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.tableLayoutPanel1.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
this.label1.Font = new System.Drawing.Font("幼圆", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(3, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(356, 129);
this.label1.TabIndex = 0;
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.label1_MouseClick);
this.label1.MouseEnter += new System.EventHandler(this.label1_MouseEnter);
this.label1.MouseLeave += new System.EventHandler(this.label1_MouseLeave);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Dock = System.Windows.Forms.DockStyle.Fill;
this.label2.Font = new System.Drawing.Font("幼圆", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(3, 129);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(356, 130);
this.label2.TabIndex = 1;
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label2.MouseClick += new System.Windows.Forms.MouseEventHandler(this.label2_MouseClick);
this.label2.MouseEnter += new System.EventHandler(this.label2_MouseEnter);
this.label2.MouseLeave += new System.EventHandler(this.label2_MouseLeave);
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 1;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(362, 259);
this.tableLayoutPanel1.TabIndex = 2;
//
// CardControl
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.ButtonFace;
this.Controls.Add(this.tableLayoutPanel1);
this.Name = "CardControl";
this.Size = new System.Drawing.Size(362, 259);
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
public System.Windows.Forms.Label label1;
public System.Windows.Forms.Label label2;
}
}
using System;
using System.Drawing;
using System.Windows.Forms;
using GameCore;
namespace CardControl
{
public partial class CardControl: UserControl
{
public bool isClicked = false;
public CardControl()
{
InitializeComponent();
}
public void SetCard(Card card)
{
string attribute = card.attribute;
if (attribute == "figure")
{
label1.Text = card.num.ToString();
label2.Text = Core.out_change(card.color);
}
else
{
label1.Text = Core.out_change(attribute);
label2.Text = Core.out_change(card.color);
}
}
private void label1_MouseClick(object sender, MouseEventArgs e)
{
if (isClicked)
{
isClicked = false;
tableLayoutPanel1.BackColor = SystemColors.ButtonFace;
}
else
{
isClicked = true;
tableLayoutPanel1.BackColor = SystemColors.Highlight;
}
}
private void label1_MouseLeave(object sender, EventArgs e)
{
if (!isClicked) tableLayoutPanel1.BackColor = SystemColors.ButtonFace;
else tableLayoutPanel1.BackColor = SystemColors.Highlight;
}
private void label1_MouseEnter(object sender, EventArgs e)
{
if (!isClicked) tableLayoutPanel1.BackColor = Color.Aqua;
else tableLayoutPanel1.BackColor = Color.CornflowerBlue;
}
private void label2_MouseEnter(object sender, EventArgs e)
{
if (!isClicked) tableLayoutPanel1.BackColor = Color.Aqua;
else tableLayoutPanel1.BackColor = Color.CornflowerBlue;
}
private void label2_MouseLeave(object sender, EventArgs e)
{
if (!isClicked) tableLayoutPanel1.BackColor = SystemColors.ButtonFace;
else tableLayoutPanel1.BackColor = SystemColors.Highlight;
}
private void label2_MouseClick(object sender, MouseEventArgs e)
{
if (isClicked)
{
isClicked = false;
tableLayoutPanel1.BackColor = SystemColors.ButtonFace;
}
else
{
isClicked = true;
tableLayoutPanel1.BackColor = SystemColors.Highlight;
}
}
}
}
<?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>{458C1338-2070-4C20-ABA0-9FF899ABACDA}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>CardControl</RootNamespace>
<AssemblyName>CardControl</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<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' ">
<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.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="CardControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="CardControl.Designer.cs">
<DependentUpon>CardControl.cs</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Service Include="{94E38DFF-614B-4cbd-B67C-F211BB35CE8B}" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="CardControl.resx">
<DependentUpon>CardControl.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Core\Core.csproj">
<Project>{04b75c5f-8a54-4d43-bc59-7183ad82c67a}</Project>
<Name>Core</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
<?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>
</root>
\ No newline at end of file
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("CardControl")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CardControl")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("458c1338-2070-4c20-aba0-9ff899abacda")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
File added
File added
File added
File added
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
File added
88154e645fb07980ee7d053553e70de1661022fc
D:\VS Files\UNO++\CardControl\bin\Debug\CardControl.dll
D:\VS Files\UNO++\CardControl\bin\Debug\CardControl.pdb
D:\VS Files\UNO++\CardControl\obj\Debug\CardControl.csprojAssemblyReference.cache
D:\VS Files\UNO++\CardControl\obj\Debug\CardControl.CardControl.resources
D:\VS Files\UNO++\CardControl\obj\Debug\CardControl.csproj.GenerateResource.cache
D:\VS Files\UNO++\CardControl\obj\Debug\CardControl.csproj.CoreCompileInputs.cache
D:\VS Files\UNO++\CardControl\obj\Debug\CardControl.dll
D:\VS Files\UNO++\CardControl\obj\Debug\CardControl.pdb
D:\VS Files\UNO++\CardControl\bin\Debug\Core.dll
D:\VS Files\UNO++\CardControl\bin\Debug\Core.pdb
D:\VS Files\UNO++\CardControl\obj\Debug\CardControl.csproj.CopyComplete
C:\Users\18213\Desktop\UNO++\CardControl\bin\Debug\CardControl.dll
C:\Users\18213\Desktop\UNO++\CardControl\bin\Debug\CardControl.pdb
C:\Users\18213\Desktop\UNO++\CardControl\bin\Debug\Core.dll
C:\Users\18213\Desktop\UNO++\CardControl\bin\Debug\Core.pdb
C:\Users\18213\Desktop\UNO++\CardControl\obj\Debug\CardControl.csprojAssemblyReference.cache
C:\Users\18213\Desktop\UNO++\CardControl\obj\Debug\CardControl.CardControl.resources
C:\Users\18213\Desktop\UNO++\CardControl\obj\Debug\CardControl.csproj.GenerateResource.cache
C:\Users\18213\Desktop\UNO++\CardControl\obj\Debug\CardControl.csproj.CoreCompileInputs.cache
C:\Users\18213\Desktop\UNO++\CardControl\obj\Debug\CardControl.csproj.CopyComplete
C:\Users\18213\Desktop\UNO++\CardControl\obj\Debug\CardControl.dll
C:\Users\18213\Desktop\UNO++\CardControl\obj\Debug\CardControl.pdb
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment