Numpad User Control and Login Changes
This commit is contained in:
242
Tanshu.Common.KeyboardControl/NumpadControl.Designer.cs
generated
Normal file
242
Tanshu.Common.KeyboardControl/NumpadControl.Designer.cs
generated
Normal file
@ -0,0 +1,242 @@
|
||||
namespace Tanshu.Common.KeyboardControl
|
||||
{
|
||||
partial class NumpadControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Component Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.btn7 = new UnselectableButton();
|
||||
this.btn5 = new UnselectableButton();
|
||||
this.btn4 = new UnselectableButton();
|
||||
this.btn6 = new UnselectableButton();
|
||||
this.btn2 = new UnselectableButton();
|
||||
this.btn1 = new UnselectableButton();
|
||||
this.btn3 = new UnselectableButton();
|
||||
this.btn0 = new UnselectableButton();
|
||||
this.btnOk = new UnselectableButton();
|
||||
this.btnDot = new UnselectableButton();
|
||||
this.btnDel = new UnselectableButton();
|
||||
this.btn8 = new UnselectableButton();
|
||||
this.btn9 = new UnselectableButton();
|
||||
this.btnEsc = new UnselectableButton();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btn7
|
||||
//
|
||||
this.btn7.Location = new System.Drawing.Point(3, 3);
|
||||
this.btn7.Name = "btn7";
|
||||
this.btn7.Size = new System.Drawing.Size(50, 50);
|
||||
this.btn7.TabIndex = 0;
|
||||
this.btn7.TabStop = false;
|
||||
this.btn7.Text = "7";
|
||||
this.btn7.UseVisualStyleBackColor = true;
|
||||
this.btn7.Click += new System.EventHandler(this.btn7_Click);
|
||||
//
|
||||
// btn5
|
||||
//
|
||||
this.btn5.Location = new System.Drawing.Point(59, 59);
|
||||
this.btn5.Name = "btn5";
|
||||
this.btn5.Size = new System.Drawing.Size(50, 50);
|
||||
this.btn5.TabIndex = 1;
|
||||
this.btn5.TabStop = false;
|
||||
this.btn5.Text = "5";
|
||||
this.btn5.UseVisualStyleBackColor = true;
|
||||
this.btn5.Click += new System.EventHandler(this.btn5_Click);
|
||||
//
|
||||
// btn4
|
||||
//
|
||||
this.btn4.Location = new System.Drawing.Point(3, 59);
|
||||
this.btn4.Name = "btn4";
|
||||
this.btn4.Size = new System.Drawing.Size(50, 50);
|
||||
this.btn4.TabIndex = 2;
|
||||
this.btn4.TabStop = false;
|
||||
this.btn4.Text = "4";
|
||||
this.btn4.UseVisualStyleBackColor = true;
|
||||
this.btn4.Click += new System.EventHandler(this.btn4_Click);
|
||||
//
|
||||
// btn6
|
||||
//
|
||||
this.btn6.Location = new System.Drawing.Point(115, 59);
|
||||
this.btn6.Name = "btn6";
|
||||
this.btn6.Size = new System.Drawing.Size(50, 50);
|
||||
this.btn6.TabIndex = 3;
|
||||
this.btn6.TabStop = false;
|
||||
this.btn6.Text = "6";
|
||||
this.btn6.UseVisualStyleBackColor = true;
|
||||
this.btn6.Click += new System.EventHandler(this.btn6_Click);
|
||||
//
|
||||
// btn2
|
||||
//
|
||||
this.btn2.Location = new System.Drawing.Point(59, 115);
|
||||
this.btn2.Name = "btn2";
|
||||
this.btn2.Size = new System.Drawing.Size(50, 50);
|
||||
this.btn2.TabIndex = 4;
|
||||
this.btn2.TabStop = false;
|
||||
this.btn2.Text = "2";
|
||||
this.btn2.UseVisualStyleBackColor = true;
|
||||
this.btn2.Click += new System.EventHandler(this.btn2_Click);
|
||||
//
|
||||
// btn1
|
||||
//
|
||||
this.btn1.Location = new System.Drawing.Point(3, 115);
|
||||
this.btn1.Name = "btn1";
|
||||
this.btn1.Size = new System.Drawing.Size(50, 50);
|
||||
this.btn1.TabIndex = 5;
|
||||
this.btn1.TabStop = false;
|
||||
this.btn1.Text = "1";
|
||||
this.btn1.UseVisualStyleBackColor = true;
|
||||
this.btn1.Click += new System.EventHandler(this.btn1_Click);
|
||||
//
|
||||
// btn3
|
||||
//
|
||||
this.btn3.Location = new System.Drawing.Point(115, 115);
|
||||
this.btn3.Name = "btn3";
|
||||
this.btn3.Size = new System.Drawing.Size(50, 50);
|
||||
this.btn3.TabIndex = 6;
|
||||
this.btn3.TabStop = false;
|
||||
this.btn3.Text = "3";
|
||||
this.btn3.UseVisualStyleBackColor = true;
|
||||
this.btn3.Click += new System.EventHandler(this.btn3_Click);
|
||||
//
|
||||
// btn0
|
||||
//
|
||||
this.btn0.Location = new System.Drawing.Point(3, 171);
|
||||
this.btn0.Name = "btn0";
|
||||
this.btn0.Size = new System.Drawing.Size(106, 50);
|
||||
this.btn0.TabIndex = 7;
|
||||
this.btn0.TabStop = false;
|
||||
this.btn0.Text = "0";
|
||||
this.btn0.UseVisualStyleBackColor = true;
|
||||
this.btn0.Click += new System.EventHandler(this.btn0_Click);
|
||||
//
|
||||
// btnOk
|
||||
//
|
||||
this.btnOk.Location = new System.Drawing.Point(171, 115);
|
||||
this.btnOk.Name = "btnOk";
|
||||
this.btnOk.Size = new System.Drawing.Size(50, 106);
|
||||
this.btnOk.TabIndex = 8;
|
||||
this.btnOk.TabStop = false;
|
||||
this.btnOk.Text = "OK";
|
||||
this.btnOk.UseVisualStyleBackColor = true;
|
||||
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
|
||||
//
|
||||
// btnDot
|
||||
//
|
||||
this.btnDot.Location = new System.Drawing.Point(115, 171);
|
||||
this.btnDot.Name = "btnDot";
|
||||
this.btnDot.Size = new System.Drawing.Size(50, 50);
|
||||
this.btnDot.TabIndex = 9;
|
||||
this.btnDot.TabStop = false;
|
||||
this.btnDot.Text = ".";
|
||||
this.btnDot.UseVisualStyleBackColor = true;
|
||||
this.btnDot.Click += new System.EventHandler(this.btnDot_Click);
|
||||
//
|
||||
// btnDel
|
||||
//
|
||||
this.btnDel.Location = new System.Drawing.Point(171, 59);
|
||||
this.btnDel.Name = "btnDel";
|
||||
this.btnDel.Size = new System.Drawing.Size(50, 50);
|
||||
this.btnDel.TabIndex = 10;
|
||||
this.btnDel.TabStop = false;
|
||||
this.btnDel.Text = "Del";
|
||||
this.btnDel.UseVisualStyleBackColor = true;
|
||||
this.btnDel.Click += new System.EventHandler(this.btnDel_Click);
|
||||
//
|
||||
// btn8
|
||||
//
|
||||
this.btn8.Location = new System.Drawing.Point(59, 3);
|
||||
this.btn8.Name = "btn8";
|
||||
this.btn8.Size = new System.Drawing.Size(50, 50);
|
||||
this.btn8.TabIndex = 11;
|
||||
this.btn8.TabStop = false;
|
||||
this.btn8.Text = "8";
|
||||
this.btn8.UseVisualStyleBackColor = true;
|
||||
this.btn8.Click += new System.EventHandler(this.btn8_Click);
|
||||
//
|
||||
// btn9
|
||||
//
|
||||
this.btn9.Location = new System.Drawing.Point(115, 3);
|
||||
this.btn9.Name = "btn9";
|
||||
this.btn9.Size = new System.Drawing.Size(50, 50);
|
||||
this.btn9.TabIndex = 12;
|
||||
this.btn9.TabStop = false;
|
||||
this.btn9.Text = "9";
|
||||
this.btn9.UseVisualStyleBackColor = true;
|
||||
this.btn9.Click += new System.EventHandler(this.btn9_Click);
|
||||
//
|
||||
// btnEsc
|
||||
//
|
||||
this.btnEsc.Location = new System.Drawing.Point(171, 3);
|
||||
this.btnEsc.Name = "btnEsc";
|
||||
this.btnEsc.Size = new System.Drawing.Size(50, 50);
|
||||
this.btnEsc.TabIndex = 13;
|
||||
this.btnEsc.TabStop = false;
|
||||
this.btnEsc.Text = "Esc";
|
||||
this.btnEsc.UseVisualStyleBackColor = true;
|
||||
this.btnEsc.Click += new System.EventHandler(this.btnEsc_Click);
|
||||
//
|
||||
// NumpadControl
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.btnEsc);
|
||||
this.Controls.Add(this.btn9);
|
||||
this.Controls.Add(this.btn8);
|
||||
this.Controls.Add(this.btnDel);
|
||||
this.Controls.Add(this.btnDot);
|
||||
this.Controls.Add(this.btnOk);
|
||||
this.Controls.Add(this.btn0);
|
||||
this.Controls.Add(this.btn3);
|
||||
this.Controls.Add(this.btn1);
|
||||
this.Controls.Add(this.btn2);
|
||||
this.Controls.Add(this.btn6);
|
||||
this.Controls.Add(this.btn4);
|
||||
this.Controls.Add(this.btn5);
|
||||
this.Controls.Add(this.btn7);
|
||||
this.Name = "NumpadControl";
|
||||
this.Size = new System.Drawing.Size(224, 224);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private UnselectableButton btn7;
|
||||
private UnselectableButton btn5;
|
||||
private UnselectableButton btn4;
|
||||
private UnselectableButton btn6;
|
||||
private UnselectableButton btn2;
|
||||
private UnselectableButton btn1;
|
||||
private UnselectableButton btn3;
|
||||
private UnselectableButton btn0;
|
||||
private UnselectableButton btnOk;
|
||||
private UnselectableButton btnDot;
|
||||
private UnselectableButton btnDel;
|
||||
private UnselectableButton btn8;
|
||||
private UnselectableButton btn9;
|
||||
private UnselectableButton btnEsc;
|
||||
}
|
||||
}
|
||||
89
Tanshu.Common.KeyboardControl/NumpadControl.cs
Normal file
89
Tanshu.Common.KeyboardControl/NumpadControl.cs
Normal file
@ -0,0 +1,89 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Tanshu.Common.KeyboardControl
|
||||
{
|
||||
public partial class NumpadControl : UserControl
|
||||
{
|
||||
public NumpadControl()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btn1_Click(object sender, EventArgs e)
|
||||
{
|
||||
SendKeys.Send("1");
|
||||
}
|
||||
|
||||
private void btn2_Click(object sender, EventArgs e)
|
||||
{
|
||||
SendKeys.Send("2");
|
||||
}
|
||||
|
||||
private void btn3_Click(object sender, EventArgs e)
|
||||
{
|
||||
SendKeys.Send("3");
|
||||
}
|
||||
|
||||
private void btn4_Click(object sender, EventArgs e)
|
||||
{
|
||||
SendKeys.Send("4");
|
||||
}
|
||||
|
||||
private void btn5_Click(object sender, EventArgs e)
|
||||
{
|
||||
SendKeys.Send("5");
|
||||
}
|
||||
|
||||
private void btn6_Click(object sender, EventArgs e)
|
||||
{
|
||||
SendKeys.Send("6");
|
||||
}
|
||||
|
||||
private void btn7_Click(object sender, EventArgs e)
|
||||
{
|
||||
SendKeys.Send("7");
|
||||
}
|
||||
|
||||
private void btn8_Click(object sender, EventArgs e)
|
||||
{
|
||||
SendKeys.Send("8");
|
||||
}
|
||||
|
||||
private void btn9_Click(object sender, EventArgs e)
|
||||
{
|
||||
SendKeys.Send("9");
|
||||
}
|
||||
|
||||
private void btn0_Click(object sender, EventArgs e)
|
||||
{
|
||||
SendKeys.Send("0");
|
||||
}
|
||||
|
||||
private void btnDot_Click(object sender, EventArgs e)
|
||||
{
|
||||
SendKeys.Send(".");
|
||||
}
|
||||
|
||||
private void btnOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
SendKeys.Send("{ENTER}");
|
||||
}
|
||||
|
||||
private void btnDel_Click(object sender, EventArgs e)
|
||||
{
|
||||
SendKeys.Send("{BACKSPACE}");
|
||||
}
|
||||
|
||||
private void btnEsc_Click(object sender, EventArgs e)
|
||||
{
|
||||
SendKeys.Send("{ESC}");
|
||||
}
|
||||
}
|
||||
}
|
||||
120
Tanshu.Common.KeyboardControl/NumpadControl.resx
Normal file
120
Tanshu.Common.KeyboardControl/NumpadControl.resx
Normal file
@ -0,0 +1,120 @@
|
||||
<?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=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>
|
||||
36
Tanshu.Common.KeyboardControl/Properties/AssemblyInfo.cs
Normal file
36
Tanshu.Common.KeyboardControl/Properties/AssemblyInfo.cs
Normal file
@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Tanshu.Common.KeyboardControl")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Microsoft")]
|
||||
[assembly: AssemblyProduct("Tanshu.Common.KeyboardControl")]
|
||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("edbf868e-779b-4243-8cb9-150384a94bcc")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@ -0,0 +1,78 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{4847FEE9-90E1-4795-A644-32867887A653}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Tanshu.Common.KeyboardControl</RootNamespace>
|
||||
<AssemblyName>Tanshu.Common.KeyboardControl</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\Bin\</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\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.DataSetExtensions">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="NumpadControl.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="NumpadControl.Designer.cs">
|
||||
<DependentUpon>NumpadControl.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="UnselectableButton.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UnselectableButton.Designer.cs">
|
||||
<DependentUpon>UnselectableButton.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Service Include="{94E38DFF-614B-4cbd-B67C-F211BB35CE8B}" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="NumpadControl.resx">
|
||||
<DependentUpon>NumpadControl.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@ -0,0 +1,5 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
36
Tanshu.Common.KeyboardControl/UnselectableButton.Designer.cs
generated
Normal file
36
Tanshu.Common.KeyboardControl/UnselectableButton.Designer.cs
generated
Normal file
@ -0,0 +1,36 @@
|
||||
namespace Tanshu.Common.KeyboardControl
|
||||
{
|
||||
partial class UnselectableButton
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Component Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
components = new System.ComponentModel.Container();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
18
Tanshu.Common.KeyboardControl/UnselectableButton.cs
Normal file
18
Tanshu.Common.KeyboardControl/UnselectableButton.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Tanshu.Common.KeyboardControl
|
||||
{
|
||||
public partial class UnselectableButton : Button
|
||||
{
|
||||
public UnselectableButton()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.SetStyle(ControlStyles.Selectable, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user