* UIEditForm:修改通过代码生成窗体控件的TabIndex
This commit is contained in:
parent
8c6d72f1a0
commit
c08059e272
Binary file not shown.
Binary file not shown.
Binary file not shown.
6
SunnyUI/Forms/UIEditForm.Designer.cs
generated
6
SunnyUI/Forms/UIEditForm.Designer.cs
generated
@ -40,7 +40,7 @@
|
||||
this.pnlBtm.Controls.Add(this.btnCancel);
|
||||
this.pnlBtm.Controls.Add(this.btnOK);
|
||||
this.pnlBtm.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.pnlBtm.Font = new System.Drawing.Font("微软雅黑", 12F);
|
||||
this.pnlBtm.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||
this.pnlBtm.Location = new System.Drawing.Point(1, 392);
|
||||
this.pnlBtm.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.pnlBtm.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
@ -55,7 +55,7 @@
|
||||
//
|
||||
this.btnCancel.BackColor = System.Drawing.Color.Transparent;
|
||||
this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnCancel.Font = new System.Drawing.Font("微软雅黑", 12F);
|
||||
this.btnCancel.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||
this.btnCancel.Location = new System.Drawing.Point(470, 12);
|
||||
this.btnCancel.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.btnCancel.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
@ -72,7 +72,7 @@
|
||||
//
|
||||
this.btnOK.BackColor = System.Drawing.Color.Transparent;
|
||||
this.btnOK.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnOK.Font = new System.Drawing.Font("微软雅黑", 12F);
|
||||
this.btnOK.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||
this.btnOK.Location = new System.Drawing.Point(355, 12);
|
||||
this.btnOK.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.btnOK.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
|
@ -89,6 +89,7 @@ namespace Sunny.UI
|
||||
edit.Text = info.Value.ToString();
|
||||
edit.Parent = this;
|
||||
edit.Name = "Edit_" + info.DataPropertyName;
|
||||
edit.EnterAsTab = true;
|
||||
ctrls.Add(edit);
|
||||
}
|
||||
|
||||
@ -102,6 +103,7 @@ namespace Sunny.UI
|
||||
edit.Parent = this;
|
||||
edit.PasswordChar = '*';
|
||||
edit.Name = "Edit_" + info.DataPropertyName;
|
||||
edit.EnterAsTab = true;
|
||||
ctrls.Add(edit);
|
||||
}
|
||||
|
||||
@ -128,6 +130,7 @@ namespace Sunny.UI
|
||||
edit.DoubleValue = info.Value.ToString().ToDouble();
|
||||
edit.Parent = this;
|
||||
edit.Name = "Edit_" + info.DataPropertyName;
|
||||
edit.EnterAsTab = true;
|
||||
ctrls.Add(edit);
|
||||
}
|
||||
|
||||
@ -167,6 +170,13 @@ namespace Sunny.UI
|
||||
ctrl.TabIndex = tabIndex;
|
||||
tabIndex++;
|
||||
}
|
||||
|
||||
pnlBtm.TabIndex = tabIndex;
|
||||
tabIndex++;
|
||||
btnOK.TabIndex = tabIndex;
|
||||
tabIndex++;
|
||||
btnCancel.TabIndex = tabIndex;
|
||||
btnOK.ShowFocusLine = btnCancel.ShowFocusLine = true;
|
||||
}
|
||||
|
||||
public object this[string dataPropertyName]
|
||||
|
@ -1,64 +1,4 @@
|
||||
<?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.
|
||||
-->
|
||||
<root>
|
||||
<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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user