* UITransfer: 新增两个事件,可获取左侧、右侧Item点击事件
This commit is contained in:
parent
a7f283a4c7
commit
782c45c162
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
25
SunnyUI/Controls/UITransfer.Designer.cs
generated
25
SunnyUI/Controls/UITransfer.Designer.cs
generated
@ -42,9 +42,10 @@ namespace Sunny.UI
|
|||||||
//
|
//
|
||||||
this.b1.BackColor = System.Drawing.Color.Transparent;
|
this.b1.BackColor = System.Drawing.Color.Transparent;
|
||||||
this.b1.Cursor = System.Windows.Forms.Cursors.Hand;
|
this.b1.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
this.b1.Font = new System.Drawing.Font("微软雅黑", 12F);
|
this.b1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||||
this.b1.Location = new System.Drawing.Point(228, 85);
|
this.b1.Location = new System.Drawing.Point(228, 85);
|
||||||
this.b1.Margin = new System.Windows.Forms.Padding(0);
|
this.b1.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.b1.MinimumSize = new System.Drawing.Size(1, 1);
|
||||||
this.b1.Name = "b1";
|
this.b1.Name = "b1";
|
||||||
this.b1.Padding = new System.Windows.Forms.Padding(28, 0, 0, 0);
|
this.b1.Padding = new System.Windows.Forms.Padding(28, 0, 0, 0);
|
||||||
this.b1.Size = new System.Drawing.Size(44, 32);
|
this.b1.Size = new System.Drawing.Size(44, 32);
|
||||||
@ -57,9 +58,10 @@ namespace Sunny.UI
|
|||||||
//
|
//
|
||||||
this.b2.BackColor = System.Drawing.Color.Transparent;
|
this.b2.BackColor = System.Drawing.Color.Transparent;
|
||||||
this.b2.Cursor = System.Windows.Forms.Cursors.Hand;
|
this.b2.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
this.b2.Font = new System.Drawing.Font("微软雅黑", 12F);
|
this.b2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||||
this.b2.Location = new System.Drawing.Point(228, 135);
|
this.b2.Location = new System.Drawing.Point(228, 135);
|
||||||
this.b2.Margin = new System.Windows.Forms.Padding(0);
|
this.b2.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.b2.MinimumSize = new System.Drawing.Size(1, 1);
|
||||||
this.b2.Name = "b2";
|
this.b2.Name = "b2";
|
||||||
this.b2.Padding = new System.Windows.Forms.Padding(28, 0, 0, 0);
|
this.b2.Padding = new System.Windows.Forms.Padding(28, 0, 0, 0);
|
||||||
this.b2.Size = new System.Drawing.Size(44, 32);
|
this.b2.Size = new System.Drawing.Size(44, 32);
|
||||||
@ -72,9 +74,10 @@ namespace Sunny.UI
|
|||||||
//
|
//
|
||||||
this.b3.BackColor = System.Drawing.Color.Transparent;
|
this.b3.BackColor = System.Drawing.Color.Transparent;
|
||||||
this.b3.Cursor = System.Windows.Forms.Cursors.Hand;
|
this.b3.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
this.b3.Font = new System.Drawing.Font("微软雅黑", 12F);
|
this.b3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||||
this.b3.Location = new System.Drawing.Point(228, 183);
|
this.b3.Location = new System.Drawing.Point(228, 183);
|
||||||
this.b3.Margin = new System.Windows.Forms.Padding(0);
|
this.b3.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.b3.MinimumSize = new System.Drawing.Size(1, 1);
|
||||||
this.b3.Name = "b3";
|
this.b3.Name = "b3";
|
||||||
this.b3.Padding = new System.Windows.Forms.Padding(28, 0, 0, 0);
|
this.b3.Padding = new System.Windows.Forms.Padding(28, 0, 0, 0);
|
||||||
this.b3.Size = new System.Drawing.Size(44, 32);
|
this.b3.Size = new System.Drawing.Size(44, 32);
|
||||||
@ -87,9 +90,10 @@ namespace Sunny.UI
|
|||||||
//
|
//
|
||||||
this.b4.BackColor = System.Drawing.Color.Transparent;
|
this.b4.BackColor = System.Drawing.Color.Transparent;
|
||||||
this.b4.Cursor = System.Windows.Forms.Cursors.Hand;
|
this.b4.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
this.b4.Font = new System.Drawing.Font("微软雅黑", 12F);
|
this.b4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||||
this.b4.Location = new System.Drawing.Point(228, 233);
|
this.b4.Location = new System.Drawing.Point(228, 233);
|
||||||
this.b4.Margin = new System.Windows.Forms.Padding(0);
|
this.b4.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.b4.MinimumSize = new System.Drawing.Size(1, 1);
|
||||||
this.b4.Name = "b4";
|
this.b4.Name = "b4";
|
||||||
this.b4.Padding = new System.Windows.Forms.Padding(28, 0, 0, 0);
|
this.b4.Padding = new System.Windows.Forms.Padding(28, 0, 0, 0);
|
||||||
this.b4.Size = new System.Drawing.Size(44, 32);
|
this.b4.Size = new System.Drawing.Size(44, 32);
|
||||||
@ -102,35 +106,42 @@ namespace Sunny.UI
|
|||||||
//
|
//
|
||||||
this.l1.BackColor = System.Drawing.Color.Transparent;
|
this.l1.BackColor = System.Drawing.Color.Transparent;
|
||||||
this.l1.Dock = System.Windows.Forms.DockStyle.Left;
|
this.l1.Dock = System.Windows.Forms.DockStyle.Left;
|
||||||
this.l1.Font = new System.Drawing.Font("微软雅黑", 12F);
|
this.l1.FillColor = System.Drawing.Color.White;
|
||||||
|
this.l1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||||
|
this.l1.FormatString = "";
|
||||||
this.l1.ItemSelectForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
|
this.l1.ItemSelectForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
|
||||||
this.l1.Location = new System.Drawing.Point(1, 1);
|
this.l1.Location = new System.Drawing.Point(1, 1);
|
||||||
this.l1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
this.l1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
|
this.l1.MinimumSize = new System.Drawing.Size(1, 1);
|
||||||
this.l1.Name = "l1";
|
this.l1.Name = "l1";
|
||||||
this.l1.Padding = new System.Windows.Forms.Padding(2);
|
this.l1.Padding = new System.Windows.Forms.Padding(2);
|
||||||
this.l1.Size = new System.Drawing.Size(210, 348);
|
this.l1.Size = new System.Drawing.Size(210, 348);
|
||||||
this.l1.TabIndex = 7;
|
this.l1.TabIndex = 7;
|
||||||
this.l1.Text = null;
|
this.l1.Text = null;
|
||||||
|
this.l1.ItemClick += new System.EventHandler(this.l1_ItemClick);
|
||||||
this.l1.ItemDoubleClick += new System.EventHandler(this.l1_DoubleClick);
|
this.l1.ItemDoubleClick += new System.EventHandler(this.l1_DoubleClick);
|
||||||
//
|
//
|
||||||
// l2
|
// l2
|
||||||
//
|
//
|
||||||
this.l2.BackColor = System.Drawing.Color.Transparent;
|
this.l2.BackColor = System.Drawing.Color.Transparent;
|
||||||
this.l2.Dock = System.Windows.Forms.DockStyle.Right;
|
this.l2.Dock = System.Windows.Forms.DockStyle.Right;
|
||||||
this.l2.Font = new System.Drawing.Font("微软雅黑", 12F);
|
this.l2.FillColor = System.Drawing.Color.White;
|
||||||
|
this.l2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||||
|
this.l2.FormatString = "";
|
||||||
this.l2.ItemSelectForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
|
this.l2.ItemSelectForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
|
||||||
this.l2.Location = new System.Drawing.Point(289, 1);
|
this.l2.Location = new System.Drawing.Point(289, 1);
|
||||||
this.l2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
this.l2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
|
this.l2.MinimumSize = new System.Drawing.Size(1, 1);
|
||||||
this.l2.Name = "l2";
|
this.l2.Name = "l2";
|
||||||
this.l2.Padding = new System.Windows.Forms.Padding(2);
|
this.l2.Padding = new System.Windows.Forms.Padding(2);
|
||||||
this.l2.Size = new System.Drawing.Size(210, 348);
|
this.l2.Size = new System.Drawing.Size(210, 348);
|
||||||
this.l2.TabIndex = 8;
|
this.l2.TabIndex = 8;
|
||||||
this.l2.Text = null;
|
this.l2.Text = null;
|
||||||
|
this.l2.ItemClick += new System.EventHandler(this.l2_ItemClick);
|
||||||
this.l2.ItemDoubleClick += new System.EventHandler(this.l2_DoubleClick);
|
this.l2.ItemDoubleClick += new System.EventHandler(this.l2_DoubleClick);
|
||||||
//
|
//
|
||||||
// UITransfer
|
// UITransfer
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F);
|
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||||
this.Controls.Add(this.l2);
|
this.Controls.Add(this.l2);
|
||||||
this.Controls.Add(this.l1);
|
this.Controls.Add(this.l1);
|
||||||
|
@ -242,5 +242,17 @@ namespace Sunny.UI
|
|||||||
if (RectSides != ToolStripStatusLabelBorderSides.None)
|
if (RectSides != ToolStripStatusLabelBorderSides.None)
|
||||||
RectSides = ToolStripStatusLabelBorderSides.None;
|
RectSides = ToolStripStatusLabelBorderSides.None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public event EventHandler ItemsLeftClick;
|
||||||
|
public event EventHandler ItemsRightClick;
|
||||||
|
private void l1_ItemClick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
ItemsLeftClick?.Invoke(this, e);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void l2_ItemClick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
ItemsRightClick?.Invoke(this, e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,64 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<root>
|
||||||
<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">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user