support for .NET framework 3.5

Still have bugs
This commit is contained in:
NaBian committed 2019-01-21 00:43:10 +08:00
1 parent 5878039e21
commit 7d6b491f25
704 files changed
+48273 -33

No files matched your search

@@ -0,0 +1,13 @@
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("HandyControl")]
[assembly: AssemblyDescription("Contains some commonly used simple WPF controls")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("HandyControl")]
[assembly: AssemblyCopyright("Copyright © NaBian 2018-2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("1.5.2.*")]
+324
View File
@@ -0,0 +1,324 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace HandyControl.Properties.Langs {
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()]
public class Lang {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Lang() {
}
/// <summary>
/// 返回此类使用的缓存的 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("HandyControl.Properties.Langs.Lang", typeof(Lang).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// 重写当前线程的 CurrentUICulture 属性
/// 重写当前线程的 CurrentUICulture 属性。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// 查找类似 上午 的本地化字符串。
/// </summary>
public static string Am {
get {
return ResourceManager.GetString("Am", resourceCulture);
}
}
/// <summary>
/// 查找类似 取消 的本地化字符串。
/// </summary>
public static string Cancel {
get {
return ResourceManager.GetString("Cancel", resourceCulture);
}
}
/// <summary>
/// 查找类似 无法自注册复合命令 的本地化字符串。
/// </summary>
public static string CannotRegisterCompositeCommandInItself {
get {
return ResourceManager.GetString("CannotRegisterCompositeCommandInItself", resourceCulture);
}
}
/// <summary>
/// 查找类似 不能注册同一命令两次 的本地化字符串。
/// </summary>
public static string CannotRegisterSameCommandTwice {
get {
return ResourceManager.GetString("CannotRegisterSameCommandTwice", resourceCulture);
}
}
/// <summary>
/// 查找类似 清空 的本地化字符串。
/// </summary>
public static string Clear {
get {
return ResourceManager.GetString("Clear", resourceCulture);
}
}
/// <summary>
/// 查找类似 关闭 的本地化字符串。
/// </summary>
public static string Close {
get {
return ResourceManager.GetString("Close", resourceCulture);
}
}
/// <summary>
/// 查找类似 关闭所有 的本地化字符串。
/// </summary>
public static string CloseAll {
get {
return ResourceManager.GetString("CloseAll", resourceCulture);
}
}
/// <summary>
/// 查找类似 关闭其他 的本地化字符串。
/// </summary>
public static string CloseOther {
get {
return ResourceManager.GetString("CloseOther", resourceCulture);
}
}
/// <summary>
/// 查找类似 确定 的本地化字符串。
/// </summary>
public static string Confirm {
get {
return ResourceManager.GetString("Confirm", resourceCulture);
}
}
/// <summary>
/// 查找类似 错误的图片路径! 的本地化字符串。
/// </summary>
public static string ErrorImgPath {
get {
return ResourceManager.GetString("ErrorImgPath", resourceCulture);
}
}
/// <summary>
/// 查找类似 非法的图片尺寸! 的本地化字符串。
/// </summary>
public static string ErrorImgSize {
get {
return ResourceManager.GetString("ErrorImgSize", resourceCulture);
}
}
/// <summary>
/// 查找类似 格式错误 的本地化字符串。
/// </summary>
public static string FormatError {
get {
return ResourceManager.GetString("FormatError", resourceCulture);
}
}
/// <summary>
/// 查找类似 间隔10分钟 的本地化字符串。
/// </summary>
public static string Interval10m {
get {
return ResourceManager.GetString("Interval10m", resourceCulture);
}
}
/// <summary>
/// 查找类似 间隔1小时 的本地化字符串。
/// </summary>
public static string Interval1h {
get {
return ResourceManager.GetString("Interval1h", resourceCulture);
}
}
/// <summary>
/// 查找类似 间隔1分钟 的本地化字符串。
/// </summary>
public static string Interval1m {
get {
return ResourceManager.GetString("Interval1m", resourceCulture);
}
}
/// <summary>
/// 查找类似 间隔2小时 的本地化字符串。
/// </summary>
public static string Interval2h {
get {
return ResourceManager.GetString("Interval2h", resourceCulture);
}
}
/// <summary>
/// 查找类似 间隔30分钟 的本地化字符串。
/// </summary>
public static string Interval30m {
get {
return ResourceManager.GetString("Interval30m", resourceCulture);
}
}
/// <summary>
/// 查找类似 间隔30秒 的本地化字符串。
/// </summary>
public static string Interval30s {
get {
return ResourceManager.GetString("Interval30s", resourceCulture);
}
}
/// <summary>
/// 查找类似 间隔5分钟 的本地化字符串。
/// </summary>
public static string Interval5m {
get {
return ResourceManager.GetString("Interval5m", resourceCulture);
}
}
/// <summary>
/// 查找类似 不能为空 的本地化字符串。
/// </summary>
public static string IsNecessary {
get {
return ResourceManager.GetString("IsNecessary", resourceCulture);
}
}
/// <summary>
/// 查找类似 否 的本地化字符串。
/// </summary>
public static string No {
get {
return ResourceManager.GetString("No", resourceCulture);
}
}
/// <summary>
/// 查找类似 不在范围内 的本地化字符串。
/// </summary>
public static string OutOfRange {
get {
return ResourceManager.GetString("OutOfRange", resourceCulture);
}
}
/// <summary>
/// 查找类似 下午 的本地化字符串。
/// </summary>
public static string Pm {
get {
return ResourceManager.GetString("Pm", resourceCulture);
}
}
/// <summary>
/// 查找类似 PNG图片 的本地化字符串。
/// </summary>
public static string PngImg {
get {
return ResourceManager.GetString("PngImg", resourceCulture);
}
}
/// <summary>
/// 查找类似 提示 的本地化字符串。
/// </summary>
public static string Tip {
get {
return ResourceManager.GetString("Tip", resourceCulture);
}
}
/// <summary>
/// 查找类似 过大 的本地化字符串。
/// </summary>
public static string TooLarge {
get {
return ResourceManager.GetString("TooLarge", resourceCulture);
}
}
/// <summary>
/// 查找类似 未知 的本地化字符串。
/// </summary>
public static string Unknown {
get {
return ResourceManager.GetString("Unknown", resourceCulture);
}
}
/// <summary>
/// 查找类似 未知大小 的本地化字符串。
/// </summary>
public static string UnknownSize {
get {
return ResourceManager.GetString("UnknownSize", resourceCulture);
}
}
/// <summary>
/// 查找类似 是 的本地化字符串。
/// </summary>
public static string Yes {
get {
return ResourceManager.GetString("Yes", resourceCulture);
}
}
}
}
Whitespace-only changes.
@@ -0,0 +1,206 @@
<?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>
<data name="Confirm" xml:space="preserve">
<value>Confirm</value>
</data>
<data name="Cancel" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="PngImg" xml:space="preserve">
<value>PNG image</value>
</data>
<data name="ErrorImgPath" xml:space="preserve">
<value>Wrong picture path</value>
</data>
<data name="ErrorImgSize" xml:space="preserve">
<value>Wrong picture size</value>
</data>
<data name="UnknownSize" xml:space="preserve">
<value>Unknown size</value>
</data>
<data name="TooLarge" xml:space="preserve">
<value>Too large</value>
</data>
<data name="Unknown" xml:space="preserve">
<value>Unknown</value>
</data>
<data name="Interval30s" xml:space="preserve">
<value>30 seconds interval</value>
</data>
<data name="Interval1m" xml:space="preserve">
<value>1 minute interval</value>
</data>
<data name="Interval5m" xml:space="preserve">
<value>5 minutes interval</value>
</data>
<data name="Interval10m" xml:space="preserve">
<value>10 minutes interval</value>
</data>
<data name="Interval30m" xml:space="preserve">
<value>30 minutes interval</value>
</data>
<data name="Interval1h" xml:space="preserve">
<value>1 hour interval</value>
</data>
<data name="Interval2h" xml:space="preserve">
<value>2 hour interval</value>
</data>
<data name="Clear" xml:space="preserve">
<value>Clear</value>
</data>
<data name="Close" xml:space="preserve">
<value>Close</value>
</data>
<data name="CloseAll" xml:space="preserve">
<value>Close all</value>
</data>
<data name="CloseOther" xml:space="preserve">
<value>Close other</value>
</data>
<data name="Am" xml:space="preserve">
<value>Am</value>
</data>
<data name="Pm" xml:space="preserve">
<value>Pm</value>
</data>
<data name="Tip" xml:space="preserve">
<value>Prompt</value>
</data>
<data name="IsNecessary" xml:space="preserve">
<value>cannot be empty</value>
</data>
<data name="OutOfRange" xml:space="preserve">
<value>out of range</value>
</data>
<data name="FormatError" xml:space="preserve">
<value>format error</value>
</data>
<data name="CannotRegisterCompositeCommandInItself" xml:space="preserve">
<value>Cannot Register Composite Command In It self</value>
</data>
<data name="CannotRegisterSameCommandTwice" xml:space="preserve">
<value>Cannot Register Same Command Twice</value>
</data>
<data name="Yes" xml:space="preserve">
<value>Yes</value>
</data>
<data name="No" xml:space="preserve">
<value>No</value>
</data>
</root>
@@ -0,0 +1,187 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 1.3
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">1.3</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1">this is my long string</data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
[base64 mime encoded serialized .NET Framework object]
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
[base64 mime encoded string representing a byte array form of the .NET Framework object]
</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="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>1.3</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Confirm" xml:space="preserve">
<value>确定</value>
</data>
<data name="Cancel" xml:space="preserve">
<value>取消</value>
</data>
<data name="PngImg" xml:space="preserve">
<value>PNG图片</value>
</data>
<data name="ErrorImgPath" xml:space="preserve">
<value>错误的图片路径!</value>
</data>
<data name="ErrorImgSize" xml:space="preserve">
<value>非法的图片尺寸!</value>
</data>
<data name="UnknownSize" xml:space="preserve">
<value>未知大小</value>
</data>
<data name="TooLarge" xml:space="preserve">
<value>过大</value>
</data>
<data name="Unknown" xml:space="preserve">
<value>未知</value>
</data>
<data name="Interval30s" xml:space="preserve">
<value>间隔30秒</value>
</data>
<data name="Interval1m" xml:space="preserve">
<value>间隔1分钟</value>
</data>
<data name="Interval5m" xml:space="preserve">
<value>间隔5分钟</value>
</data>
<data name="Interval10m" xml:space="preserve">
<value>间隔10分钟</value>
</data>
<data name="Interval30m" xml:space="preserve">
<value>间隔30分钟</value>
</data>
<data name="Interval1h" xml:space="preserve">
<value>间隔1小时</value>
</data>
<data name="Interval2h" xml:space="preserve">
<value>间隔2小时</value>
</data>
<data name="Clear" xml:space="preserve">
<value>清空</value>
</data>
<data name="Close" xml:space="preserve">
<value>关闭</value>
</data>
<data name="CloseAll" xml:space="preserve">
<value>关闭所有</value>
</data>
<data name="CloseOther" xml:space="preserve">
<value>关闭其他</value>
</data>
<data name="Am" xml:space="preserve">
<value>上午</value>
</data>
<data name="Pm" xml:space="preserve">
<value>下午</value>
</data>
<data name="Tip" xml:space="preserve">
<value>提示</value>
</data>
<data name="IsNecessary" xml:space="preserve">
<value>不能为空</value>
</data>
<data name="OutOfRange" xml:space="preserve">
<value>不在范围内</value>
</data>
<data name="FormatError" xml:space="preserve">
<value>格式错误</value>
</data>
<data name="CannotRegisterCompositeCommandInItself" xml:space="preserve">
<value>无法自注册复合命令</value>
</data>
<data name="CannotRegisterSameCommandTwice" xml:space="preserve">
<value>不能注册同一命令两次</value>
</data>
<data name="Yes" xml:space="preserve">
<value>是</value>
</data>
<data name="No" xml:space="preserve">
<value>否</value>
</data>
</root>