* 修改内置部分窗体不显示Icon

This commit is contained in:
Sunny 2024-04-29 17:30:33 +08:00
parent 87e2f61218
commit 216beb4c59
12 changed files with 415 additions and 222 deletions

View File

@ -55,7 +55,6 @@ namespace Sunny.UI
if (AutoScaleMode == AutoScaleMode.Font) AutoScaleMode = AutoScaleMode.None; if (AutoScaleMode == AutoScaleMode.Font) AutoScaleMode = AutoScaleMode.None;
if (base.BackColor == SystemColors.Control) base.BackColor = UIStyles.Blue.PageBackColor; if (base.BackColor == SystemColors.Control) base.BackColor = UIStyles.Blue.PageBackColor;
SetPadding();
Render(); Render();
CalcSystemBoxPos(); CalcSystemBoxPos();

View File

@ -28,80 +28,83 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.pnlBtm = new Sunny.UI.UIPanel(); pnlBtm = new UIPanel();
this.btnCancel = new Sunny.UI.UISymbolButton(); btnCancel = new UISymbolButton();
this.btnOK = new Sunny.UI.UISymbolButton(); btnOK = new UISymbolButton();
this.pnlBtm.SuspendLayout(); pnlBtm.SuspendLayout();
this.SuspendLayout(); SuspendLayout();
// //
// pnlBtm // pnlBtm
// //
this.pnlBtm.BackColor = System.Drawing.Color.Transparent; pnlBtm.BackColor = System.Drawing.Color.Transparent;
this.pnlBtm.Controls.Add(this.btnCancel); pnlBtm.Controls.Add(btnCancel);
this.pnlBtm.Controls.Add(this.btnOK); pnlBtm.Controls.Add(btnOK);
this.pnlBtm.Dock = System.Windows.Forms.DockStyle.Bottom; pnlBtm.Dock = System.Windows.Forms.DockStyle.Bottom;
this.pnlBtm.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); pnlBtm.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.pnlBtm.Location = new System.Drawing.Point(1, 392); pnlBtm.Location = new System.Drawing.Point(1, 392);
this.pnlBtm.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); pnlBtm.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.pnlBtm.MinimumSize = new System.Drawing.Size(1, 1); pnlBtm.MinimumSize = new System.Drawing.Size(1, 1);
this.pnlBtm.Name = "pnlBtm"; pnlBtm.Name = "pnlBtm";
this.pnlBtm.RadiusSides = Sunny.UI.UICornerRadiusSides.None; pnlBtm.RadiusSides = UICornerRadiusSides.None;
this.pnlBtm.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Top; pnlBtm.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Top;
this.pnlBtm.Size = new System.Drawing.Size(598, 55); pnlBtm.Size = new System.Drawing.Size(598, 55);
this.pnlBtm.TabIndex = 1; pnlBtm.TabIndex = 1;
this.pnlBtm.Text = null; pnlBtm.Text = null;
this.pnlBtm.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; pnlBtm.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
// //
// btnCancel // btnCancel
// //
this.btnCancel.BackColor = System.Drawing.Color.Transparent; btnCancel.BackColor = System.Drawing.Color.Transparent;
this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand; btnCancel.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnCancel.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); btnCancel.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.btnCancel.Location = new System.Drawing.Point(470, 12); btnCancel.Location = new System.Drawing.Point(470, 12);
this.btnCancel.Margin = new System.Windows.Forms.Padding(0); btnCancel.Margin = new System.Windows.Forms.Padding(0);
this.btnCancel.MinimumSize = new System.Drawing.Size(1, 1); btnCancel.MinimumSize = new System.Drawing.Size(1, 1);
this.btnCancel.Name = "btnCancel"; btnCancel.Name = "btnCancel";
this.btnCancel.Padding = new System.Windows.Forms.Padding(28, 0, 0, 0); btnCancel.Padding = new System.Windows.Forms.Padding(28, 0, 0, 0);
this.btnCancel.ShowFocusColor = true; btnCancel.ShowFocusColor = true;
this.btnCancel.Size = new System.Drawing.Size(100, 35); btnCancel.Size = new System.Drawing.Size(100, 35);
this.btnCancel.Symbol = 61453; btnCancel.Symbol = 61453;
this.btnCancel.TabIndex = 1; btnCancel.TabIndex = 1;
this.btnCancel.Text = "取消"; btnCancel.Text = "取消";
this.btnCancel.TipsText = null; btnCancel.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); btnCancel.TipsText = null;
btnCancel.Click += btnCancel_Click;
// //
// btnOK // btnOK
// //
this.btnOK.BackColor = System.Drawing.Color.Transparent; btnOK.BackColor = System.Drawing.Color.Transparent;
this.btnOK.Cursor = System.Windows.Forms.Cursors.Hand; btnOK.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnOK.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); btnOK.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.btnOK.Location = new System.Drawing.Point(355, 12); btnOK.Location = new System.Drawing.Point(355, 12);
this.btnOK.Margin = new System.Windows.Forms.Padding(0); btnOK.Margin = new System.Windows.Forms.Padding(0);
this.btnOK.MinimumSize = new System.Drawing.Size(1, 1); btnOK.MinimumSize = new System.Drawing.Size(1, 1);
this.btnOK.Name = "btnOK"; btnOK.Name = "btnOK";
this.btnOK.Padding = new System.Windows.Forms.Padding(28, 0, 0, 0); btnOK.Padding = new System.Windows.Forms.Padding(28, 0, 0, 0);
this.btnOK.ShowFocusColor = true; btnOK.ShowFocusColor = true;
this.btnOK.Size = new System.Drawing.Size(100, 35); btnOK.Size = new System.Drawing.Size(100, 35);
this.btnOK.TabIndex = 0; btnOK.TabIndex = 0;
this.btnOK.Text = "确定"; btnOK.Text = "确定";
this.btnOK.TipsText = null; btnOK.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.btnOK.Click += new System.EventHandler(this.btnOK_Click); btnOK.TipsText = null;
btnOK.Click += btnOK_Click;
// //
// UIEditForm // UIEditForm
// //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(600, 450); ClientSize = new System.Drawing.Size(600, 450);
this.Controls.Add(this.pnlBtm); Controls.Add(pnlBtm);
this.EscClose = true; EscClose = true;
this.MaximizeBox = false; MaximizeBox = false;
this.MinimizeBox = false; MinimizeBox = false;
this.Name = "UIEditForm"; Name = "UIEditForm";
this.Padding = new System.Windows.Forms.Padding(1, 35, 1, 3); Padding = new System.Windows.Forms.Padding(1, 35, 1, 3);
this.ShowInTaskbar = false; ShowIcon = false;
this.Text = "UIEditForm"; ShowInTaskbar = false;
this.pnlBtm.ResumeLayout(false); Text = "UIEditForm";
this.ResumeLayout(false); ZoomScaleRect = new System.Drawing.Rectangle(15, 15, 600, 450);
pnlBtm.ResumeLayout(false);
ResumeLayout(false);
} }
#endregion #endregion

