+ UIFlowLayoutPanel:增加
* SunnyUI.Demo生成路径改为项目根目录下Bin,相关图片文件增加为资源文件
BIN
Bin/SunnyUI.dll
BIN
Bin/SunnyUI.pdb
84
SunnyUI.Demo/Controls/FFlowLayoutPanel.Designer.cs
generated
Normal file
@ -0,0 +1,84 @@
|
||||
namespace Sunny.UI.Demo
|
||||
{
|
||||
partial class FFlowLayoutPanel
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.uiButton1 = new Sunny.UI.UIButton();
|
||||
this.uiFlowLayoutPanel1 = new Sunny.UI.UIFlowLayoutPanel();
|
||||
this.PagePanel.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// PagePanel
|
||||
//
|
||||
this.PagePanel.Controls.Add(this.uiButton1);
|
||||
this.PagePanel.Controls.Add(this.uiFlowLayoutPanel1);
|
||||
this.PagePanel.Size = new System.Drawing.Size(873, 482);
|
||||
//
|
||||
// uiButton1
|
||||
//
|
||||
this.uiButton1.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.uiButton1.Font = new System.Drawing.Font("微软雅黑", 12F);
|
||||
this.uiButton1.Location = new System.Drawing.Point(30, 418);
|
||||
this.uiButton1.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiButton1.Name = "uiButton1";
|
||||
this.uiButton1.Size = new System.Drawing.Size(100, 35);
|
||||
this.uiButton1.TabIndex = 9;
|
||||
this.uiButton1.Text = "uiButton1";
|
||||
this.uiButton1.Click += new System.EventHandler(this.uiButton1_Click);
|
||||
//
|
||||
// uiFlowLayoutPanel1
|
||||
//
|
||||
this.uiFlowLayoutPanel1.Font = new System.Drawing.Font("微软雅黑", 12F);
|
||||
this.uiFlowLayoutPanel1.Location = new System.Drawing.Point(30, 20);
|
||||
this.uiFlowLayoutPanel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.uiFlowLayoutPanel1.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiFlowLayoutPanel1.Name = "uiFlowLayoutPanel1";
|
||||
this.uiFlowLayoutPanel1.Padding = new System.Windows.Forms.Padding(2);
|
||||
this.uiFlowLayoutPanel1.Size = new System.Drawing.Size(270, 390);
|
||||
this.uiFlowLayoutPanel1.TabIndex = 8;
|
||||
this.uiFlowLayoutPanel1.Text = "uiFlowLayoutPanel1";
|
||||
//
|
||||
// FFlowLayoutPanel
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(873, 517);
|
||||
this.Name = "FFlowLayoutPanel";
|
||||
this.Symbol = 61590;
|
||||
this.Text = "FlowLayoutPanel";
|
||||
this.PagePanel.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private UIButton uiButton1;
|
||||
private UIFlowLayoutPanel uiFlowLayoutPanel1;
|
||||
}
|
||||
}
|
31
SunnyUI.Demo/Controls/FFlowLayoutPanel.cs
Normal file
@ -0,0 +1,31 @@
|
||||
namespace Sunny.UI.Demo
|
||||
{
|
||||
public partial class FFlowLayoutPanel : UITitlePage
|
||||
{
|
||||
public FFlowLayoutPanel()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void Init()
|
||||
{
|
||||
base.Init();
|
||||
uiFlowLayoutPanel1.Panel.Controls.Clear();
|
||||
|
||||
for (int i = 0; i < 30; i++)
|
||||
{
|
||||
uiButton1.PerformClick();
|
||||
}
|
||||
}
|
||||
|
||||
private int index;
|
||||
private void uiButton1_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
UIButton btn = new UIButton();
|
||||
btn.Text = "Button" + index++.ToString("D2");
|
||||
uiFlowLayoutPanel1.Panel.Controls.Add(btn);
|
||||
}
|
||||
}
|
||||
}
|
120
SunnyUI.Demo/Controls/FFlowLayoutPanel.resx
Normal 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>
|
@ -1,5 +1,5 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Sunny.UI.Demo.Properties;
|
||||
using System;
|
||||
|
||||
namespace Sunny.UI.Demo
|
||||
{
|
||||
@ -19,12 +19,39 @@ namespace Sunny.UI.Demo
|
||||
}
|
||||
|
||||
uiImageListBox1.Items.Clear();
|
||||
string[] files = System.IO.Directory.GetFiles(DirEx.CurrentDir() + "Team",
|
||||
"*.png", SearchOption.TopDirectoryOnly);
|
||||
foreach (string file in files)
|
||||
{
|
||||
uiImageListBox1.AddImage(file, file.FileInfo().Name);
|
||||
}
|
||||
// string[] files = System.IO.Directory.GetFiles(DirEx.CurrentDir() + "Team",
|
||||
// "*.png", SearchOption.TopDirectoryOnly);
|
||||
// foreach (string file in files)
|
||||
// {
|
||||
// uiImageListBox1.AddImage(file, file.FileInfo().Name);
|
||||
// Console.WriteLine(file.FileInfo().Name);
|
||||
// }
|
||||
|
||||
uiImageListBox1.AddImage(Resources.ajax, "ajax.png");
|
||||
uiImageListBox1.AddImage(Resources.atalanta, "atalanta.png");
|
||||
uiImageListBox1.AddImage(Resources.barcelona, "barcelona.png");
|
||||
uiImageListBox1.AddImage(Resources.benfica, "benfica.png");
|
||||
uiImageListBox1.AddImage(Resources.betis, "betis.png");
|
||||
uiImageListBox1.AddImage(Resources.brescia, "brescia.png");
|
||||
uiImageListBox1.AddImage(Resources.chievo, "chievo.png");
|
||||
uiImageListBox1.AddImage(Resources.deportivo, "deportivo.png");
|
||||
uiImageListBox1.AddImage(Resources.feyenoord, "feyenoord.png");
|
||||
uiImageListBox1.AddImage(Resources.heerenveen, "heerenveen.png");
|
||||
uiImageListBox1.AddImage(Resources.inter, "inter.png");
|
||||
uiImageListBox1.AddImage(Resources.lazio, "lazio.png");
|
||||
uiImageListBox1.AddImage(Resources.mallorca, "mallorca.png");
|
||||
uiImageListBox1.AddImage(Resources.milan, "milan.png");
|
||||
uiImageListBox1.AddImage(Resources.parma, "parma.png");
|
||||
uiImageListBox1.AddImage(Resources.porto, "porto.png");
|
||||
uiImageListBox1.AddImage(Resources.psv, "psv.png");
|
||||
uiImageListBox1.AddImage(Resources.real_madrid, "real_madrid.png");
|
||||
uiImageListBox1.AddImage(Resources.real_sociedad, "real_sociedad.png");
|
||||
uiImageListBox1.AddImage(Resources.roma, "roma.png");
|
||||
uiImageListBox1.AddImage(Resources.sevilla, "sevilla.png");
|
||||
uiImageListBox1.AddImage(Resources.udinese, "udinese.png");
|
||||
uiImageListBox1.AddImage(Resources.valencia, "valencia.png");
|
||||
uiImageListBox1.AddImage(Resources.villareal, "villareal.png");
|
||||
uiImageListBox1.AddImage(Resources.zaragoza, "zaragoza.png");
|
||||
}
|
||||
|
||||
private void uiImageListBox1_ItemDoubleClick(object sender, System.EventArgs e)
|
||||
|
@ -30,6 +30,7 @@ namespace Sunny.UI.Demo
|
||||
Aside.CreateChildNode(parent, 61716, 24, AddPage(new FTabControl(), ++pageIndex));
|
||||
Aside.CreateChildNode(parent, 61544, 24, AddPage(new FLine(), ++pageIndex));
|
||||
Aside.CreateChildNode(parent, 61590, 24, AddPage(new FPanel(), ++pageIndex));
|
||||
Aside.CreateChildNode(parent, AddPage(new FFlowLayoutPanel(), ++pageIndex));
|
||||
Aside.CreateChildNode(parent, 61516, 24, AddPage(new FTransfer(), ++pageIndex));
|
||||
Aside.CreateChildNode(parent, 61447, 24, AddPage(new FAvatar(), ++pageIndex));
|
||||
Aside.CreateChildNode(parent, 62104, 24, AddPage(new FContextMenuStrip(), ++pageIndex));
|
||||
|
250
SunnyUI.Demo/Properties/Resources.Designer.cs
generated
@ -100,6 +100,16 @@ namespace Sunny.UI.Demo.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap ajax {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("ajax", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
@ -120,6 +130,56 @@ namespace Sunny.UI.Demo.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap atalanta {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("atalanta", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap barcelona {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("barcelona", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap benfica {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("benfica", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap betis {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("betis", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap brescia {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("brescia", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
@ -150,6 +210,16 @@ namespace Sunny.UI.Demo.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap chievo {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("chievo", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
@ -170,6 +240,26 @@ namespace Sunny.UI.Demo.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap deportivo {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("deportivo", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap feyenoord {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("feyenoord", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
@ -210,6 +300,16 @@ namespace Sunny.UI.Demo.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap heerenveen {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("heerenveen", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
@ -250,6 +350,96 @@ namespace Sunny.UI.Demo.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap inter {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("inter", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap lazio {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("lazio", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap mallorca {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("mallorca", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap milan {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("milan", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap parma {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("parma", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap porto {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("porto", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap psv {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("psv", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap real_madrid {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("real_madrid", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap real_sociedad {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("real_sociedad", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
@ -270,6 +460,16 @@ namespace Sunny.UI.Demo.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap roma {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("roma", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
@ -290,6 +490,16 @@ namespace Sunny.UI.Demo.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap sevilla {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("sevilla", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
@ -319,5 +529,45 @@ namespace Sunny.UI.Demo.Properties {
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap udinese {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("udinese", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap valencia {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("valencia", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap villareal {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("villareal", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap zaragoza {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("zaragoza", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -130,12 +130,30 @@
|
||||
<data name="AHMF1" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\AHMF1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ajax" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ajax.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="AM" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\AM.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="AM1" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\AM1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="atalanta" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\atalanta.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="barcelona" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\barcelona.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="benfica" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\benfica.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="betis" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\betis.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="brescia" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\brescia.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ChartDarkStyle" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ChartDarkStyle.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
@ -145,12 +163,21 @@
|
||||
<data name="ChartPlainStyle" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ChartPlainStyle.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="chievo" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\chievo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="dashboard" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\dashboard.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="dashboard0" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\dashboard0.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="deportivo" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\deportivo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="feyenoord" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\feyenoord.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="HAM" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\HAM.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
@ -163,6 +190,9 @@
|
||||
<data name="HAMF1" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\HAMF1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="heerenveen" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\heerenveen.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="HM" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\HM.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
@ -175,18 +205,51 @@
|
||||
<data name="HMF1" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\HMF1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="inter" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\inter.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="lazio" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\lazio.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="mallorca" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\mallorca.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="milan" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\milan.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="parma" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\parma.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="porto" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\porto.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="psv" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\psv.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="real_madrid" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\real_madrid.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="real_sociedad" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\real_sociedad.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="relationship" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\relationship.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="relationship0" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\relationship0.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="roma" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\roma.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="save" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\save.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="save0" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\save0.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sevilla" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sevilla.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="SunnyLogin" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\SunnyLogin.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
@ -196,4 +259,16 @@
|
||||
<data name="SunnyUISmall" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\SunnyUISmall.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="udinese" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\udinese.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="valencia" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\valencia.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="villareal" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\villareal.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="zaragoza" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zaragoza.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
@ -17,7 +17,7 @@
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>Bin\</OutputPath>
|
||||
<OutputPath>..\Bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
@ -26,7 +26,7 @@
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>Bin\</OutputPath>
|
||||
<OutputPath>..\Bin\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
@ -137,6 +137,12 @@
|
||||
<Compile Include="Controls\FCombobox.Designer.cs">
|
||||
<DependentUpon>FCombobox.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\FFlowLayoutPanel.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\FFlowLayoutPanel.Designer.cs">
|
||||
<DependentUpon>FFlowLayoutPanel.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Forms\FLogin.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@ -343,6 +349,9 @@
|
||||
<EmbeddedResource Include="Controls\FContextMenuStrip.resx">
|
||||
<DependentUpon>FContextMenuStrip.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\FFlowLayoutPanel.resx">
|
||||
<DependentUpon>FFlowLayoutPanel.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Forms\FLogin.resx">
|
||||
<DependentUpon>FLogin.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
@ -420,18 +429,18 @@
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
@ -465,6 +474,56 @@
|
||||
<None Include="Resources\ChartDefaultStyle.png" />
|
||||
<None Include="Resources\ChartPlainStyle.png" />
|
||||
<None Include="Resources\SunnyLogin.png" />
|
||||
<None Include="Bin\Team\ajax.png" />
|
||||
<None Include="Bin\Team\atalanta.png" />
|
||||
<None Include="Bin\Team\barcelona.png" />
|
||||
<None Include="Bin\Team\benfica.png" />
|
||||
<None Include="Bin\Team\betis.png" />
|
||||
<None Include="Bin\Team\brescia.png" />
|
||||
<None Include="Bin\Team\chievo.png" />
|
||||
<None Include="Bin\Team\deportivo.png" />
|
||||
<None Include="Bin\Team\feyenoord.png" />
|
||||
<None Include="Bin\Team\heerenveen.png" />
|
||||
<None Include="Bin\Team\inter.png" />
|
||||
<None Include="Bin\Team\lazio.png" />
|
||||
<None Include="Bin\Team\mallorca.png" />
|
||||
<None Include="Bin\Team\milan.png" />
|
||||
<None Include="Bin\Team\parma.png" />
|
||||
<None Include="Bin\Team\porto.png" />
|
||||
<None Include="Bin\Team\psv.png" />
|
||||
<None Include="Bin\Team\real_madrid.png" />
|
||||
<None Include="Bin\Team\real_sociedad.png" />
|
||||
<None Include="Bin\Team\roma.png" />
|
||||
<None Include="Bin\Team\sevilla.png" />
|
||||
<None Include="Bin\Team\udinese.png" />
|
||||
<None Include="Bin\Team\valencia.png" />
|
||||
<None Include="Bin\Team\villareal.png" />
|
||||
<None Include="Bin\Team\zaragoza.png" />
|
||||
<None Include="Resources\ajax.png" />
|
||||
<None Include="Resources\atalanta.png" />
|
||||
<None Include="Resources\barcelona.png" />
|
||||
<None Include="Resources\benfica.png" />
|
||||
<None Include="Resources\betis.png" />
|
||||
<None Include="Resources\brescia.png" />
|
||||
<None Include="Resources\chievo.png" />
|
||||
<None Include="Resources\deportivo.png" />
|
||||
<None Include="Resources\feyenoord.png" />
|
||||
<None Include="Resources\heerenveen.png" />
|
||||
<None Include="Resources\inter.png" />
|
||||
<None Include="Resources\lazio.png" />
|
||||
<None Include="Resources\mallorca.png" />
|
||||
<None Include="Resources\milan.png" />
|
||||
<None Include="Resources\parma.png" />
|
||||
<None Include="Resources\porto.png" />
|
||||
<None Include="Resources\psv.png" />
|
||||
<None Include="Resources\real_madrid.png" />
|
||||
<None Include="Resources\real_sociedad.png" />
|
||||
<None Include="Resources\roma.png" />
|
||||
<None Include="Resources\sevilla.png" />
|
||||
<None Include="Resources\udinese.png" />
|
||||
<None Include="Resources\valencia.png" />
|
||||
<None Include="Resources\villareal.png" />
|
||||
<None Include="Resources\zaragoza.png" />
|
||||
<Content Include="SunnyUI.ico" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
|
188
SunnyUI/Controls/UIFlowLayoutPanel.cs
Normal file
@ -0,0 +1,188 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sunny.UI
|
||||
{
|
||||
public class UIFlowLayoutPanel : UIPanel
|
||||
{
|
||||
private UIVerScrollBarEx Bar;
|
||||
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel;
|
||||
private Timer timer = new Timer();
|
||||
|
||||
public UIFlowLayoutPanel()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
Panel.AutoScroll = true;
|
||||
Panel.ControlAdded += Panel_ControlAdded;
|
||||
Panel.ControlRemoved += Panel_ControlRemoved;
|
||||
Panel.SizeChanged += Panel_SizeChanged;
|
||||
Panel.Scroll += Panel_Scroll;
|
||||
Panel.MouseWheel += Panel_MouseWheel;
|
||||
Panel.MouseEnter += Panel_MouseEnter;
|
||||
Panel.MouseClick += Panel_MouseClick;
|
||||
Bar.ValueChanged += Bar_ValueChanged;
|
||||
}
|
||||
|
||||
public override void SetStyleColor(UIBaseStyle uiColor)
|
||||
{
|
||||
base.SetStyleColor(uiColor);
|
||||
Panel.BackColor = uiColor.PlainColor;
|
||||
}
|
||||
|
||||
public void AddControl(Control ctrl)
|
||||
{
|
||||
Panel.Controls.Add(ctrl);
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
{
|
||||
foreach (Control control in Panel.Controls)
|
||||
{
|
||||
control.Dispose();
|
||||
}
|
||||
|
||||
Panel.Controls.Clear();
|
||||
}
|
||||
|
||||
private void Panel_MouseClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
Panel.Focus();
|
||||
}
|
||||
|
||||
private void Panel_MouseEnter(object sender, EventArgs e)
|
||||
{
|
||||
Panel.Focus();
|
||||
}
|
||||
|
||||
protected override void OnGotFocus(EventArgs e)
|
||||
{
|
||||
base.OnGotFocus(e);
|
||||
Panel.Focus();
|
||||
}
|
||||
|
||||
protected override void OnMouseEnter(EventArgs e)
|
||||
{
|
||||
base.OnMouseEnter(e);
|
||||
Panel.Focus();
|
||||
}
|
||||
|
||||
private void Panel_MouseWheel(object sender, MouseEventArgs e)
|
||||
{
|
||||
if (e.Delta < 0)
|
||||
{
|
||||
if (Panel.VerticalScroll.Maximum > Panel.VerticalScroll.Value + 50)
|
||||
Panel.VerticalScroll.Value += 50;
|
||||
else
|
||||
Panel.VerticalScroll.Value = Panel.VerticalScroll.Maximum;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Panel.VerticalScroll.Value > 50)
|
||||
Panel.VerticalScroll.Value -= 50;
|
||||
else
|
||||
Panel.VerticalScroll.Value = 0;
|
||||
}
|
||||
|
||||
Bar.Value = Panel.VerticalScroll.Value;
|
||||
}
|
||||
|
||||
private void Bar_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
Panel.VerticalScroll.Value = Bar.Value;
|
||||
}
|
||||
|
||||
private void Panel_Scroll(object sender, ScrollEventArgs e)
|
||||
{
|
||||
Bar.Value = Panel.VerticalScroll.Value;
|
||||
}
|
||||
|
||||
private void Panel_SizeChanged(object sender, EventArgs e)
|
||||
{
|
||||
SetScrollInfo();
|
||||
}
|
||||
|
||||
private void Panel_ControlRemoved(object sender, ControlEventArgs e)
|
||||
{
|
||||
SetScrollInfo();
|
||||
}
|
||||
|
||||
private void Panel_ControlAdded(object sender, ControlEventArgs e)
|
||||
{
|
||||
SetScrollInfo();
|
||||
}
|
||||
|
||||
private void SetScrollInfo()
|
||||
{
|
||||
Bar.Visible = Panel.VerticalScroll.Visible;
|
||||
Bar.Maximum = Panel.VerticalScroll.Maximum;
|
||||
Bar.Value = Panel.VerticalScroll.Value;
|
||||
Bar.LargeChange = Panel.VerticalScroll.LargeChange;
|
||||
Bar.BoundsHeight = Panel.VerticalScroll.LargeChange;
|
||||
}
|
||||
|
||||
public FlowLayoutPanel Panel => flowLayoutPanel;
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.flowLayoutPanel = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.Bar = new Sunny.UI.UIVerScrollBarEx();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// flowLayoutPanel
|
||||
//
|
||||
this.flowLayoutPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
|
||||
this.flowLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.flowLayoutPanel.Location = new System.Drawing.Point(2, 2);
|
||||
this.flowLayoutPanel.Name = "flowLayoutPanel";
|
||||
this.flowLayoutPanel.Size = new System.Drawing.Size(429, 383);
|
||||
this.flowLayoutPanel.TabIndex = 0;
|
||||
//
|
||||
// Bar
|
||||
//
|
||||
this.Bar.BoundsHeight = 10;
|
||||
this.Bar.Font = new System.Drawing.Font("微软雅黑", 12F);
|
||||
this.Bar.LargeChange = 10;
|
||||
this.Bar.Location = new System.Drawing.Point(410, 5);
|
||||
this.Bar.Maximum = 100;
|
||||
this.Bar.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.Bar.Name = "Bar";
|
||||
this.Bar.Size = new System.Drawing.Size(18, 377);
|
||||
this.Bar.TabIndex = 1;
|
||||
this.Bar.Text = "uiVerScrollBarEx1";
|
||||
this.Bar.Value = 0;
|
||||
//
|
||||
// UIFlowLayoutPanel
|
||||
//
|
||||
this.Controls.Add(this.Bar);
|
||||
this.Controls.Add(this.flowLayoutPanel);
|
||||
this.Name = "UIFlowLayoutPanel";
|
||||
this.Padding = new System.Windows.Forms.Padding(2);
|
||||
this.Size = new System.Drawing.Size(433, 387);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
protected override void OnSizeChanged(EventArgs e)
|
||||
{
|
||||
base.OnSizeChanged(e);
|
||||
|
||||
if (Bar != null)
|
||||
{
|
||||
if (RadiusSides != UICornerRadiusSides.None)
|
||||
{
|
||||
int added = Radius / 2;
|
||||
Bar.Left = Width - Bar.Width - added;
|
||||
Bar.Top = added;
|
||||
Bar.Height = Height - added * 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
Bar.Left = Width - Bar.Width - 1;
|
||||
Bar.Top = 1;
|
||||
Bar.Height = Height - 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -261,6 +261,16 @@ namespace Sunny.UI
|
||||
AddImage(new ImageListItem(imagePath, description));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加图片
|
||||
/// </summary>
|
||||
/// <param name="image">图片</param>
|
||||
/// <param name="description">图片描述</param>
|
||||
public void AddImage(Bitmap image, string description = "")
|
||||
{
|
||||
AddImage(new ImageListItem(image, description));
|
||||
}
|
||||
|
||||
public void SelectedFirst()
|
||||
{
|
||||
listbox.SelectedFirst();
|
||||
@ -549,6 +559,11 @@ namespace Sunny.UI
|
||||
AddImage(new ImageListItem(imagePath, description));
|
||||
}
|
||||
|
||||
public void AddImage(Bitmap image, string description = "")
|
||||
{
|
||||
AddImage(new ImageListItem(image, description));
|
||||
}
|
||||
|
||||
public delegate void OnBeforeDrawItem(object sender, ObjectCollection items, DrawItemEventArgs e);
|
||||
|
||||
public event OnBeforeDrawItem BeforeDrawItem;
|
||||
@ -610,21 +625,17 @@ namespace Sunny.UI
|
||||
SizeF sf = g.MeasureString("ImageListBox", Font);
|
||||
int thumbnailSize = ShowDescription ? ((int)(ItemHeight - ImageInterval - sf.Height)) : (ItemHeight - ImageInterval * 2);
|
||||
|
||||
if (File.Exists(item.ImagePath))
|
||||
if (item.Image != null)
|
||||
{
|
||||
Image image = new Bitmap(item.ImagePath);
|
||||
|
||||
if (image.Width <= thumbnailSize && image.Height <= thumbnailSize)
|
||||
if (item.Image.Width <= thumbnailSize && item.Image.Height <= thumbnailSize)
|
||||
{
|
||||
g.DrawImage(image, new Rectangle(ImageInterval, ImageInterval, image.Width, image.Height));
|
||||
g.DrawImage(item.Image, new Rectangle(ImageInterval, ImageInterval, item.Image.Width, item.Image.Height));
|
||||
}
|
||||
else
|
||||
{
|
||||
float scale = thumbnailSize * 1.0f / image.Height;
|
||||
g.DrawImage(image, new Rectangle(ImageInterval, ImageInterval, (int)(image.Width * scale), (int)(image.Height * scale)));
|
||||
float scale = thumbnailSize * 1.0f / item.Image.Height;
|
||||
g.DrawImage(item.Image, new Rectangle(ImageInterval, ImageInterval, (int)(item.Image.Width * scale), (int)(item.Image.Height * scale)));
|
||||
}
|
||||
|
||||
image.Dispose();
|
||||
}
|
||||
|
||||
if (ShowDescription && !string.IsNullOrEmpty(item.Description))
|
||||
@ -688,21 +699,40 @@ namespace Sunny.UI
|
||||
}
|
||||
}
|
||||
|
||||
public class ImageListItem
|
||||
public class ImageListItem : IDisposable
|
||||
{
|
||||
public string ImagePath { get; set; }
|
||||
public string ImagePath { get; private set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
|
||||
public Bitmap Image { get; private set; }
|
||||
|
||||
public ImageListItem(string imagePath, string description = "")
|
||||
{
|
||||
if (File.Exists(imagePath))
|
||||
{
|
||||
ImagePath = imagePath;
|
||||
Image = new Bitmap(imagePath);
|
||||
}
|
||||
|
||||
Description = description;
|
||||
}
|
||||
|
||||
public ImageListItem(Bitmap image, string description = "")
|
||||
{
|
||||
ImagePath = "";
|
||||
Image = new Bitmap(image);
|
||||
Description = description;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return ImagePath;
|
||||
return Description + ", " + ImagePath;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Image?.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -116,6 +116,9 @@
|
||||
<Compile Include="Charts\UIPieChart.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\UIFlowLayoutPanel.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\UIHorScrollBar.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
|