优化项目结构,修复部分问题

This commit is contained in:
czz_y
2024-10-12 15:34:19 +08:00
parent b5425d3177
commit 49f6f7ea52
81 changed files with 1026 additions and 1174 deletions
+89
View File
@@ -0,0 +1,89 @@
namespace AntdUIDemo.Views
{
partial class Demo
{
/// <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.panel1 = new AntdUI.Panel();
this.windowBar = new AntdUI.WindowBar();
this.button_close = new AntdUI.Button();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.Controls.Add(this.button_close);
this.panel1.Controls.Add(this.windowBar);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Shadow = 6;
this.panel1.Size = new System.Drawing.Size(500, 420);
this.panel1.TabIndex = 0;
this.panel1.Text = "panel1";
//
// windowBar
//
this.windowBar.Dock = System.Windows.Forms.DockStyle.Top;
this.windowBar.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.windowBar.Location = new System.Drawing.Point(6, 6);
this.windowBar.MaximizeBox = false;
this.windowBar.MinimizeBox = false;
this.windowBar.Name = "windowBar";
this.windowBar.ShowIcon = false;
this.windowBar.Size = new System.Drawing.Size(488, 32);
this.windowBar.TabIndex = 1;
this.windowBar.Text = "DrawerDemo";
//
// button_close
//
this.button_close.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.button_close.Location = new System.Drawing.Point(9, 44);
this.button_close.Name = "button_close";
this.button_close.Size = new System.Drawing.Size(75, 40);
this.button_close.TabIndex = 2;
this.button_close.Text = "关闭";
this.button_close.Type = AntdUI.TTypeMini.Error;
//
// Demo
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
this.Controls.Add(this.panel1);
this.Name = "Demo";
this.Size = new System.Drawing.Size(500, 420);
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private AntdUI.Panel panel1;
private AntdUI.WindowBar windowBar;
private AntdUI.Button button_close;
}
}
+24
View File
@@ -0,0 +1,24 @@
using System;
using System.Windows.Forms;
namespace AntdUIDemo.Views
{
public partial class Demo : UserControl
{
public Demo()
{
InitializeComponent();
BindEventHandler();
}
private void BindEventHandler()
{
button_close.Click += button_close_Click;
}
private void button_close_Click(object sender, EventArgs e)
{
this.Dispose();
}
}
}
+120
View 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=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>
+376
View File
@@ -0,0 +1,376 @@
namespace AntdUIDemo.Controls
{
partial class SystemSet
{
/// <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()
{
AntdUI.Tabs.StyleLine styleLine1 = new AntdUI.Tabs.StyleLine();
this.tabs = new AntdUI.Tabs();
this.tabPage1 = new AntdUI.TabPage();
this.stackPanel1 = new AntdUI.StackPanel();
this.stackPanel5 = new AntdUI.StackPanel();
this.switch_scrollbar = new AntdUI.Switch();
this.label4 = new AntdUI.Label();
this.stackPanel4 = new AntdUI.StackPanel();
this.switch_shadow = new AntdUI.Switch();
this.label3 = new AntdUI.Label();
this.stackPanel3 = new AntdUI.StackPanel();
this.switch_animation = new AntdUI.Switch();
this.label2 = new AntdUI.Label();
this.stackPanel2 = new AntdUI.StackPanel();
this.select_colormode = new AntdUI.Select();
this.label1 = new AntdUI.Label();
this.tabPage2 = new AntdUI.TabPage();
this.stackPanel6 = new AntdUI.StackPanel();
this.stackPanel8 = new AntdUI.StackPanel();
this.input_offset = new AntdUI.InputNumber();
this.label6 = new AntdUI.Label();
this.stackPanel7 = new AntdUI.StackPanel();
this.switch_showinwindow = new AntdUI.Switch();
this.label5 = new AntdUI.Label();
this.tabs.SuspendLayout();
this.tabPage1.SuspendLayout();
this.stackPanel1.SuspendLayout();
this.stackPanel5.SuspendLayout();
this.stackPanel4.SuspendLayout();
this.stackPanel3.SuspendLayout();
this.stackPanel2.SuspendLayout();
this.tabPage2.SuspendLayout();
this.stackPanel6.SuspendLayout();
this.stackPanel8.SuspendLayout();
this.stackPanel7.SuspendLayout();
this.SuspendLayout();
//
// tabs
//
this.tabs.Alignment = System.Windows.Forms.TabAlignment.Left;
this.tabs.Cursor = System.Windows.Forms.Cursors.Default;
this.tabs.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabs.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
this.tabs.Gap = 12;
this.tabs.Location = new System.Drawing.Point(0, 0);
this.tabs.Margin = new System.Windows.Forms.Padding(6);
this.tabs.Name = "tabs";
this.tabs.Pages.Add(this.tabPage1);
this.tabs.Pages.Add(this.tabPage2);
this.tabs.Size = new System.Drawing.Size(598, 396);
this.tabs.Style = styleLine1;
this.tabs.TabIndex = 0;
this.tabs.Text = "tabs1";
//
// tabPage1
//
this.tabPage1.Controls.Add(this.stackPanel1);
this.tabPage1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage1.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
this.tabPage1.Location = new System.Drawing.Point(90, 6);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Size = new System.Drawing.Size(502, 384);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "基本设置";
//
// stackPanel1
//
this.stackPanel1.Controls.Add(this.stackPanel5);
this.stackPanel1.Controls.Add(this.stackPanel4);
this.stackPanel1.Controls.Add(this.stackPanel3);
this.stackPanel1.Controls.Add(this.stackPanel2);
this.stackPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.stackPanel1.Location = new System.Drawing.Point(0, 0);
this.stackPanel1.Name = "stackPanel1";
this.stackPanel1.Size = new System.Drawing.Size(502, 384);
this.stackPanel1.TabIndex = 1;
this.stackPanel1.Text = "stackPanel1";
this.stackPanel1.Vertical = true;
//
// stackPanel5
//
this.stackPanel5.Controls.Add(this.switch_scrollbar);
this.stackPanel5.Controls.Add(this.label4);
this.stackPanel5.Location = new System.Drawing.Point(3, 117);
this.stackPanel5.Name = "stackPanel5";
this.stackPanel5.Size = new System.Drawing.Size(496, 32);
this.stackPanel5.TabIndex = 3;
this.stackPanel5.Text = "stackPanel5";
//
// switch_scrollbar
//
this.switch_scrollbar.AutoCheck = true;
this.switch_scrollbar.CheckedText = "";
this.switch_scrollbar.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.switch_scrollbar.Location = new System.Drawing.Point(129, 3);
this.switch_scrollbar.Name = "switch_scrollbar";
this.switch_scrollbar.Size = new System.Drawing.Size(60, 26);
this.switch_scrollbar.TabIndex = 1;
this.switch_scrollbar.Text = "switch4";
this.switch_scrollbar.UnCheckedText = "";
this.switch_scrollbar.WaveSize = 0;
//
// label4
//
this.label4.Location = new System.Drawing.Point(3, 3);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(120, 26);
this.label4.TabIndex = 0;
this.label4.Text = "隐藏滚动条";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// stackPanel4
//
this.stackPanel4.Controls.Add(this.switch_shadow);
this.stackPanel4.Controls.Add(this.label3);
this.stackPanel4.Location = new System.Drawing.Point(3, 79);
this.stackPanel4.Name = "stackPanel4";
this.stackPanel4.Size = new System.Drawing.Size(496, 32);
this.stackPanel4.TabIndex = 2;
this.stackPanel4.Text = "stackPanel4";
//
// switch_shadow
//
this.switch_shadow.AutoCheck = true;
this.switch_shadow.Checked = true;
this.switch_shadow.CheckedText = "";
this.switch_shadow.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.switch_shadow.Location = new System.Drawing.Point(129, 3);
this.switch_shadow.Name = "switch_shadow";
this.switch_shadow.Size = new System.Drawing.Size(60, 26);
this.switch_shadow.TabIndex = 1;
this.switch_shadow.Text = "switch3";
this.switch_shadow.UnCheckedText = "";
this.switch_shadow.WaveSize = 0;
//
// label3
//
this.label3.Location = new System.Drawing.Point(3, 3);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(120, 26);
this.label3.TabIndex = 0;
this.label3.Text = "启用阴影";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// stackPanel3
//
this.stackPanel3.Controls.Add(this.switch_animation);
this.stackPanel3.Controls.Add(this.label2);
this.stackPanel3.Location = new System.Drawing.Point(3, 41);
this.stackPanel3.Name = "stackPanel3";
this.stackPanel3.Size = new System.Drawing.Size(496, 32);
this.stackPanel3.TabIndex = 1;
this.stackPanel3.Text = "stackPanel3";
//
// switch_animation
//
this.switch_animation.AutoCheck = true;
this.switch_animation.Checked = true;
this.switch_animation.CheckedText = "";
this.switch_animation.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.switch_animation.Location = new System.Drawing.Point(129, 3);
this.switch_animation.Name = "switch_animation";
this.switch_animation.Size = new System.Drawing.Size(60, 26);
this.switch_animation.TabIndex = 1;
this.switch_animation.Text = "switch2";
this.switch_animation.UnCheckedText = "";
this.switch_animation.WaveSize = 0;
//
// label2
//
this.label2.Location = new System.Drawing.Point(3, 3);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(120, 26);
this.label2.TabIndex = 0;
this.label2.Text = "开启动画";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// stackPanel2
//
this.stackPanel2.Controls.Add(this.select_colormode);
this.stackPanel2.Controls.Add(this.label1);
this.stackPanel2.Location = new System.Drawing.Point(3, 3);
this.stackPanel2.Name = "stackPanel2";
this.stackPanel2.Size = new System.Drawing.Size(496, 32);
this.stackPanel2.TabIndex = 0;
this.stackPanel2.Text = "stackPanel2";
//
// select_colormode
//
this.select_colormode.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.select_colormode.Items.AddRange(new object[] {
"Auto",
"Light",
"Dark"});
this.select_colormode.List = true;
this.select_colormode.Location = new System.Drawing.Point(129, 3);
this.select_colormode.Name = "select_colormode";
this.select_colormode.SelectedIndex = 0;
this.select_colormode.SelectedValue = "Auto";
this.select_colormode.Size = new System.Drawing.Size(65, 26);
this.select_colormode.TabIndex = 2;
this.select_colormode.Text = "Auto";
this.select_colormode.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.select_colormode.WaveSize = 0;
//
// label1
//
this.label1.Location = new System.Drawing.Point(3, 3);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(120, 26);
this.label1.TabIndex = 0;
this.label1.Text = "色彩模式";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// tabPage2
//
this.tabPage2.Controls.Add(this.stackPanel6);
this.tabPage2.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage2.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.tabPage2.Location = new System.Drawing.Point(90, 6);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(502, 384);
this.tabPage2.TabIndex = 0;
this.tabPage2.Text = "消息配置";
//
// stackPanel6
//
this.stackPanel6.Controls.Add(this.stackPanel8);
this.stackPanel6.Controls.Add(this.stackPanel7);
this.stackPanel6.Dock = System.Windows.Forms.DockStyle.Fill;
this.stackPanel6.Location = new System.Drawing.Point(0, 0);
this.stackPanel6.Name = "stackPanel6";
this.stackPanel6.Size = new System.Drawing.Size(502, 384);
this.stackPanel6.TabIndex = 0;
this.stackPanel6.Text = "stackPanel6";
this.stackPanel6.Vertical = true;
//
// stackPanel8
//
this.stackPanel8.Controls.Add(this.input_offset);
this.stackPanel8.Controls.Add(this.label6);
this.stackPanel8.Location = new System.Drawing.Point(3, 41);
this.stackPanel8.Name = "stackPanel8";
this.stackPanel8.Size = new System.Drawing.Size(496, 32);
this.stackPanel8.TabIndex = 5;
this.stackPanel8.Text = "stackPanel8";
//
// input_offset
//
this.input_offset.Location = new System.Drawing.Point(129, 3);
this.input_offset.Name = "input_offset";
this.input_offset.Size = new System.Drawing.Size(60, 26);
this.input_offset.TabIndex = 1;
this.input_offset.Text = "0";
this.input_offset.WaveSize = 0;
//
// label6
//
this.label6.Location = new System.Drawing.Point(3, 3);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(120, 26);
this.label6.TabIndex = 0;
this.label6.Text = "边界偏移量";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// stackPanel7
//
this.stackPanel7.Controls.Add(this.switch_showinwindow);
this.stackPanel7.Controls.Add(this.label5);
this.stackPanel7.Location = new System.Drawing.Point(3, 3);
this.stackPanel7.Name = "stackPanel7";
this.stackPanel7.Size = new System.Drawing.Size(496, 32);
this.stackPanel7.TabIndex = 4;
this.stackPanel7.Text = "stackPanel7";
//
// switch_showinwindow
//
this.switch_showinwindow.AutoCheck = true;
this.switch_showinwindow.CheckedText = "";
this.switch_showinwindow.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.switch_showinwindow.Location = new System.Drawing.Point(129, 3);
this.switch_showinwindow.Name = "switch_showinwindow";
this.switch_showinwindow.Size = new System.Drawing.Size(60, 26);
this.switch_showinwindow.TabIndex = 1;
this.switch_showinwindow.Text = "switch5";
this.switch_showinwindow.UnCheckedText = "";
this.switch_showinwindow.WaveSize = 0;
//
// label5
//
this.label5.Location = new System.Drawing.Point(3, 3);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(120, 26);
this.label5.TabIndex = 0;
this.label5.Text = "窗口内弹出";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// SystemSet
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
this.Controls.Add(this.tabs);
this.Margin = new System.Windows.Forms.Padding(4);
this.Name = "SystemSet";
this.Size = new System.Drawing.Size(598, 396);
this.tabs.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.stackPanel1.ResumeLayout(false);
this.stackPanel5.ResumeLayout(false);
this.stackPanel4.ResumeLayout(false);
this.stackPanel3.ResumeLayout(false);
this.stackPanel2.ResumeLayout(false);
this.tabPage2.ResumeLayout(false);
this.stackPanel6.ResumeLayout(false);
this.stackPanel8.ResumeLayout(false);
this.stackPanel7.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private AntdUI.Tabs tabs;
private AntdUI.TabPage tabPage1;
private AntdUI.TabPage tabPage2;
private AntdUI.StackPanel stackPanel1;
private AntdUI.StackPanel stackPanel5;
private AntdUI.Switch switch_scrollbar;
private AntdUI.Label label4;
private AntdUI.StackPanel stackPanel4;
private AntdUI.Switch switch_shadow;
private AntdUI.Label label3;
private AntdUI.StackPanel stackPanel3;
private AntdUI.Switch switch_animation;
private AntdUI.Label label2;
private AntdUI.StackPanel stackPanel2;
private AntdUI.Label label1;
private AntdUI.StackPanel stackPanel6;
private AntdUI.StackPanel stackPanel7;
private AntdUI.Switch switch_showinwindow;
private AntdUI.Label label5;
private AntdUI.StackPanel stackPanel8;
private AntdUI.Label label6;
private AntdUI.InputNumber input_offset;
private AntdUI.Select select_colormode;
}
}
+126
View File
@@ -0,0 +1,126 @@
using AntdUI;
using AntdUIDemo.Utils;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
using System.IO;
using System.Windows.Forms;
namespace AntdUIDemo.Controls
{
public partial class SystemSet : UserControl
{
private Window Window;
public SystemSet(Window _window)
{
Window = _window;
InitializeComponent();
//设置默认值
InitData();
//绑定事件
BindingEventHandler();
}
private void BindingEventHandler()
{
select_colormode.SelectedIndexChanged += Select_colormode_SelectedIndexChanged;
switch_animation.CheckedChanged += switch_animation_CheckedChanged;
switch_shadow.CheckedChanged += switch_shadow_CheckedChanged;
switch_scrollbar.CheckedChanged += switch_scrollbar_CheckedChanged;
switch_showinwindow.CheckedChanged += switch_showinwindow_CheckedChanged;
input_offset.ValueChanged += Input_offset_ValueChanged;
}
private void InitData()
{
tabs.SelectedIndex = 0;
// 读取 appsettings.json 文件
var configFilePath = "appsettings.json";
var json = File.ReadAllText(configFilePath);
var jsonObj = JObject.Parse(json);
var appSettings = jsonObj["AppSettings"];
// 色彩模式
var colormode = appSettings["ColorMode"]?.ToString();
var modeIndexMapping = new Dictionary<string, int>
{
{ "Dark", 2 },
{ "Light", 1 },
{ "Auto", 0 }
};
select_colormode.SelectedIndex = modeIndexMapping.ContainsKey(colormode)
? modeIndexMapping[colormode]
: 0;
// 开启动画
var animation = appSettings["Animation"]?.ToString();
switch_animation.Checked = animation == "True";
// 启用阴影
var shadow = appSettings["ShadowEnabled"]?.ToString();
switch_shadow.Checked = shadow == "True";
// 隐藏滚动条
var scrollbar = appSettings["ScrollBarHide"]?.ToString();
switch_scrollbar.Checked = scrollbar == "True";
// 消息窗口弹出
var showinwindow = appSettings["ShowInWindow"]?.ToString();
switch_showinwindow.Checked = showinwindow == "True";
// 消息偏移
var offset = appSettings["ShowOffset"]?.ToString();
input_offset.Value = decimal.Parse(offset ?? "0");
}
#region 事件
private void Select_colormode_SelectedIndexChanged(object sender, IntEventArgs e)
{
AppSetting.UpdateAppSetting("ColorMode", select_colormode.SelectedValue.ToString());
if (e.Value == 0)
{
ThemeHelper.SetColorMode(Window, ThemeHelper.IsLightMode());
}
else
{
ThemeHelper.SetColorMode(Window, e.Value == 1);
}
}
private void switch_animation_CheckedChanged(object sender, BoolEventArgs e)
{
AppSetting.UpdateAppSetting("Animation", switch_animation.Checked.ToString());
AntdUI.Config.Animation = e.Value;
}
private void Input_offset_ValueChanged(object sender, DecimalEventArgs e)
{
AppSetting.UpdateAppSetting("ShowOffset", input_offset.Value.ToString());
AntdUI.Config.NoticeWindowOffsetXY = (int)e.Value;
}
private void switch_showinwindow_CheckedChanged(object sender, BoolEventArgs e)
{
AppSetting.UpdateAppSetting("ShowInWindow", e.Value ? "True" : "False");
AntdUI.Config.ShowInWindow = e.Value;
AntdUI.Message.success(Window, "切换成功!", autoClose: 1);
AntdUI.Notification.success(Window, "提示", "切换成功!", autoClose: 1);
}
private void switch_scrollbar_CheckedChanged(object sender, BoolEventArgs e)
{
AppSetting.UpdateAppSetting("ScrollBarHide", e.Value ? "True" : "False");
AntdUI.Config.ScrollBarHide = e.Value;
}
private void switch_shadow_CheckedChanged(object sender, BoolEventArgs e)
{
AppSetting.UpdateAppSetting("ShadowEnabled", e.Value ? "True" : "False");
AntdUI.Config.ShadowEnabled = e.Value;
}
#endregion
}
}
+120
View 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=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>
+203
View File
@@ -0,0 +1,203 @@
namespace AntdUIDemo.Views.Table
{
partial class UserEdit
{
/// <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.panel1 = new AntdUI.Panel();
this.stackPanel1 = new AntdUI.StackPanel();
this.button_ok = new AntdUI.Button();
this.button_cancel = new AntdUI.Button();
this.divider1 = new AntdUI.Divider();
this.input_addr = new AntdUI.Input();
this.label2 = new AntdUI.Label();
this.input_age = new AntdUI.InputNumber();
this.label1 = new AntdUI.Label();
this.input_name = new AntdUI.Input();
this.label3 = new AntdUI.Label();
this.panel1.SuspendLayout();
this.stackPanel1.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.Controls.Add(this.input_addr);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.input_age);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.input_name);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.divider1);
this.panel1.Controls.Add(this.stackPanel1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Padding = new System.Windows.Forms.Padding(12);
this.panel1.Shadow = 6;
this.panel1.Size = new System.Drawing.Size(500, 386);
this.panel1.TabIndex = 0;
this.panel1.Text = "panel1";
//
// stackPanel1
//
this.stackPanel1.Controls.Add(this.button_cancel);
this.stackPanel1.Controls.Add(this.button_ok);
this.stackPanel1.Dock = System.Windows.Forms.DockStyle.Top;
this.stackPanel1.Location = new System.Drawing.Point(18, 18);
this.stackPanel1.Name = "stackPanel1";
this.stackPanel1.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.stackPanel1.Size = new System.Drawing.Size(464, 44);
this.stackPanel1.TabIndex = 3;
this.stackPanel1.Text = "stackPanel1";
//
// button_ok
//
this.button_ok.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button_ok.Location = new System.Drawing.Point(3, 3);
this.button_ok.Name = "button_ok";
this.button_ok.Size = new System.Drawing.Size(75, 38);
this.button_ok.TabIndex = 0;
this.button_ok.Text = "Submit";
this.button_ok.Type = AntdUI.TTypeMini.Primary;
//
// button_cancel
//
this.button_cancel.BorderWidth = 1F;
this.button_cancel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.button_cancel.Ghost = true;
this.button_cancel.Location = new System.Drawing.Point(84, 3);
this.button_cancel.Name = "button_cancel";
this.button_cancel.Size = new System.Drawing.Size(75, 38);
this.button_cancel.TabIndex = 1;
this.button_cancel.Text = "Cancel";
//
// divider1
//
this.divider1.Dock = System.Windows.Forms.DockStyle.Top;
this.divider1.Location = new System.Drawing.Point(18, 62);
this.divider1.Name = "divider1";
this.divider1.Size = new System.Drawing.Size(464, 12);
this.divider1.TabIndex = 14;
//
// input_addr
//
this.input_addr.Dock = System.Windows.Forms.DockStyle.Top;
this.input_addr.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.input_addr.Location = new System.Drawing.Point(18, 222);
this.input_addr.Name = "input_addr";
this.input_addr.Radius = 3;
this.input_addr.Size = new System.Drawing.Size(464, 38);
this.input_addr.TabIndex = 20;
//
// label2
//
this.label2.Dock = System.Windows.Forms.DockStyle.Top;
this.label2.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(18, 198);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(464, 24);
this.label2.TabIndex = 19;
this.label2.Text = "地址";
//
// input_age
//
this.input_age.Dock = System.Windows.Forms.DockStyle.Top;
this.input_age.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.input_age.Location = new System.Drawing.Point(18, 160);
this.input_age.Maximum = new decimal(new int[] {
200,
0,
0,
0});
this.input_age.Minimum = new decimal(new int[] {
0,
0,
0,
0});
this.input_age.Name = "input_age";
this.input_age.Radius = 3;
this.input_age.Size = new System.Drawing.Size(464, 38);
this.input_age.TabIndex = 18;
this.input_age.Text = "0";
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Top;
this.label1.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(18, 136);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(464, 24);
this.label1.TabIndex = 17;
this.label1.Text = "年龄";
//
// input_name
//
this.input_name.Dock = System.Windows.Forms.DockStyle.Top;
this.input_name.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.input_name.Location = new System.Drawing.Point(18, 98);
this.input_name.Name = "input_name";
this.input_name.Radius = 3;
this.input_name.Size = new System.Drawing.Size(464, 38);
this.input_name.TabIndex = 16;
//
// label3
//
this.label3.Dock = System.Windows.Forms.DockStyle.Top;
this.label3.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(18, 74);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(464, 24);
this.label3.TabIndex = 15;
this.label3.Text = "姓名";
//
// UserEdit
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
this.Controls.Add(this.panel1);
this.Name = "UserEdit";
this.Size = new System.Drawing.Size(500, 386);
this.panel1.ResumeLayout(false);
this.stackPanel1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private AntdUI.Panel panel1;
private AntdUI.StackPanel stackPanel1;
private AntdUI.Button button_cancel;
private AntdUI.Button button_ok;
private AntdUI.Divider divider1;
private AntdUI.Input input_addr;
private AntdUI.Label label2;
private AntdUI.InputNumber input_age;
private AntdUI.Label label1;
private AntdUI.Input input_name;
private AntdUI.Label label3;
}
}
+59
View File
@@ -0,0 +1,59 @@
using AntdUIDemo.Models;
using System;
using System.Windows.Forms;
namespace AntdUIDemo.Views.Table
{
public partial class UserEdit : UserControl
{
private AntdUI.Window window;
private User user;
public bool submit;
public UserEdit(AntdUI.Window _window, User _user)
{
this.window = _window;
user = _user;
InitializeComponent();
//设置默认值
InitData();
// 绑定事件
BindEventHandler();
}
private void BindEventHandler()
{
button_ok.Click += Button_ok_Click;
button_cancel.Click += Button_cancel_Click;
}
private void Button_cancel_Click(object sender, EventArgs e)
{
submit = false;
this.Dispose();
}
private void Button_ok_Click(object sender, EventArgs e)
{
input_name.Status = AntdUI.TType.None;
//检查输入内容
if (String.IsNullOrEmpty(input_name.Text))
{
input_name.Status = AntdUI.TType.Error;
AntdUI.Message.warn(window, "姓名不能为空!", autoClose: 3);
return;
}
user.Name = input_name.Text;
user.Address = input_addr.Text;
user.Age = (int)input_age.Value;
submit = true;
this.Dispose();
}
private void InitData()
{
input_name.Text = user.Name;
input_addr.Text = user.Address;
input_age.Value = user.Age;
}
}
}
+120
View 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=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>
+61
View File
@@ -0,0 +1,61 @@
namespace AntdUIDemo.Views.SubView
{
partial class Wellcome
{
/// <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 AntdUI.Label();
this.SuspendLayout();
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
this.label1.Font = new System.Drawing.Font("Microsoft YaHei UI", 20F);
this.label1.Location = new System.Drawing.Point(0, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(750, 150);
this.label1.TabIndex = 0;
this.label1.Text = "欢迎使用 AntdUI Demo";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label1.TooltipConfig = null;
//
// Wellcome
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.label1);
this.Name = "Wellcome";
this.Size = new System.Drawing.Size(750, 150);
this.ResumeLayout(false);
}
#endregion
private AntdUI.Label label1;
}
}
+12
View File
@@ -0,0 +1,12 @@
using System.Windows.Forms;
namespace AntdUIDemo.Views.SubView
{
public partial class Wellcome : UserControl
{
public Wellcome()
{
InitializeComponent();
}
}
}
+120
View 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=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>