View File

@ -1,4 +1,64 @@
<root> <?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: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:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true"> <xsd:element name="root" msdata:IsDataSet="true">

View File

@ -28,71 +28,73 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.label = new Sunny.UI.UILabel(); label = new UILabel();
this.edit = new Sunny.UI.UITextBox(); edit = new UITextBox();
this.pnlBtm.SuspendLayout(); pnlBtm.SuspendLayout();
this.SuspendLayout(); SuspendLayout();
// //
// pnlBtm // pnlBtm
// //
this.pnlBtm.Location = new System.Drawing.Point(1, 124); pnlBtm.Location = new System.Drawing.Point(0, 135);
this.pnlBtm.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; pnlBtm.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom;
this.pnlBtm.Size = new System.Drawing.Size(471, 55); pnlBtm.Size = new System.Drawing.Size(473, 55);
this.pnlBtm.TabIndex = 2; pnlBtm.TabIndex = 2;
// //
// btnCancel // btnCancel
// //
this.btnCancel.Location = new System.Drawing.Point(343, 12); btnCancel.Location = new System.Drawing.Point(343, 4);
// //
// btnOK // btnOK
// //
this.btnOK.Location = new System.Drawing.Point(228, 12); btnOK.Location = new System.Drawing.Point(228, 4);
// //
// label // label
// //
this.label.AutoSize = true; label.AutoSize = true;
this.label.BackColor = System.Drawing.Color.Transparent; label.BackColor = System.Drawing.Color.Transparent;
this.label.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); label.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.label.Location = new System.Drawing.Point(29, 57); label.ForeColor = System.Drawing.Color.FromArgb(48, 48, 48);
this.label.Name = "label"; label.Location = new System.Drawing.Point(28, 57);
this.label.Size = new System.Drawing.Size(218, 21); label.Name = "label";
this.label.TabIndex = 1; label.Size = new System.Drawing.Size(215, 16);
this.label.Text = "请在下方编辑框中输入数值:"; label.TabIndex = 1;
this.label.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; label.Text = "请在下方编辑框中输入数值:";
label.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
// //
// edit // edit
// //
this.edit.Cursor = System.Windows.Forms.Cursors.IBeam; edit.Cursor = System.Windows.Forms.Cursors.IBeam;
this.edit.FillColor = System.Drawing.Color.White; edit.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.edit.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); edit.Location = new System.Drawing.Point(29, 92);
this.edit.Location = new System.Drawing.Point(29, 92); edit.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.edit.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); edit.MinimumSize = new System.Drawing.Size(1, 1);
this.edit.Maximum = 2147483647D; edit.Name = "edit";
this.edit.Minimum = -2147483648D; edit.Padding = new System.Windows.Forms.Padding(5);
this.edit.MinimumSize = new System.Drawing.Size(1, 1); edit.RadiusSides = UICornerRadiusSides.None;
this.edit.Name = "edit"; edit.ShowText = false;
this.edit.Padding = new System.Windows.Forms.Padding(5); edit.Size = new System.Drawing.Size(415, 29);
this.edit.RadiusSides = Sunny.UI.UICornerRadiusSides.None; edit.TabIndex = 0;
this.edit.Size = new System.Drawing.Size(415, 29); edit.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
this.edit.TabIndex = 0; edit.Watermark = "";
this.edit.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
// //
// UIInputForm // UIInputForm
// //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(473, 182); ClientSize = new System.Drawing.Size(473, 190);
this.Controls.Add(this.edit); Controls.Add(edit);
this.Controls.Add(this.label); Controls.Add(label);
this.Name = "UIInputForm"; Name = "UIInputForm";
this.Text = "输入"; Padding = new System.Windows.Forms.Padding(0, 35, 0, 0);
this.Shown += new System.EventHandler(this.UIInputForm_Shown); ShowIcon = false;
this.Controls.SetChildIndex(this.pnlBtm, 0); Text = "输入";
this.Controls.SetChildIndex(this.label, 0); ZoomScaleRect = new System.Drawing.Rectangle(15, 15, 473, 182);
this.Controls.SetChildIndex(this.edit, 0); Shown += UIInputForm_Shown;
this.pnlBtm.ResumeLayout(false); Controls.SetChildIndex(pnlBtm, 0);
this.ResumeLayout(false); Controls.SetChildIndex(label, 0);
this.PerformLayout(); Controls.SetChildIndex(edit, 0);
pnlBtm.ResumeLayout(false);
ResumeLayout(false);
PerformLayout();
} }
#endregion #endregion

View File

@ -1,4 +1,64 @@
<root> <?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: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:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true"> <xsd:element name="root" msdata:IsDataSet="true">

View File

@ -115,7 +115,6 @@
btnLogin.Size = new System.Drawing.Size(86, 29); btnLogin.Size = new System.Drawing.Size(86, 29);
btnLogin.TabIndex = 2; btnLogin.TabIndex = 2;
btnLogin.Text = "登录"; btnLogin.Text = "登录";
btnLogin.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
btnLogin.Click += btnLogin_Click; btnLogin.Click += btnLogin_Click;
// //
// btnCancel // btnCancel
@ -142,7 +141,6 @@
btnCancel.Symbol = 61453; btnCancel.Symbol = 61453;
btnCancel.TabIndex = 3; btnCancel.TabIndex = 3;
btnCancel.Text = "取消"; btnCancel.Text = "取消";
btnCancel.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
btnCancel.Click += btnCancel_Click; btnCancel.Click += btnCancel_Click;
// //
// lblTitle // lblTitle
@ -209,6 +207,7 @@
MinimumSize = new System.Drawing.Size(750, 450); MinimumSize = new System.Drawing.Size(750, 450);
Name = "UILoginForm"; Name = "UILoginForm";
Padding = new System.Windows.Forms.Padding(0); Padding = new System.Windows.Forms.Padding(0);
ShowIcon = false;
ShowInTaskbar = false; ShowInTaskbar = false;
ShowTitle = false; ShowTitle = false;
Text = "UILogin"; Text = "UILogin";

View File

@ -48,7 +48,6 @@
btnCancel.Style = UIStyle.Custom; btnCancel.Style = UIStyle.Custom;
btnCancel.TabIndex = 6; btnCancel.TabIndex = 6;
btnCancel.Text = "取消"; btnCancel.Text = "取消";
btnCancel.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
btnCancel.TipsText = null; btnCancel.TipsText = null;
btnCancel.Click += btnCancel_Click; btnCancel.Click += btnCancel_Click;
// //
@ -65,7 +64,6 @@
btnOK.Style = UIStyle.Custom; btnOK.Style = UIStyle.Custom;
btnOK.TabIndex = 5; btnOK.TabIndex = 5;
btnOK.Text = "确定"; btnOK.Text = "确定";
btnOK.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
btnOK.TipsText = null; btnOK.TipsText = null;
btnOK.Click += btnOK_Click; btnOK.Click += btnOK_Click;
// //
@ -105,7 +103,7 @@
MaximizeBox = false; MaximizeBox = false;
MinimizeBox = false; MinimizeBox = false;
Name = "UIMessageForm"; Name = "UIMessageForm";
Padding = new System.Windows.Forms.Padding(1, 35, 1, 3); ShowIcon = false;
ShowInTaskbar = false; ShowInTaskbar = false;
Text = "UIMsgBox"; Text = "UIMsgBox";
ZoomScaleRect = new System.Drawing.Rectangle(15, 15, 450, 270); ZoomScaleRect = new System.Drawing.Rectangle(15, 15, 450, 270);

View File

@ -28,68 +28,74 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.label = new Sunny.UI.UILabel(); label = new UILabel();
this.ComboBox = new Sunny.UI.UIComboBox(); ComboBox = new UIComboBox();
this.pnlBtm.SuspendLayout(); pnlBtm.SuspendLayout();
this.SuspendLayout(); SuspendLayout();
// //
// pnlBtm // pnlBtm
// //
this.pnlBtm.Location = new System.Drawing.Point(1, 124); pnlBtm.Location = new System.Drawing.Point(1, 134);
this.pnlBtm.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; pnlBtm.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None;
this.pnlBtm.Size = new System.Drawing.Size(471, 55); pnlBtm.Size = new System.Drawing.Size(471, 55);
// //
// btnCancel // btnCancel
// //
this.btnCancel.Location = new System.Drawing.Point(343, 12); btnCancel.Location = new System.Drawing.Point(343, 4);
// //
// btnOK // btnOK
// //
this.btnOK.Location = new System.Drawing.Point(228, 12); btnOK.Location = new System.Drawing.Point(228, 4);
// //
// label // label
// //
this.label.AutoSize = true; label.AutoSize = true;
this.label.BackColor = System.Drawing.Color.Transparent; label.BackColor = System.Drawing.Color.Transparent;
this.label.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); label.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.label.Location = new System.Drawing.Point(29, 57); label.ForeColor = System.Drawing.Color.FromArgb(48, 48, 48);
this.label.Name = "label"; label.Location = new System.Drawing.Point(29, 57);
this.label.Size = new System.Drawing.Size(186, 21); label.Name = "label";
this.label.TabIndex = 3; label.Size = new System.Drawing.Size(183, 16);
this.label.Text = "请在下方编辑框中选择:"; label.TabIndex = 3;
this.label.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; label.Text = "请在下方编辑框中选择:";
label.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
// //
// ComboBox // ComboBox
// //
this.ComboBox.DataSource = null; ComboBox.DataSource = null;
this.ComboBox.DropDownStyle = Sunny.UI.UIDropDownStyle.DropDownList; ComboBox.DropDownStyle = UIDropDownStyle.DropDownList;
this.ComboBox.FillColor = System.Drawing.Color.White; ComboBox.FillColor = System.Drawing.Color.White;
this.ComboBox.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); ComboBox.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.ComboBox.Location = new System.Drawing.Point(29, 92); ComboBox.ItemHoverColor = System.Drawing.Color.FromArgb(155, 200, 255);
this.ComboBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); ComboBox.ItemSelectForeColor = System.Drawing.Color.FromArgb(235, 243, 255);
this.ComboBox.MinimumSize = new System.Drawing.Size(63, 0); ComboBox.Location = new System.Drawing.Point(29, 92);
this.ComboBox.Name = "ComboBox"; ComboBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ComboBox.Padding = new System.Windows.Forms.Padding(0, 0, 30, 2); ComboBox.MinimumSize = new System.Drawing.Size(63, 0);
this.ComboBox.Size = new System.Drawing.Size(415, 29); ComboBox.Name = "ComboBox";
this.ComboBox.TabIndex = 4; ComboBox.Padding = new System.Windows.Forms.Padding(0, 0, 30, 2);
this.ComboBox.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; ComboBox.Size = new System.Drawing.Size(415, 29);
ComboBox.SymbolSize = 24;
ComboBox.TabIndex = 4;
ComboBox.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
ComboBox.Watermark = "";
// //
// UISelectForm // UISelectForm
// //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(473, 182); ClientSize = new System.Drawing.Size(473, 190);
this.Controls.Add(this.label); Controls.Add(label);
this.Controls.Add(this.ComboBox); Controls.Add(ComboBox);
this.EscClose = true; Name = "UISelectForm";
this.Name = "UISelectForm"; Padding = new System.Windows.Forms.Padding(1, 35, 1, 1);
this.Text = "选择"; ShowIcon = false;
this.Controls.SetChildIndex(this.ComboBox, 0); Text = "选择";
this.Controls.SetChildIndex(this.pnlBtm, 0); ZoomScaleRect = new System.Drawing.Rectangle(15, 15, 473, 182);
this.Controls.SetChildIndex(this.label, 0); Controls.SetChildIndex(ComboBox, 0);
this.pnlBtm.ResumeLayout(false); Controls.SetChildIndex(pnlBtm, 0);
this.ResumeLayout(false); Controls.SetChildIndex(label, 0);
this.PerformLayout(); pnlBtm.ResumeLayout(false);
ResumeLayout(false);
PerformLayout();
} }
#endregion #endregion

View File

@ -1,4 +1,64 @@
<root> <?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: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:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true"> <xsd:element name="root" msdata:IsDataSet="true">

View File

@ -39,6 +39,7 @@
labelDescription.AutoSize = true; labelDescription.AutoSize = true;
labelDescription.BackColor = System.Drawing.Color.Transparent; labelDescription.BackColor = System.Drawing.Color.Transparent;
labelDescription.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); labelDescription.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
labelDescription.ForeColor = System.Drawing.Color.FromArgb(48, 48, 48);
labelDescription.Location = new System.Drawing.Point(32, 55); labelDescription.Location = new System.Drawing.Point(32, 55);
labelDescription.Name = "labelDescription"; labelDescription.Name = "labelDescription";
labelDescription.Size = new System.Drawing.Size(207, 16); labelDescription.Size = new System.Drawing.Size(207, 16);
@ -48,6 +49,7 @@
// //
// processBar // processBar
// //
processBar.FillColor = System.Drawing.Color.FromArgb(235, 243, 255);
processBar.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); processBar.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
processBar.Location = new System.Drawing.Point(32, 91); processBar.Location = new System.Drawing.Point(32, 91);
processBar.MinimumSize = new System.Drawing.Size(70, 23); processBar.MinimumSize = new System.Drawing.Size(70, 23);
@ -73,6 +75,7 @@
MaximizeBox = false; MaximizeBox = false;
MinimizeBox = false; MinimizeBox = false;
Name = "UIStatusForm"; Name = "UIStatusForm";
ShowIcon = false;
Text = "提示"; Text = "提示";
TopMost = true; TopMost = true;
ZoomScaleRect = new System.Drawing.Rectangle(15, 15, 473, 153); ZoomScaleRect = new System.Drawing.Rectangle(15, 15, 473, 153);

View File

@ -28,50 +28,53 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.labelDescription = new Sunny.UI.UILabel(); labelDescription = new UILabel();
this.Bar = new Sunny.UI.UIWaitingBar(); Bar = new UIWaitingBar();
this.SuspendLayout(); SuspendLayout();
// //
// labelDescription // labelDescription
// //
this.labelDescription.AutoSize = true; labelDescription.AutoSize = true;
this.labelDescription.BackColor = System.Drawing.Color.Transparent; labelDescription.BackColor = System.Drawing.Color.Transparent;
this.labelDescription.Font = new System.Drawing.Font("宋体", 12F); labelDescription.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.labelDescription.Location = new System.Drawing.Point(32, 55); labelDescription.ForeColor = System.Drawing.Color.FromArgb(48, 48, 48);
this.labelDescription.Name = "labelDescription"; labelDescription.Location = new System.Drawing.Point(32, 55);
this.labelDescription.Size = new System.Drawing.Size(178, 21); labelDescription.Name = "labelDescription";
this.labelDescription.TabIndex = 4; labelDescription.Size = new System.Drawing.Size(207, 16);
this.labelDescription.Text = "系统正在处理中,请稍候..."; labelDescription.TabIndex = 4;
this.labelDescription.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; labelDescription.Text = "系统正在处理中,请稍候...";
labelDescription.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
// //
// Bar // Bar
// //
this.Bar.Font = new System.Drawing.Font("宋体", 12F); Bar.FillColor = System.Drawing.Color.FromArgb(243, 249, 255);
this.Bar.Location = new System.Drawing.Point(32, 91); Bar.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.Bar.MinimumSize = new System.Drawing.Size(70, 23); Bar.ForeColor = System.Drawing.Color.FromArgb(80, 160, 255);
this.Bar.Name = "Bar"; Bar.Location = new System.Drawing.Point(32, 91);
this.Bar.Size = new System.Drawing.Size(409, 29); Bar.MinimumSize = new System.Drawing.Size(70, 23);
this.Bar.TabIndex = 6; Bar.Name = "Bar";
this.Bar.Text = "uiWaitingBar1"; Bar.Size = new System.Drawing.Size(409, 29);
this.Bar.Tick += new System.EventHandler(this.Bar_Tick); Bar.TabIndex = 6;
Bar.Text = "uiWaitingBar1";
Bar.Tick += Bar_Tick;
// //
// UIWaitForm // UIWaitForm
// //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(473, 153); ClientSize = new System.Drawing.Size(473, 153);
this.ControlBox = false; ControlBox = false;
this.Controls.Add(this.labelDescription); Controls.Add(labelDescription);
this.Controls.Add(this.Bar); Controls.Add(Bar);
this.EscClose = false; IsForbidAltF4 = true;
this.IsForbidAltF4 = true; MaximizeBox = false;
this.MaximizeBox = false; MinimizeBox = false;
this.MinimizeBox = false; Name = "UIWaitForm";
this.Name = "UIWaitForm"; ShowIcon = false;
this.Text = "提示"; Text = "提示";
this.TopMost = true; TopMost = true;
this.ResumeLayout(false); ZoomScaleRect = new System.Drawing.Rectangle(15, 15, 473, 153);
this.PerformLayout(); ResumeLayout(false);
PerformLayout();
} }
#endregion #endregion

View File

@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0 Version 2.0
The primary goals of this format is to allow a simple XML format The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes various data types are done through the TypeConverter classes
associated with the data types. associated with the data types.
Example: Example:
... ado.net/XML headers & schema ... ... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader> <resheader name="version">2.0</resheader>
@ -26,36 +26,36 @@
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment> <comment>This is a comment</comment>
</data> </data>
There are any number of "resheader" rows that contain simple There are any number of "resheader" rows that contain simple
name/value pairs. name/value pairs.
Each data row contains a name, and value. The row also contains a Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture. text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the Classes that don't support this are serialized and stored with the
mimetype set. mimetype set.
The mimetype is used for serialized objects, and tells the The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly: extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below. read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64 mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64 mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter : using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
--> -->