基线 SVN r240
SVN-Revision: r240
This commit is contained in:
+83
@@ -0,0 +1,83 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class CornerLab
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.cb_mark = new Lskj.Control.CircleButton();
|
||||
this.lbl_mark_num = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// cb_mark
|
||||
//
|
||||
this.cb_mark.BackColor = System.Drawing.Color.Red;
|
||||
this.cb_mark.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
|
||||
this.cb_mark.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.cb_mark.FlatAppearance.BorderSize = 0;
|
||||
this.cb_mark.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.cb_mark.ImageEnter = null;
|
||||
this.cb_mark.ImageNormal = null;
|
||||
this.cb_mark.Location = new System.Drawing.Point(0, 0);
|
||||
this.cb_mark.Name = "cb_mark";
|
||||
this.cb_mark.Radius = 24;
|
||||
this.cb_mark.Size = new System.Drawing.Size(24, 24);
|
||||
this.cb_mark.TabIndex = 5;
|
||||
this.cb_mark.UseVisualStyleBackColor = false;
|
||||
this.cb_mark.Visible = false;
|
||||
//
|
||||
// lbl_mark_num
|
||||
//
|
||||
this.lbl_mark_num.AutoSize = true;
|
||||
this.lbl_mark_num.BackColor = System.Drawing.Color.Red;
|
||||
this.lbl_mark_num.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lbl_mark_num.ForeColor = System.Drawing.Color.White;
|
||||
this.lbl_mark_num.Location = new System.Drawing.Point(3, 6);
|
||||
this.lbl_mark_num.Name = "lbl_mark_num";
|
||||
this.lbl_mark_num.Size = new System.Drawing.Size(19, 12);
|
||||
this.lbl_mark_num.TabIndex = 6;
|
||||
this.lbl_mark_num.Text = "99";
|
||||
this.lbl_mark_num.Visible = false;
|
||||
//
|
||||
// CornerLab
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.Controls.Add(this.lbl_mark_num);
|
||||
this.Controls.Add(this.cb_mark);
|
||||
this.Name = "CornerLab";
|
||||
this.Size = new System.Drawing.Size(24, 24);
|
||||
this.Paint += new System.Windows.Forms.PaintEventHandler(this.MenuItem_Paint);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private Lskj.Control.CircleButton cb_mark;
|
||||
private System.Windows.Forms.Label lbl_mark_num;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
public partial class CornerLab : UserControl
|
||||
{
|
||||
public CornerLab()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
#region 设置公共圆角的角标数量
|
||||
/// <summary>
|
||||
/// <para>说明:设置公共圆角的角标数量</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2021-06-21 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="PaintEventArgs"/> instance containing the event data.</param>
|
||||
public void SetMenuNum(int num)
|
||||
{
|
||||
if (num < 1)
|
||||
{
|
||||
this.cb_mark.Visible = false;
|
||||
this.lbl_mark_num.Visible = false;
|
||||
this.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.cb_mark.Visible = true;
|
||||
this.lbl_mark_num.Visible = true;
|
||||
this.lbl_mark_num.BringToFront();
|
||||
|
||||
if (num < 10)
|
||||
{
|
||||
this.lbl_mark_num.Location = new Point(6, 6);
|
||||
}
|
||||
if (num > 99)
|
||||
num = 99;
|
||||
this.lbl_mark_num.Text = num + "";
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
/// <summary>
|
||||
/// <para>说明:重绘圆角</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="PaintEventArgs"/> instance containing the event data.</param>
|
||||
private void MenuItem_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
System.Drawing.Drawing2D.GraphicsPath oPath = new System.Drawing.Drawing2D.GraphicsPath();
|
||||
int x = 0;
|
||||
int y = 0;
|
||||
int thisWidth = this.Width;
|
||||
int thisHeight = this.Height;
|
||||
int angle = 20;
|
||||
if (angle > 0)
|
||||
{
|
||||
System.Drawing.Graphics g = CreateGraphics();
|
||||
oPath.AddArc(x, y, angle, angle, 180, 90); // 左上角
|
||||
oPath.AddArc(thisWidth - angle, y, angle, angle, 270, 90); // 右上角
|
||||
oPath.AddArc(thisWidth - angle, thisHeight - angle, angle, angle, 0, 90); // 右下角
|
||||
oPath.AddArc(x, thisHeight - angle, angle, angle, 90, 90); // 左下角
|
||||
oPath.CloseAllFigures();
|
||||
Region = new System.Drawing.Region(oPath);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
<?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>
|
||||
<metadata name="lbl_mark_num.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
+931
@@ -0,0 +1,931 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class MainPanelControlEx
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainPanelControlEx));
|
||||
this.plRightLine = new System.Windows.Forms.Panel();
|
||||
this.pl_center_main_right = new System.Windows.Forms.Panel();
|
||||
this.pl_center_main_bottom_right = new System.Windows.Forms.Panel();
|
||||
this.pl_center_main_bottom_right_main = new System.Windows.Forms.Panel();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.pl_center_main_bottom_left = new System.Windows.Forms.Panel();
|
||||
this.pl_center_main_bottom_left_main = new System.Windows.Forms.Panel();
|
||||
this.panel6 = new System.Windows.Forms.Panel();
|
||||
this.lblShortcutset = new System.Windows.Forms.Label();
|
||||
this.pl_center_main_right_container = new System.Windows.Forms.Panel();
|
||||
this.panel5 = new System.Windows.Forms.Panel();
|
||||
this.tslCompany = new System.Windows.Forms.ToolStripLabel();
|
||||
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
|
||||
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.tsmi_account_book = new System.Windows.Forms.ToolStripLabel();
|
||||
this.toolStripLabel2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.tsmi_userName = new System.Windows.Forms.ToolStripLabel();
|
||||
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
|
||||
this.tsmi_split = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.pl_center = new System.Windows.Forms.Panel();
|
||||
this.tabMain = new DevExpress.XtraTab.XtraTabControl();
|
||||
this.xtpFirst = new DevExpress.XtraTab.XtraTabPage();
|
||||
this.pl_center_main = new System.Windows.Forms.Panel();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.pl_center_left = new System.Windows.Forms.Panel();
|
||||
this.tv_left = new Lskj.Main3.Control.TreeViewCustom();
|
||||
this.xtpDesktop = new DevExpress.XtraTab.XtraTabPage();
|
||||
this.plDesktop = new System.Windows.Forms.Panel();
|
||||
this.moduleWebView1 = new Lskj.Control.ModuleWebView();
|
||||
this.panel4 = new System.Windows.Forms.Panel();
|
||||
this.plMain = new System.Windows.Forms.Panel();
|
||||
this.plBottom = new System.Windows.Forms.Panel();
|
||||
this.plTop = new System.Windows.Forms.Panel();
|
||||
this.pl_top_center = new System.Windows.Forms.Panel();
|
||||
this.lueUserName = new Lskj.Control.AutoGridLookUp();
|
||||
this.menuMain = new System.Windows.Forms.MenuStrip();
|
||||
this.pic_search = new System.Windows.Forms.PictureBox();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.pl_top_right = new System.Windows.Forms.Panel();
|
||||
this.button6 = new System.Windows.Forms.Button();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.button5 = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.lblMenuTitle = new System.Windows.Forms.Label();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.lblSetting = new System.Windows.Forms.Label();
|
||||
this.lbUserName = new System.Windows.Forms.Label();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.lblSwapUser = new System.Windows.Forms.Label();
|
||||
this.btnMax = new System.Windows.Forms.Button();
|
||||
this.btnMin = new System.Windows.Forms.Button();
|
||||
this.btnClose = new System.Windows.Forms.Button();
|
||||
this.pl_top_left = new System.Windows.Forms.Panel();
|
||||
this.lblSubTitle = new System.Windows.Forms.Label();
|
||||
this.mark_timer = new System.Windows.Forms.Timer(this.components);
|
||||
this.autoGridLookUpEdit1View = new DevExpress.XtraGrid.Views.Grid.GridView();
|
||||
this.pl_center_main_right.SuspendLayout();
|
||||
this.pl_center_main_bottom_right.SuspendLayout();
|
||||
this.pl_center_main_bottom_left.SuspendLayout();
|
||||
this.panel6.SuspendLayout();
|
||||
this.pl_center_main_right_container.SuspendLayout();
|
||||
this.panel5.SuspendLayout();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
this.pl_center.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tabMain)).BeginInit();
|
||||
this.tabMain.SuspendLayout();
|
||||
this.xtpFirst.SuspendLayout();
|
||||
this.pl_center_main.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
this.pl_center_left.SuspendLayout();
|
||||
this.xtpDesktop.SuspendLayout();
|
||||
this.plDesktop.SuspendLayout();
|
||||
this.panel4.SuspendLayout();
|
||||
this.plMain.SuspendLayout();
|
||||
this.plBottom.SuspendLayout();
|
||||
this.plTop.SuspendLayout();
|
||||
this.pl_top_center.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lueUserName.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pic_search)).BeginInit();
|
||||
this.pl_top_right.SuspendLayout();
|
||||
this.pl_top_left.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.autoGridLookUpEdit1View)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// plRightLine
|
||||
//
|
||||
this.plRightLine.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(187)))), ((int)(((byte)(187)))), ((int)(((byte)(187)))));
|
||||
this.plRightLine.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.plRightLine.Location = new System.Drawing.Point(0, 0);
|
||||
this.plRightLine.Name = "plRightLine";
|
||||
this.plRightLine.Size = new System.Drawing.Size(2, 584);
|
||||
this.plRightLine.TabIndex = 6;
|
||||
//
|
||||
// pl_center_main_right
|
||||
//
|
||||
this.pl_center_main_right.Controls.Add(this.pl_center_main_bottom_right);
|
||||
this.pl_center_main_right.Controls.Add(this.pl_center_main_bottom_left);
|
||||
this.pl_center_main_right.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_center_main_right.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_center_main_right.Name = "pl_center_main_right";
|
||||
this.pl_center_main_right.Size = new System.Drawing.Size(162, 584);
|
||||
this.pl_center_main_right.TabIndex = 5;
|
||||
//
|
||||
// pl_center_main_bottom_right
|
||||
//
|
||||
this.pl_center_main_bottom_right.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
|
||||
this.pl_center_main_bottom_right.Controls.Add(this.pl_center_main_bottom_right_main);
|
||||
this.pl_center_main_bottom_right.Controls.Add(this.label4);
|
||||
this.pl_center_main_bottom_right.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pl_center_main_bottom_right.Location = new System.Drawing.Point(0, 312);
|
||||
this.pl_center_main_bottom_right.Name = "pl_center_main_bottom_right";
|
||||
this.pl_center_main_bottom_right.Size = new System.Drawing.Size(162, 272);
|
||||
this.pl_center_main_bottom_right.TabIndex = 1;
|
||||
//
|
||||
// pl_center_main_bottom_right_main
|
||||
//
|
||||
this.pl_center_main_bottom_right_main.AutoScroll = true;
|
||||
this.pl_center_main_bottom_right_main.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
|
||||
this.pl_center_main_bottom_right_main.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_center_main_bottom_right_main.Location = new System.Drawing.Point(0, 20);
|
||||
this.pl_center_main_bottom_right_main.Name = "pl_center_main_bottom_right_main";
|
||||
this.pl_center_main_bottom_right_main.Size = new System.Drawing.Size(162, 252);
|
||||
this.pl_center_main_bottom_right_main.TabIndex = 3;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208)))));
|
||||
this.label4.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.label4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(86)))), ((int)(((byte)(86)))));
|
||||
this.label4.Location = new System.Drawing.Point(0, 0);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(162, 20);
|
||||
this.label4.TabIndex = 2;
|
||||
this.label4.Text = " 快捷报表通道";
|
||||
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.label4.DoubleClick += new System.EventHandler(this.OnShortCutDoubleClick);
|
||||
//
|
||||
// pl_center_main_bottom_left
|
||||
//
|
||||
this.pl_center_main_bottom_left.Controls.Add(this.pl_center_main_bottom_left_main);
|
||||
this.pl_center_main_bottom_left.Controls.Add(this.panel6);
|
||||
this.pl_center_main_bottom_left.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pl_center_main_bottom_left.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_center_main_bottom_left.Name = "pl_center_main_bottom_left";
|
||||
this.pl_center_main_bottom_left.Size = new System.Drawing.Size(162, 312);
|
||||
this.pl_center_main_bottom_left.TabIndex = 0;
|
||||
//
|
||||
// pl_center_main_bottom_left_main
|
||||
//
|
||||
this.pl_center_main_bottom_left_main.AutoScroll = true;
|
||||
this.pl_center_main_bottom_left_main.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
|
||||
this.pl_center_main_bottom_left_main.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_center_main_bottom_left_main.Location = new System.Drawing.Point(0, 20);
|
||||
this.pl_center_main_bottom_left_main.Name = "pl_center_main_bottom_left_main";
|
||||
this.pl_center_main_bottom_left_main.Size = new System.Drawing.Size(162, 292);
|
||||
this.pl_center_main_bottom_left_main.TabIndex = 3;
|
||||
//
|
||||
// panel6
|
||||
//
|
||||
this.panel6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(193)))), ((int)(((byte)(193)))), ((int)(((byte)(193)))));
|
||||
this.panel6.Controls.Add(this.lblShortcutset);
|
||||
this.panel6.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel6.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel6.Name = "panel6";
|
||||
this.panel6.Size = new System.Drawing.Size(162, 20);
|
||||
this.panel6.TabIndex = 1;
|
||||
//
|
||||
// lblShortcutset
|
||||
//
|
||||
this.lblShortcutset.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208)))));
|
||||
this.lblShortcutset.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblShortcutset.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblShortcutset.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(85)))), ((int)(((byte)(85)))), ((int)(((byte)(85)))));
|
||||
this.lblShortcutset.Location = new System.Drawing.Point(0, 0);
|
||||
this.lblShortcutset.Name = "lblShortcutset";
|
||||
this.lblShortcutset.Size = new System.Drawing.Size(162, 20);
|
||||
this.lblShortcutset.TabIndex = 0;
|
||||
this.lblShortcutset.Text = " 快捷操作通道";
|
||||
this.lblShortcutset.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.lblShortcutset.DoubleClick += new System.EventHandler(this.OnShortCutDoubleClick);
|
||||
//
|
||||
// pl_center_main_right_container
|
||||
//
|
||||
this.pl_center_main_right_container.Controls.Add(this.plRightLine);
|
||||
this.pl_center_main_right_container.Controls.Add(this.pl_center_main_right);
|
||||
this.pl_center_main_right_container.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_center_main_right_container.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_center_main_right_container.Name = "pl_center_main_right_container";
|
||||
this.pl_center_main_right_container.Size = new System.Drawing.Size(162, 584);
|
||||
this.pl_center_main_right_container.TabIndex = 6;
|
||||
//
|
||||
// panel5
|
||||
//
|
||||
this.panel5.Controls.Add(this.pl_center_main_right_container);
|
||||
this.panel5.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel5.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel5.Name = "panel5";
|
||||
this.panel5.Size = new System.Drawing.Size(162, 584);
|
||||
this.panel5.TabIndex = 1;
|
||||
//
|
||||
// tslCompany
|
||||
//
|
||||
this.tslCompany.Name = "tslCompany";
|
||||
this.tslCompany.Size = new System.Drawing.Size(0, 27);
|
||||
//
|
||||
// toolStrip1
|
||||
//
|
||||
this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
|
||||
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
|
||||
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.tslCompany,
|
||||
this.toolStripSeparator2,
|
||||
this.tsmi_account_book,
|
||||
this.toolStripLabel2,
|
||||
this.tsmi_userName,
|
||||
this.toolStripSeparator1,
|
||||
this.toolStripLabel1,
|
||||
this.tsmi_split});
|
||||
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new System.Drawing.Size(1275, 30);
|
||||
this.toolStrip1.TabIndex = 8;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
//
|
||||
// toolStripSeparator2
|
||||
//
|
||||
this.toolStripSeparator2.Name = "toolStripSeparator2";
|
||||
this.toolStripSeparator2.Size = new System.Drawing.Size(6, 30);
|
||||
//
|
||||
// tsmi_account_book
|
||||
//
|
||||
this.tsmi_account_book.Name = "tsmi_account_book";
|
||||
this.tsmi_account_book.Size = new System.Drawing.Size(92, 27);
|
||||
this.tsmi_account_book.Text = "账套:默认帐套";
|
||||
//
|
||||
// toolStripLabel2
|
||||
//
|
||||
this.toolStripLabel2.Name = "toolStripLabel2";
|
||||
this.toolStripLabel2.Size = new System.Drawing.Size(6, 30);
|
||||
//
|
||||
// tsmi_userName
|
||||
//
|
||||
this.tsmi_userName.Name = "tsmi_userName";
|
||||
this.tsmi_userName.Size = new System.Drawing.Size(92, 27);
|
||||
this.tsmi_userName.Text = "用户名:管理员";
|
||||
//
|
||||
// toolStripSeparator1
|
||||
//
|
||||
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 30);
|
||||
//
|
||||
// toolStripLabel1
|
||||
//
|
||||
this.toolStripLabel1.Name = "toolStripLabel1";
|
||||
this.toolStripLabel1.Size = new System.Drawing.Size(81, 27);
|
||||
this.toolStripLabel1.Text = "版本号:V6.0";
|
||||
//
|
||||
// tsmi_split
|
||||
//
|
||||
this.tsmi_split.Name = "tsmi_split";
|
||||
this.tsmi_split.Size = new System.Drawing.Size(6, 30);
|
||||
//
|
||||
// pl_center
|
||||
//
|
||||
this.pl_center.Controls.Add(this.tabMain);
|
||||
this.pl_center.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_center.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_center.Name = "pl_center";
|
||||
this.pl_center.Size = new System.Drawing.Size(1275, 611);
|
||||
this.pl_center.TabIndex = 2;
|
||||
//
|
||||
// tabMain
|
||||
//
|
||||
this.tabMain.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.tabMain.Appearance.Options.UseBackColor = true;
|
||||
this.tabMain.AppearancePage.Header.Font = new System.Drawing.Font("宋体", 9F);
|
||||
this.tabMain.AppearancePage.Header.ForeColor = System.Drawing.Color.Black;
|
||||
this.tabMain.AppearancePage.Header.Options.UseFont = true;
|
||||
this.tabMain.AppearancePage.Header.Options.UseForeColor = true;
|
||||
this.tabMain.AppearancePage.Header.Options.UseTextOptions = true;
|
||||
this.tabMain.AppearancePage.Header.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.tabMain.AppearancePage.Header.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
|
||||
this.tabMain.AppearancePage.PageClient.Font = new System.Drawing.Font("宋体", 9F);
|
||||
this.tabMain.AppearancePage.PageClient.Options.UseFont = true;
|
||||
this.tabMain.BackgroundImage = global::Lskj.Main3.Properties.Resources.tab_bg;
|
||||
this.tabMain.ClosePageButtonShowMode = DevExpress.XtraTab.ClosePageButtonShowMode.InActiveTabPageHeader;
|
||||
this.tabMain.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabMain.Location = new System.Drawing.Point(0, 0);
|
||||
this.tabMain.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.tabMain.Name = "tabMain";
|
||||
this.tabMain.SelectedTabPage = this.xtpFirst;
|
||||
this.tabMain.Size = new System.Drawing.Size(1275, 611);
|
||||
this.tabMain.TabIndex = 0;
|
||||
this.tabMain.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
|
||||
this.xtpFirst,
|
||||
this.xtpDesktop});
|
||||
this.tabMain.SelectedPageChanged += new DevExpress.XtraTab.TabPageChangedEventHandler(this.OnSelectedPageChanged);
|
||||
this.tabMain.CloseButtonClick += new System.EventHandler(this.OnTabMainClick);
|
||||
this.tabMain.DoubleClick += new System.EventHandler(this.OnTabMainClick);
|
||||
//
|
||||
// xtpFirst
|
||||
//
|
||||
this.xtpFirst.Appearance.PageClient.BackColor = System.Drawing.Color.Black;
|
||||
this.xtpFirst.Appearance.PageClient.Options.UseBackColor = true;
|
||||
this.xtpFirst.Controls.Add(this.pl_center_main);
|
||||
this.xtpFirst.Controls.Add(this.pl_center_left);
|
||||
this.xtpFirst.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.xtpFirst.Name = "xtpFirst";
|
||||
this.xtpFirst.ShowCloseButton = DevExpress.Utils.DefaultBoolean.False;
|
||||
this.xtpFirst.Size = new System.Drawing.Size(1269, 584);
|
||||
this.xtpFirst.Text = " 功能导航 ";
|
||||
//
|
||||
// pl_center_main
|
||||
//
|
||||
this.pl_center_main.BackColor = System.Drawing.Color.White;
|
||||
this.pl_center_main.Controls.Add(this.panel1);
|
||||
this.pl_center_main.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_center_main.Location = new System.Drawing.Point(141, 0);
|
||||
this.pl_center_main.Name = "pl_center_main";
|
||||
this.pl_center_main.Size = new System.Drawing.Size(1128, 584);
|
||||
this.pl_center_main.TabIndex = 1;
|
||||
this.pl_center_main.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.OnTopMouseDoubleClick);
|
||||
this.pl_center_main.MouseDown += new System.Windows.Forms.MouseEventHandler(this.OnTopMouseDown);
|
||||
this.pl_center_main.MouseMove += new System.Windows.Forms.MouseEventHandler(this.OnTopMouseMove);
|
||||
this.pl_center_main.MouseUp += new System.Windows.Forms.MouseEventHandler(this.OnTopMouseUp);
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.BackColor = System.Drawing.Color.Transparent;
|
||||
this.panel1.Controls.Add(this.panel5);
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.panel1.Location = new System.Drawing.Point(966, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(162, 584);
|
||||
this.panel1.TabIndex = 7;
|
||||
//
|
||||
// pl_center_left
|
||||
//
|
||||
this.pl_center_left.AutoScroll = true;
|
||||
this.pl_center_left.BackColor = System.Drawing.Color.White;
|
||||
this.pl_center_left.Controls.Add(this.tv_left);
|
||||
this.pl_center_left.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.pl_center_left.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_center_left.Name = "pl_center_left";
|
||||
this.pl_center_left.Padding = new System.Windows.Forms.Padding(4);
|
||||
this.pl_center_left.Size = new System.Drawing.Size(141, 584);
|
||||
this.pl_center_left.TabIndex = 0;
|
||||
//
|
||||
// tv_left
|
||||
//
|
||||
this.tv_left.AutoScroll = true;
|
||||
this.tv_left.BackColor = System.Drawing.Color.White;
|
||||
this.tv_left.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tv_left.Location = new System.Drawing.Point(4, 4);
|
||||
this.tv_left.Name = "tv_left";
|
||||
this.tv_left.Size = new System.Drawing.Size(133, 576);
|
||||
this.tv_left.TabIndex = 1;
|
||||
//
|
||||
// xtpDesktop
|
||||
//
|
||||
this.xtpDesktop.Appearance.PageClient.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
|
||||
this.xtpDesktop.Appearance.PageClient.Options.UseBackColor = true;
|
||||
this.xtpDesktop.Controls.Add(this.plDesktop);
|
||||
this.xtpDesktop.Name = "xtpDesktop";
|
||||
this.xtpDesktop.PageVisible = false;
|
||||
this.xtpDesktop.ShowCloseButton = DevExpress.Utils.DefaultBoolean.False;
|
||||
this.xtpDesktop.Size = new System.Drawing.Size(1269, 584);
|
||||
this.xtpDesktop.Text = " 我的桌面 ";
|
||||
//
|
||||
// plDesktop
|
||||
//
|
||||
this.plDesktop.AutoScroll = true;
|
||||
this.plDesktop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
|
||||
this.plDesktop.Controls.Add(this.moduleWebView1);
|
||||
this.plDesktop.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.plDesktop.Location = new System.Drawing.Point(0, 0);
|
||||
this.plDesktop.Name = "plDesktop";
|
||||
this.plDesktop.Size = new System.Drawing.Size(1269, 584);
|
||||
this.plDesktop.TabIndex = 1;
|
||||
//
|
||||
// moduleWebView1
|
||||
//
|
||||
this.moduleWebView1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.moduleWebView1.Location = new System.Drawing.Point(0, 0);
|
||||
this.moduleWebView1.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.moduleWebView1.Name = "moduleWebView1";
|
||||
this.moduleWebView1.Size = new System.Drawing.Size(1269, 584);
|
||||
this.moduleWebView1.TabIndex = 0;
|
||||
//
|
||||
// panel4
|
||||
//
|
||||
this.panel4.Controls.Add(this.pl_center);
|
||||
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel4.Location = new System.Drawing.Point(0, 55);
|
||||
this.panel4.Name = "panel4";
|
||||
this.panel4.Size = new System.Drawing.Size(1275, 611);
|
||||
this.panel4.TabIndex = 3;
|
||||
//
|
||||
// plMain
|
||||
//
|
||||
this.plMain.Controls.Add(this.panel4);
|
||||
this.plMain.Controls.Add(this.plBottom);
|
||||
this.plMain.Controls.Add(this.plTop);
|
||||
this.plMain.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.plMain.Location = new System.Drawing.Point(0, 0);
|
||||
this.plMain.Name = "plMain";
|
||||
this.plMain.Size = new System.Drawing.Size(1275, 696);
|
||||
this.plMain.TabIndex = 2;
|
||||
//
|
||||
// plBottom
|
||||
//
|
||||
this.plBottom.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
|
||||
this.plBottom.Controls.Add(this.toolStrip1);
|
||||
this.plBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.plBottom.Location = new System.Drawing.Point(0, 666);
|
||||
this.plBottom.Name = "plBottom";
|
||||
this.plBottom.Size = new System.Drawing.Size(1275, 30);
|
||||
this.plBottom.TabIndex = 1;
|
||||
//
|
||||
// plTop
|
||||
//
|
||||
this.plTop.Controls.Add(this.pl_top_center);
|
||||
this.plTop.Controls.Add(this.panel3);
|
||||
this.plTop.Controls.Add(this.pl_top_right);
|
||||
this.plTop.Controls.Add(this.pl_top_left);
|
||||
this.plTop.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.plTop.Location = new System.Drawing.Point(0, 0);
|
||||
this.plTop.Name = "plTop";
|
||||
this.plTop.Size = new System.Drawing.Size(1275, 55);
|
||||
this.plTop.TabIndex = 0;
|
||||
//
|
||||
// pl_top_center
|
||||
//
|
||||
this.pl_top_center.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(87)))), ((int)(((byte)(167)))));
|
||||
this.pl_top_center.Controls.Add(this.lueUserName);
|
||||
this.pl_top_center.Controls.Add(this.menuMain);
|
||||
this.pl_top_center.Controls.Add(this.pic_search);
|
||||
this.pl_top_center.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_top_center.Location = new System.Drawing.Point(245, 0);
|
||||
this.pl_top_center.Name = "pl_top_center";
|
||||
this.pl_top_center.Size = new System.Drawing.Size(614, 55);
|
||||
this.pl_top_center.TabIndex = 3;
|
||||
//
|
||||
// lueUserName
|
||||
//
|
||||
this.lueUserName.DataSource = null;
|
||||
this.lueUserName.EditValue = "";
|
||||
this.lueUserName.Location = new System.Drawing.Point(220, 13);
|
||||
this.lueUserName.Name = "lueUserName";
|
||||
this.lueUserName.Properties.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(108)))), ((int)(((byte)(185)))));
|
||||
this.lueUserName.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.lueUserName.Properties.Appearance.ForeColor = System.Drawing.Color.White;
|
||||
this.lueUserName.Properties.Appearance.Options.UseBackColor = true;
|
||||
this.lueUserName.Properties.Appearance.Options.UseFont = true;
|
||||
this.lueUserName.Properties.Appearance.Options.UseForeColor = true;
|
||||
this.lueUserName.Size = new System.Drawing.Size(147, 26);
|
||||
this.lueUserName.TabIndex = 58;
|
||||
this.lueUserName.OnPopupClosed += new System.EventHandler(this.OnUserNamePopupClosed);
|
||||
//
|
||||
// menuMain
|
||||
//
|
||||
this.menuMain.BackColor = System.Drawing.Color.Transparent;
|
||||
this.menuMain.Dock = System.Windows.Forms.DockStyle.None;
|
||||
this.menuMain.Font = new System.Drawing.Font("宋体", 9F);
|
||||
this.menuMain.ImageScalingSize = new System.Drawing.Size(20, 20);
|
||||
this.menuMain.Location = new System.Drawing.Point(-6, 14);
|
||||
this.menuMain.Name = "menuMain";
|
||||
this.menuMain.Size = new System.Drawing.Size(202, 24);
|
||||
this.menuMain.TabIndex = 0;
|
||||
this.menuMain.Text = "menuStrip1";
|
||||
//
|
||||
// pic_search
|
||||
//
|
||||
this.pic_search.ErrorImage = null;
|
||||
this.pic_search.Image = global::Lskj.Main3.Properties.Resources.search_default;
|
||||
this.pic_search.InitialImage = null;
|
||||
this.pic_search.Location = new System.Drawing.Point(367, 13);
|
||||
this.pic_search.Name = "pic_search";
|
||||
this.pic_search.Size = new System.Drawing.Size(46, 25);
|
||||
this.pic_search.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.pic_search.TabIndex = 57;
|
||||
this.pic_search.TabStop = false;
|
||||
this.pic_search.Click += new System.EventHandler(this.OnSearchClick);
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
this.panel3.BackgroundImage = global::Lskj.Main3.Properties.Resources.split;
|
||||
this.panel3.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.panel3.Location = new System.Drawing.Point(226, 0);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Size = new System.Drawing.Size(19, 55);
|
||||
this.panel3.TabIndex = 1;
|
||||
//
|
||||
// pl_top_right
|
||||
//
|
||||
this.pl_top_right.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pl_top_right.BackgroundImage")));
|
||||
this.pl_top_right.Controls.Add(this.button6);
|
||||
this.pl_top_right.Controls.Add(this.label3);
|
||||
this.pl_top_right.Controls.Add(this.label2);
|
||||
this.pl_top_right.Controls.Add(this.button5);
|
||||
this.pl_top_right.Controls.Add(this.label1);
|
||||
this.pl_top_right.Controls.Add(this.button4);
|
||||
this.pl_top_right.Controls.Add(this.lblMenuTitle);
|
||||
this.pl_top_right.Controls.Add(this.button3);
|
||||
this.pl_top_right.Controls.Add(this.lblSetting);
|
||||
this.pl_top_right.Controls.Add(this.lbUserName);
|
||||
this.pl_top_right.Controls.Add(this.button2);
|
||||
this.pl_top_right.Controls.Add(this.button1);
|
||||
this.pl_top_right.Controls.Add(this.lblSwapUser);
|
||||
this.pl_top_right.Controls.Add(this.btnMax);
|
||||
this.pl_top_right.Controls.Add(this.btnMin);
|
||||
this.pl_top_right.Controls.Add(this.btnClose);
|
||||
this.pl_top_right.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.pl_top_right.Location = new System.Drawing.Point(859, 0);
|
||||
this.pl_top_right.Name = "pl_top_right";
|
||||
this.pl_top_right.Size = new System.Drawing.Size(416, 55);
|
||||
this.pl_top_right.TabIndex = 1;
|
||||
//
|
||||
// button6
|
||||
//
|
||||
this.button6.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button6.BackgroundImage = global::Lskj.Main3.Properties.Resources.icon_setting;
|
||||
this.button6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.button6.FlatAppearance.BorderSize = 0;
|
||||
this.button6.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.button6.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.button6.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button6.Location = new System.Drawing.Point(150, 29);
|
||||
this.button6.Name = "button6";
|
||||
this.button6.Size = new System.Drawing.Size(21, 23);
|
||||
this.button6.TabIndex = 55;
|
||||
this.button6.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.BackColor = System.Drawing.Color.Transparent;
|
||||
this.label3.ForeColor = System.Drawing.Color.White;
|
||||
this.label3.Location = new System.Drawing.Point(169, 35);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(41, 12);
|
||||
this.label3.TabIndex = 56;
|
||||
this.label3.Text = "分辨率";
|
||||
this.label3.LostFocus += new System.EventHandler(this.label3_LostFocus);
|
||||
this.label3.MouseClick += new System.Windows.Forms.MouseEventHandler(this.label3_MouseClick);
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.BackColor = System.Drawing.Color.Transparent;
|
||||
this.label2.ForeColor = System.Drawing.Color.White;
|
||||
this.label2.Location = new System.Drawing.Point(16, 34);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(53, 12);
|
||||
this.label2.TabIndex = 54;
|
||||
this.label2.Text = "切换系统";
|
||||
this.label2.LostFocus += new System.EventHandler(this.label2_LostFocus);
|
||||
this.label2.MouseClick += new System.Windows.Forms.MouseEventHandler(this.label2_MouseClick);
|
||||
//
|
||||
// button5
|
||||
//
|
||||
this.button5.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button5.BackgroundImage = global::Lskj.Main3.Properties.Resources.swapuser;
|
||||
this.button5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.button5.FlatAppearance.BorderSize = 0;
|
||||
this.button5.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.button5.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button5.Location = new System.Drawing.Point(-3, 30);
|
||||
this.button5.Name = "button5";
|
||||
this.button5.Size = new System.Drawing.Size(21, 23);
|
||||
this.button5.TabIndex = 53;
|
||||
this.button5.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.BackColor = System.Drawing.Color.Transparent;
|
||||
this.label1.ForeColor = System.Drawing.Color.White;
|
||||
this.label1.Location = new System.Drawing.Point(16, 8);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(53, 12);
|
||||
this.label1.TabIndex = 52;
|
||||
this.label1.Text = "切换账套";
|
||||
this.label1.Click += new System.EventHandler(this.label1_Click);
|
||||
this.label1.LostFocus += new System.EventHandler(this.label1_LostFocus);
|
||||
//
|
||||
// button4
|
||||
//
|
||||
this.button4.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button4.BackgroundImage = global::Lskj.Main3.Properties.Resources.swapuser;
|
||||
this.button4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.button4.FlatAppearance.BorderSize = 0;
|
||||
this.button4.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.button4.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button4.Location = new System.Drawing.Point(-3, 3);
|
||||
this.button4.Name = "button4";
|
||||
this.button4.Size = new System.Drawing.Size(21, 23);
|
||||
this.button4.TabIndex = 51;
|
||||
this.button4.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// lblMenuTitle
|
||||
//
|
||||
this.lblMenuTitle.AutoSize = true;
|
||||
this.lblMenuTitle.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lblMenuTitle.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.lblMenuTitle.ForeColor = System.Drawing.Color.White;
|
||||
this.lblMenuTitle.Location = new System.Drawing.Point(77, 34);
|
||||
this.lblMenuTitle.Name = "lblMenuTitle";
|
||||
this.lblMenuTitle.Size = new System.Drawing.Size(0, 12);
|
||||
this.lblMenuTitle.TabIndex = 46;
|
||||
this.lblMenuTitle.Click += new System.EventHandler(this.OnMenuTitleClick);
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button3.BackgroundImage = global::Lskj.Main3.Properties.Resources.icon_setting;
|
||||
this.button3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.button3.FlatAppearance.BorderSize = 0;
|
||||
this.button3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.button3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button3.Location = new System.Drawing.Point(83, 3);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(21, 23);
|
||||
this.button3.TabIndex = 20;
|
||||
this.button3.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// lblSetting
|
||||
//
|
||||
this.lblSetting.AutoSize = true;
|
||||
this.lblSetting.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lblSetting.ForeColor = System.Drawing.Color.White;
|
||||
this.lblSetting.Location = new System.Drawing.Point(102, 8);
|
||||
this.lblSetting.Name = "lblSetting";
|
||||
this.lblSetting.Size = new System.Drawing.Size(29, 12);
|
||||
this.lblSetting.TabIndex = 21;
|
||||
this.lblSetting.Text = "换肤";
|
||||
this.lblSetting.Click += new System.EventHandler(this.OnSettingClick);
|
||||
this.lblSetting.MouseLeave += new System.EventHandler(this.OnSettingMouseLeave);
|
||||
//
|
||||
// lbUserName
|
||||
//
|
||||
this.lbUserName.AutoSize = true;
|
||||
this.lbUserName.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lbUserName.ForeColor = System.Drawing.Color.White;
|
||||
this.lbUserName.Location = new System.Drawing.Point(218, 8);
|
||||
this.lbUserName.Name = "lbUserName";
|
||||
this.lbUserName.Size = new System.Drawing.Size(41, 12);
|
||||
this.lbUserName.TabIndex = 8;
|
||||
this.lbUserName.Text = "管理员";
|
||||
this.lbUserName.Click += new System.EventHandler(this.OnUserNameClick);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button2.BackgroundImage = global::Lskj.Main3.Properties.Resources.swapuser;
|
||||
this.button2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.button2.FlatAppearance.BorderSize = 0;
|
||||
this.button2.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.button2.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button2.Location = new System.Drawing.Point(140, 4);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(21, 23);
|
||||
this.button2.TabIndex = 8;
|
||||
this.button2.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage")));
|
||||
this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.button1.FlatAppearance.BorderSize = 0;
|
||||
this.button1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button1.Location = new System.Drawing.Point(199, 3);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(21, 23);
|
||||
this.button1.TabIndex = 6;
|
||||
this.button1.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// lblSwapUser
|
||||
//
|
||||
this.lblSwapUser.AutoSize = true;
|
||||
this.lblSwapUser.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lblSwapUser.ForeColor = System.Drawing.Color.White;
|
||||
this.lblSwapUser.Location = new System.Drawing.Point(159, 8);
|
||||
this.lblSwapUser.Name = "lblSwapUser";
|
||||
this.lblSwapUser.Size = new System.Drawing.Size(29, 12);
|
||||
this.lblSwapUser.TabIndex = 9;
|
||||
this.lblSwapUser.Text = "切换";
|
||||
this.lblSwapUser.Click += new System.EventHandler(this.OnSwapUserClick);
|
||||
//
|
||||
// btnMax
|
||||
//
|
||||
this.btnMax.BackColor = System.Drawing.Color.Transparent;
|
||||
this.btnMax.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnMax.BackgroundImage")));
|
||||
this.btnMax.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.btnMax.FlatAppearance.BorderSize = 0;
|
||||
this.btnMax.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnMax.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnMax.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnMax.Location = new System.Drawing.Point(355, 2);
|
||||
this.btnMax.Name = "btnMax";
|
||||
this.btnMax.Size = new System.Drawing.Size(30, 23);
|
||||
this.btnMax.TabIndex = 7;
|
||||
this.btnMax.UseVisualStyleBackColor = false;
|
||||
this.btnMax.Click += new System.EventHandler(this.OnBtnMaxClick);
|
||||
this.btnMax.MouseLeave += new System.EventHandler(this.OnBtnMaxMouseLeave);
|
||||
this.btnMax.MouseMove += new System.Windows.Forms.MouseEventHandler(this.OnBtnMaxMouseMove);
|
||||
//
|
||||
// btnMin
|
||||
//
|
||||
this.btnMin.BackColor = System.Drawing.Color.Transparent;
|
||||
this.btnMin.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnMin.BackgroundImage")));
|
||||
this.btnMin.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.btnMin.FlatAppearance.BorderSize = 0;
|
||||
this.btnMin.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnMin.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnMin.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnMin.Location = new System.Drawing.Point(324, 2);
|
||||
this.btnMin.Name = "btnMin";
|
||||
this.btnMin.Size = new System.Drawing.Size(30, 23);
|
||||
this.btnMin.TabIndex = 5;
|
||||
this.btnMin.UseVisualStyleBackColor = false;
|
||||
this.btnMin.Click += new System.EventHandler(this.OnBtnMinClick);
|
||||
this.btnMin.MouseLeave += new System.EventHandler(this.OnBtnMinMouseLeave);
|
||||
this.btnMin.MouseMove += new System.Windows.Forms.MouseEventHandler(this.OnBtnMinMouseMove);
|
||||
//
|
||||
// btnClose
|
||||
//
|
||||
this.btnClose.BackColor = System.Drawing.Color.Transparent;
|
||||
this.btnClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClose.BackgroundImage")));
|
||||
this.btnClose.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.btnClose.FlatAppearance.BorderSize = 0;
|
||||
this.btnClose.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnClose.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnClose.Location = new System.Drawing.Point(385, 2);
|
||||
this.btnClose.Name = "btnClose";
|
||||
this.btnClose.Size = new System.Drawing.Size(30, 23);
|
||||
this.btnClose.TabIndex = 4;
|
||||
this.btnClose.UseVisualStyleBackColor = false;
|
||||
this.btnClose.Click += new System.EventHandler(this.OnBtnCloseClick);
|
||||
this.btnClose.MouseLeave += new System.EventHandler(this.OnBtnCloseMouseLeave);
|
||||
this.btnClose.MouseMove += new System.Windows.Forms.MouseEventHandler(this.OnBtnCloseMouseMove);
|
||||
//
|
||||
// pl_top_left
|
||||
//
|
||||
this.pl_top_left.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pl_top_left.BackgroundImage")));
|
||||
this.pl_top_left.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.pl_top_left.Controls.Add(this.lblSubTitle);
|
||||
this.pl_top_left.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.pl_top_left.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_top_left.Name = "pl_top_left";
|
||||
this.pl_top_left.Size = new System.Drawing.Size(226, 55);
|
||||
this.pl_top_left.TabIndex = 0;
|
||||
this.pl_top_left.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.OnTopMouseDoubleClick);
|
||||
this.pl_top_left.MouseDown += new System.Windows.Forms.MouseEventHandler(this.OnTopMouseDown);
|
||||
this.pl_top_left.MouseMove += new System.Windows.Forms.MouseEventHandler(this.OnTopMouseMove);
|
||||
this.pl_top_left.MouseUp += new System.Windows.Forms.MouseEventHandler(this.OnTopMouseUp);
|
||||
//
|
||||
// lblSubTitle
|
||||
//
|
||||
this.lblSubTitle.AutoSize = true;
|
||||
this.lblSubTitle.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lblSubTitle.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblSubTitle.ForeColor = System.Drawing.Color.White;
|
||||
this.lblSubTitle.Location = new System.Drawing.Point(45, 11);
|
||||
this.lblSubTitle.Name = "lblSubTitle";
|
||||
this.lblSubTitle.Size = new System.Drawing.Size(96, 30);
|
||||
this.lblSubTitle.TabIndex = 1;
|
||||
this.lblSubTitle.Text = "朗速ERP";
|
||||
//
|
||||
// mark_timer
|
||||
//
|
||||
this.mark_timer.Interval = 5000;
|
||||
//
|
||||
// autoGridLookUpEdit1View
|
||||
//
|
||||
this.autoGridLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
|
||||
this.autoGridLookUpEdit1View.Name = "autoGridLookUpEdit1View";
|
||||
this.autoGridLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false;
|
||||
this.autoGridLookUpEdit1View.OptionsView.ShowGroupPanel = false;
|
||||
//
|
||||
// MainPanelControlEx
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.Controls.Add(this.plMain);
|
||||
this.Name = "MainPanelControlEx";
|
||||
this.Size = new System.Drawing.Size(1275, 696);
|
||||
this.pl_center_main_right.ResumeLayout(false);
|
||||
this.pl_center_main_bottom_right.ResumeLayout(false);
|
||||
this.pl_center_main_bottom_left.ResumeLayout(false);
|
||||
this.panel6.ResumeLayout(false);
|
||||
this.pl_center_main_right_container.ResumeLayout(false);
|
||||
this.panel5.ResumeLayout(false);
|
||||
this.toolStrip1.ResumeLayout(false);
|
||||
this.toolStrip1.PerformLayout();
|
||||
this.pl_center.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.tabMain)).EndInit();
|
||||
this.tabMain.ResumeLayout(false);
|
||||
this.xtpFirst.ResumeLayout(false);
|
||||
this.pl_center_main.ResumeLayout(false);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.pl_center_left.ResumeLayout(false);
|
||||
this.xtpDesktop.ResumeLayout(false);
|
||||
this.plDesktop.ResumeLayout(false);
|
||||
this.panel4.ResumeLayout(false);
|
||||
this.plMain.ResumeLayout(false);
|
||||
this.plBottom.ResumeLayout(false);
|
||||
this.plBottom.PerformLayout();
|
||||
this.plTop.ResumeLayout(false);
|
||||
this.pl_top_center.ResumeLayout(false);
|
||||
this.pl_top_center.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lueUserName.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pic_search)).EndInit();
|
||||
this.pl_top_right.ResumeLayout(false);
|
||||
this.pl_top_right.PerformLayout();
|
||||
this.pl_top_left.ResumeLayout(false);
|
||||
this.pl_top_left.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.autoGridLookUpEdit1View)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel plRightLine;
|
||||
private System.Windows.Forms.Panel pl_center_main_right;
|
||||
private System.Windows.Forms.Panel pl_center_main_bottom_right;
|
||||
private System.Windows.Forms.Panel pl_center_main_bottom_right_main;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Panel pl_center_main_bottom_left;
|
||||
private System.Windows.Forms.Panel panel6;
|
||||
private System.Windows.Forms.Panel pl_center_main_right_container;
|
||||
private System.Windows.Forms.Panel panel5;
|
||||
private System.Windows.Forms.ToolStripLabel tslCompany;
|
||||
private System.Windows.Forms.ToolStrip toolStrip1;
|
||||
private System.Windows.Forms.ToolStripLabel tsmi_account_book;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripLabel2;
|
||||
private System.Windows.Forms.ToolStripLabel tsmi_userName;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
|
||||
private System.Windows.Forms.ToolStripLabel toolStripLabel1;
|
||||
private System.Windows.Forms.ToolStripSeparator tsmi_split;
|
||||
private System.Windows.Forms.Panel pl_center;
|
||||
public DevExpress.XtraTab.XtraTabControl tabMain;
|
||||
private DevExpress.XtraTab.XtraTabPage xtpFirst;
|
||||
private System.Windows.Forms.Panel pl_center_main;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private DevExpress.XtraTab.XtraTabPage xtpDesktop;
|
||||
private System.Windows.Forms.Panel plDesktop;
|
||||
private System.Windows.Forms.Panel panel4;
|
||||
private System.Windows.Forms.Panel plMain;
|
||||
private System.Windows.Forms.Panel plBottom;
|
||||
private System.Windows.Forms.Timer mark_timer;
|
||||
private DevExpress.XtraGrid.Views.Grid.GridView autoGridLookUpEdit1View;
|
||||
private System.Windows.Forms.Panel pl_center_left;
|
||||
private TreeViewCustom tv_left;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
|
||||
private Lskj.Control.ModuleWebView moduleWebView1;
|
||||
private System.Windows.Forms.Panel pl_center_main_bottom_left_main;
|
||||
private System.Windows.Forms.Label lblShortcutset;
|
||||
private System.Windows.Forms.Panel plTop;
|
||||
private System.Windows.Forms.Panel panel3;
|
||||
private System.Windows.Forms.Panel pl_top_left;
|
||||
private System.Windows.Forms.Label lblSubTitle;
|
||||
private System.Windows.Forms.Panel pl_top_center;
|
||||
private System.Windows.Forms.MenuStrip menuMain;
|
||||
private System.Windows.Forms.Panel pl_top_right;
|
||||
private System.Windows.Forms.Button button6;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Button button5;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Button button4;
|
||||
private System.Windows.Forms.Label lblMenuTitle;
|
||||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.Label lblSetting;
|
||||
private System.Windows.Forms.Label lbUserName;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Label lblSwapUser;
|
||||
private System.Windows.Forms.Button btnMax;
|
||||
private System.Windows.Forms.Button btnMin;
|
||||
private System.Windows.Forms.Button btnClose;
|
||||
private Lskj.Control.AutoGridLookUp lueUserName;
|
||||
public System.Windows.Forms.PictureBox pic_search;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,218 @@
|
||||
<?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>
|
||||
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>360, 20</value>
|
||||
</metadata>
|
||||
<metadata name="menuMain.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>703, 20</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="pl_top_right.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAAf4AAAA7CAIAAAAVX3/BAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
|
||||
EwAACxMBAJqcGAAAAONJREFUeF7t1EENADAIALG9ZxCJ2ETINamGvj8LQIr6AXLUD5CjfoAc9QPkqB8g
|
||||
R/0AOeoHyFE/QI76AXLUD5CjfoAc9QPkqB8gR/0AOeoHyFE/QI76AXLUD5CjfoAc9QPkqB8gR/0AOeoH
|
||||
yFE/QI76AXLUD5CjfoAc9QPkqB8gR/0AOeoHyFE/QI76AXLUD5CjfoAc9QPkqB8gR/0AOeoHyFE/QI76
|
||||
AXLUD5CjfoAc9QPkqB8gR/0AOeoHyFE/QI76AXLUD5CjfoAc9QPkqB8gR/0AOeoHyFE/QI76AXLUDxAz
|
||||
exgaPWhUCQq9AAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="button1.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
||||
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAERSURBVEhL7dGhasJRFAZw2cA0MEy0q8GwZjVPWHbB
|
||||
pNmsSR9jL6H4ADZ9gRlWt2AUxphBg4Jcv+9ylev1D+ce3WBh4SfH757DB5oyxvwq+/Hyfvtj/mRBCUaw
|
||||
dDgXIWlXXVCABfQh7/RcxrezG23BADpBRl3gW5irC77hPsgoC/y5wlxdsIK7ICNm6yCztAVjaAYZtYBv
|
||||
Ya4uqMAnNODG4cyMb2c32gKqwhvw/yDOzJJ2Lyo4yDlJb0exBRmowbOAO9w93sYUtOELpjAUTIC7vIkq
|
||||
qMMHPHiZhLtz4K1Y8AqP3vdYTzDjLBVsIO19j8WbLWepwHizlr2VCnberGVvpYKyN2vZW6ngav8FotMC
|
||||
k9oDEt5FdrFvjwAAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="btnMax.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
||||
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAEcSURBVEhLY6AU/P//nySMAYTaL/gC8T4g/gzE/8nE
|
||||
L4F4ORBr4rUQqKBFsP7wSy7PwulMglJ5QKE0cjCLnF4ZT0THCqGWM++AZvpgtRAkAbTsBbOwbAGQi9Ug
|
||||
UjG7eUibUOs5kKXi2CzcB/IZkIlVM7mYL3PRfqDZ9dgs/ERJMOLCXJ4F04Fmr8dmIYiHVRMlmMM6ugto
|
||||
9mGyLJx969N/fBibHootxCYOwjSxEB+mmoWw4MKFkdUh64NhsizEJg7CI8dCEE1XC/HhoWEhPoxNDzIm
|
||||
2UJKMT4L6V5407168hWsPUirClgCw0IQAEogmhgCEtRoYrwHmom9iQEDQAV+QAxqRH0BYmwNJGIwrBGl
|
||||
hWwZVgtJBegG4sf/GQCj6eDe5TPWMAAAAABJRU5ErkJggg==
|
||||
</value>
|
||||
</data>
|
||||
<data name="btnMin.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
||||
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAEFSURBVEhLY2AWU6MI////nySMYYDk8v++QLwPiD8D
|
||||
8X8y8UsgXg7EmngtBCpokZj38SV/yuzpbBqOeUCxNHIwh1lYmWDplhWSS36/A5rpg9VCkATQshdsWq4F
|
||||
yJopwTyBdW2SS/+ALBXHZuE+kM+QNVADi7Sf3w80ux6bhZ8oCUZcGOQJoNnrsVn4H1khtTBvaEsX0OzD
|
||||
oxZSDY9aiFUTJXjUQqyaKMGD30KgIqIBNv34LMRaeINNIhKg6wVhfIU3jaqnczirJ1/xuR9oVQFLYFgI
|
||||
wkAJRBND3YEaTYz3QDOxNzFgGKjAD4hBjagvQIytgUQMhjWitJAtw2ohqRjdQPz4PwMAbPpIkp2I5VkA
|
||||
AAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="btnClose.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
||||
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFvSURBVEhLY6AU/P//nySMAYTaL/gC8T4g/gzE/8nE
|
||||
L4F4ORBr4rUQqKBFsP7wSy7PwulMglJ5QKE0cjCLnF4ZT0THCqGWM++AZvpgtRAkAbTsBbOwbAGQi9Ug
|
||||
UjG7eUibUOs5kKXi2CzcB/IZkIlVM7mYL3PRfqDZ9dgs/ERJMOLCXJ4F04Fmr8dmIYiHVRMlmMM6ugto
|
||||
9mGSLFQ3t61o2XXugqyGbjG6HEgMKHcRpAZdDoTJsrB11/mLs299+t9/6sFTZEtBbJAYSA5kKbIeGCbL
|
||||
QjktfbjBMEuRLUN3CDImy0IQRrZ0wumHL0CYkGUgTLaFIAyyFGYRzGJ8loEwRRaCDKebhXQNUmyJBpsY
|
||||
Nr1kWYgrWyBbStVsAcrUIEux+QJkKdUzPiUYn4V0L7zpXj35CtYepFUFLIFhIQgAJRBNDAEJajQx3gPN
|
||||
xN7EgAGgAj8gBjWivgAxtgYSMRjWiNJCtgyrhaQCdAPx4/8MAG6r9s+X5DldAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="pl_top_left.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAAWsAAAA7CAIAAAAy3TxsAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
|
||||
EwAACxMBAJqcGAAABmtJREFUeF7t3HlsFFUcB3D/tgkGRYMaDYkGAyIISIhXTIyCQRIhRqmlgAVBpdTS
|
||||
lkMFBQJSQKhAC4RiqRCxtRe9tktLty30oC0L9L5LW7r0tN1uW7bnbv3tvDfbZTVk+gJ/zOb7yyf0vZk3
|
||||
w1/zzbyZt/PY4ysiAADEIEEAQBwSBADEIUEAQBwSBADEIUEAQBwSBADEIUEAQBwSBADEIUEAQBwSBADE
|
||||
IUEAQBwSBADEIUEAQNyjShA394iIqw3N/9wL19U77QIAl/FIEuSZNdGNHf1jcm0/f5Ntn+wZ9dzaWPsw
|
||||
AFC7h58g0zcmDAyP8vCQKjqvibYvC8watVipeza9znE8AKjXQ06Q93++zFLDXibzMM1oVgbl8L5Uc/01
|
||||
TgcCgBopTZA3tqQExpaFptX6/n7daZddQPgNnhByVRpM7+1MO6Wt4X255vglOx0LAGqkKEHi8u/wS1+q
|
||||
kkbjtA0XHzyGKvVWy1vfX4ovcN4eoqlyOhYAVEpRgngF51XfNfEAkGrHhSLHARXNPXyHXCEp1Qu2aItu
|
||||
d/O+XHujSmi8m8OxAKBeSmcxq47m8gyQ6rh8H7Fwm7bVaOZb5docpl+yN6PTNMj7Ug0OW5YHZnkE5bR0
|
||||
m3vNwx/t0dlPDgAqpTRBdkUU8ySQakv4Ddrofjjbanu7Ml4Wq/XjfRlfHs/jfblq7vbO2JS4KbSQ96Vy
|
||||
PD8AqJHSBIkvaObX/dgYpcYHu9I///Uq78vV0z9EtxgntNW8L5dGb5i24eKZtFrelwtzGQC1U5ogDe3j
|
||||
K8RGLdaSRiPvyNXeMzB9Y8JTq6L8z+rn+mvmbE6micxJbfW5jPql+zL1dV18nFy0y+m/AADVUZQgU71i
|
||||
+HX/f1XZbPIOLZyyOsrpKLv1J/P5ULm+PpXvNAYA1EhRgnifLuCX/v01Mmrdfo6vWCcLt2m3/nEjsbC5
|
||||
saM/u6Jj54Wi+QEpbNdnh/iUp804sHiPjiY7aUUtD1haAgCqoChBghIq2PXvWMUN3a/78aWlfmH6utY+
|
||||
vkNah8pbY2PhuvqXvomnMUnXDWVNxlnfJTmejT2RBQCVUpQgBTWd/IqXK76gme16+dv4m/X8GUdgbNmH
|
||||
u9IpL5glezN0xa20PTK7kUa+uD6O7j7o1oMNZqXRG9h5AECNFCWI5f53tuyXcoQygm05EFtmDw4ye3Oy
|
||||
vc2eob7inUDjr5a3s/H28grOY6cCADVSlCD8cpcqp7KDbfT8zfZjuZqW3he+iqOkmOWbdFJbbX9lY+i6
|
||||
dzq1hra//UMqddka1tRb992ArDmWy04FACo1sQTpGxh5enU0bVm6L5O6maVtbEBIyvgaEJrU2H/dP9dP
|
||||
QyFCjWBpDWt+NZ8NdfUOvvtjKjsWANRrYgnCJh1000Ht2tZetje3soPtPZ95e6ZPIkVGe88AdYsbjdM3
|
||||
JrAEcT+cTSPZ90HotoU2smMBQNUmkCD1bX2sy35l96SnbQFIcYPtt3Mm8/CywCzKBVJpsO3VFbe+6pNE
|
||||
3U/2Z1F3kkfkvAANNbLK2iZ7/s3OAwBqpyhBhkYsdPGvPmp7bOEhfStoXcg1aicU2pa6d5oGWXYciiu3
|
||||
Wsf6B0a2nbvJthCauRQ1dNPgkkYj3rwAuBhFCcLmKazd3TdEgUKNd6RHpBQZoWm1O/4sKm0y3m7r2x1Z
|
||||
bM8Own5iN0V6dPLFkWw3d9sXmNl5AMAFKEqQ/TGlVQYTNWb6JFIi/BJdSm22soMSJLuiIyavaW3wNcfs
|
||||
IOxp67FkfE8IwGUpSpBJHpFTVtnuI3zOXKdQYEtRW7r5Z0Gi85qcsoMckRaeUrLYTwIArkdRgtj99FcR
|
||||
5QJbHlbZPP7VsrDLdZ8evLJot25lUM4J+c0uNRyPBQDXM7EE8QvTUzQsP3CF2ot2p7Ok+G9dKWt/YiVe
|
||||
uAC4voklyIxNtucghi4zzWuou2CrNiq36W6XeWjEYh4crW3pPRhXTnOc2b7J8/xT3NxtYwDAhU0sQchx
|
||||
TRWFSPkd4+I96VO9Yp5dG/v8utj5ASnz/DWv+Sa/uf1ScHJVd9+Q9+lCpwMBwPVMOEEI3WhQiIxYrBar
|
||||
rSzSH/pneNRi7B+609lv/ywIALg2kQQBAGCQIAAgDgkCAOKQIAAgDgkCAOKQIAAgDgkCAOKQIAAgDgkC
|
||||
AOKQIAAgDgkCAOKQIAAgDgkCAOKQIAAgDgkCAOKQIAAgakXEv9pvbBi+WcreAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="mark_timer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>585, 20</value>
|
||||
</metadata>
|
||||
</root>
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class MenuBar2
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MenuBar2));
|
||||
this.btnDesktop = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btnDesktop
|
||||
//
|
||||
this.btnDesktop.BackColor = System.Drawing.Color.Transparent;
|
||||
this.btnDesktop.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnDesktop.BackgroundImage")));
|
||||
this.btnDesktop.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.btnDesktop.FlatAppearance.BorderSize = 0;
|
||||
this.btnDesktop.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnDesktop.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnDesktop.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnDesktop.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.btnDesktop.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(151)))), ((int)(((byte)(162)))), ((int)(((byte)(194)))));
|
||||
this.btnDesktop.Location = new System.Drawing.Point(3, 3);
|
||||
this.btnDesktop.Name = "btnDesktop";
|
||||
this.btnDesktop.Padding = new System.Windows.Forms.Padding(20, 3, 3, 3);
|
||||
this.btnDesktop.Size = new System.Drawing.Size(130, 44);
|
||||
this.btnDesktop.TabIndex = 9;
|
||||
this.btnDesktop.Text = "我的桌面";
|
||||
this.btnDesktop.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.btnDesktop.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// MenuBar
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.Color.Transparent;
|
||||
this.Controls.Add(this.btnDesktop);
|
||||
this.Name = "MenuBar";
|
||||
this.Size = new System.Drawing.Size(136, 50);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button btnDesktop;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,207 @@
|
||||
/******************************
|
||||
* 说明:自定义菜单
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-08-16
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
using Lskj.Main3.Properties;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
/// <summary>
|
||||
/// 自定义菜单
|
||||
/// </summary>
|
||||
public partial class MenuBar2 : UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// 默认选中菜单
|
||||
/// </summary>
|
||||
private static Button defaultButton;
|
||||
private ButtonHoverEventHandler hoverEvent;
|
||||
public delegate void ButtonHoverEventHandler(Button before, Button after);
|
||||
|
||||
public MenuBar2()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:获取菜单按钮</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns>Button.</returns>
|
||||
public Button GetButton()
|
||||
{
|
||||
return this.btnDesktop;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置默认选中的Button</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
public void SetDefaultSelectMenu(MenuBar2 item)
|
||||
{
|
||||
defaultButton = item.btnDesktop;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置菜单状态状态</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="state">The state.</param>
|
||||
public void SetButtonState(MenuButtonState state)
|
||||
{
|
||||
switch (state)
|
||||
{
|
||||
case MenuButtonState.defaultState:
|
||||
this.btnDesktop.BackgroundImage = Resources.left_default;
|
||||
break;
|
||||
case MenuButtonState.selectState:
|
||||
this.btnDesktop.BackgroundImage = Resources.left_select;
|
||||
break;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:注册鼠标划过事件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="hoverEvent">The hover event.</param>
|
||||
/// <param name="eventType">Type of the event.</param>
|
||||
public void SetHoverEvent(ButtonHoverEventHandler hoverEvent,MenuEventType eventType)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.hoverEvent = hoverEvent;
|
||||
switch (eventType)
|
||||
{
|
||||
case MenuEventType.MouseClickEvent:
|
||||
this.btnDesktop.MouseMove += new MouseEventHandler(btnDesktop_MouseMove);
|
||||
this.btnDesktop.MouseClick += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
break;
|
||||
case MenuEventType.MouseHoverEvent:
|
||||
default:
|
||||
this.btnDesktop.MouseMove += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标划过菜单时</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void btnDesktop_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.Cursor = Cursors.Hand;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:切换菜单</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void btnDesktio_MouseEvent(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
Button button = sender as Button;
|
||||
if (button != null)
|
||||
{
|
||||
if (defaultButton != null)
|
||||
defaultButton.BackgroundImage = Resources.left_default;
|
||||
button.BackgroundImage = Resources.left_select;
|
||||
}
|
||||
|
||||
|
||||
if (defaultButton != button)
|
||||
{
|
||||
if (hoverEvent != null)
|
||||
{
|
||||
this.hoverEvent(defaultButton, button);
|
||||
}
|
||||
defaultButton = button;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 菜单状态
|
||||
/// </summary>
|
||||
//public enum MenuButtonState
|
||||
//{
|
||||
// defaultState,
|
||||
// selectState
|
||||
//}
|
||||
///// <summary>
|
||||
///// 菜单事件
|
||||
///// </summary>
|
||||
//public enum MenuEventType
|
||||
//{
|
||||
// MouseHoverEvent = 0,
|
||||
// MouseClickEvent = 1
|
||||
//}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
<?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>
|
||||
<metadata name="btnDesktop.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="btnDesktop.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAAIIAAAAvCAYAAAAvgRLNAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
||||
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAEBSURBVHhe7dihSkRBGIbhCV6SiFbTegniVdiNZt0t
|
||||
gmY1isli0m4xKbtgEQWDXsLIfmCbds7COesTnjR/fPmZmbJ58lJBCIQQCCEQQiCEQAiBEAIhBEIIhBAI
|
||||
IRBCIIRACIEQAiEEQgiEEIjOIUzOF/Xw9r1unbbPGYfOIexdLOrN80+dPnzV3bN5c4bh6y2Epaun73pw
|
||||
+dacY9h6DeHP0d1H3Z6+NucZppWEsHR8/9mcZ5hWthF2ZjbCmPQawrU7wmj1FsLs0athzDqH4B9hPXQO
|
||||
gfUgBEIIhBAIIRBCIIRACIEQAiEEQgiEEAghEEIghEAIgRACIQSibJSyz39Xyi/35fd5AzdXNAAAAABJ
|
||||
RU5ErkJggg==
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
||||
+118
@@ -0,0 +1,118 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class Menu_Item
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.btn_item_title = new System.Windows.Forms.Label();
|
||||
this.btn_item_img = new System.Windows.Forms.Button();
|
||||
this.lbl_mark_num = new System.Windows.Forms.Label();
|
||||
this.cb_mark = new Lskj.Control.CircleButton();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btn_item_title
|
||||
//
|
||||
this.btn_item_title.Location = new System.Drawing.Point(0, 92);
|
||||
this.btn_item_title.Name = "btn_item_title";
|
||||
this.btn_item_title.Size = new System.Drawing.Size(110, 29);
|
||||
this.btn_item_title.TabIndex = 3;
|
||||
this.btn_item_title.Text = "采购请购单审核";
|
||||
this.btn_item_title.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// btn_item_img
|
||||
//
|
||||
this.btn_item_img.BackColor = System.Drawing.Color.Transparent;
|
||||
this.btn_item_img.BackgroundImage = global::Lskj.Main3.Properties.Resources.default_icon;
|
||||
this.btn_item_img.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.btn_item_img.FlatAppearance.BorderSize = 0;
|
||||
this.btn_item_img.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.btn_item_img.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.btn_item_img.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btn_item_img.Location = new System.Drawing.Point(15, 6);
|
||||
this.btn_item_img.Name = "btn_item_img";
|
||||
this.btn_item_img.Size = new System.Drawing.Size(80, 80);
|
||||
this.btn_item_img.TabIndex = 2;
|
||||
this.btn_item_img.UseVisualStyleBackColor = false;
|
||||
this.btn_item_img.Paint += new System.Windows.Forms.PaintEventHandler(this.MenuItem_Paint);
|
||||
this.btn_item_img.MouseLeave += new System.EventHandler(this.btn_item_img_MouseLeave);
|
||||
this.btn_item_img.MouseMove += new System.Windows.Forms.MouseEventHandler(this.btn_item_img_MouseMove);
|
||||
//
|
||||
// lbl_mark_num
|
||||
//
|
||||
this.lbl_mark_num.AutoSize = true;
|
||||
this.lbl_mark_num.BackColor = System.Drawing.Color.Red;
|
||||
this.lbl_mark_num.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lbl_mark_num.ForeColor = System.Drawing.Color.White;
|
||||
this.lbl_mark_num.Location = new System.Drawing.Point(81, 6);
|
||||
this.lbl_mark_num.Name = "lbl_mark_num";
|
||||
this.lbl_mark_num.Size = new System.Drawing.Size(19, 12);
|
||||
this.lbl_mark_num.TabIndex = 5;
|
||||
this.lbl_mark_num.Text = "99";
|
||||
this.lbl_mark_num.Visible = false;
|
||||
//
|
||||
// cb_mark
|
||||
//
|
||||
this.cb_mark.BackColor = System.Drawing.Color.Red;
|
||||
this.cb_mark.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.cb_mark.FlatAppearance.BorderSize = 0;
|
||||
this.cb_mark.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.cb_mark.ImageEnter = null;
|
||||
this.cb_mark.ImageNormal = null;
|
||||
this.cb_mark.Location = new System.Drawing.Point(77, 0);
|
||||
this.cb_mark.Name = "cb_mark";
|
||||
this.cb_mark.Radius = 24;
|
||||
this.cb_mark.Size = new System.Drawing.Size(24, 24);
|
||||
this.cb_mark.TabIndex = 4;
|
||||
this.cb_mark.UseVisualStyleBackColor = false;
|
||||
this.cb_mark.Visible = false;
|
||||
//
|
||||
// Menu_Item
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
|
||||
this.Controls.Add(this.lbl_mark_num);
|
||||
this.Controls.Add(this.cb_mark);
|
||||
this.Controls.Add(this.btn_item_img);
|
||||
this.Controls.Add(this.btn_item_title);
|
||||
this.Name = "Menu_Item";
|
||||
this.Size = new System.Drawing.Size(110, 127);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button btn_item_img;
|
||||
private System.Windows.Forms.ToolTip toolTip1;
|
||||
private System.Windows.Forms.Label btn_item_title;
|
||||
private Lskj.Control.CircleButton cb_mark;
|
||||
private System.Windows.Forms.Label lbl_mark_num;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,239 @@
|
||||
/******************************
|
||||
* 说明:自定义功能模块
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-08-16
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
/// <summary>
|
||||
/// 自定义功能模块
|
||||
/// </summary>
|
||||
public partial class Menu_Item : UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// 圆角
|
||||
/// </summary>
|
||||
private int _radius;
|
||||
private Image _defaultImg, _hoverImg;
|
||||
|
||||
/// <summary>
|
||||
/// 所在行数
|
||||
/// </summary>
|
||||
public int menuRow;
|
||||
/// <summary>
|
||||
/// 所在子菜单
|
||||
/// </summary>
|
||||
public string menuNode;
|
||||
|
||||
|
||||
public Menu_Item()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public Button GetButton()
|
||||
{
|
||||
return this.btn_item_img;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置模块显示名称</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="text">The text.</param>
|
||||
public void SetMenuCaption(string text)
|
||||
{
|
||||
this.btn_item_title.Text = text;
|
||||
this.toolTip1.SetToolTip(this.btn_item_title, text);
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置背景图标</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="img">The img.</param>
|
||||
public void SetMenuImg(Image img)
|
||||
{
|
||||
this._defaultImg = img;
|
||||
this.btn_item_img.BackgroundImage = img;
|
||||
this.btn_item_img.BackgroundImageLayout = ImageLayout.Center;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置选中背景图标</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="img">The img.</param>
|
||||
public void SetMenuHoverImg(Image img)
|
||||
{
|
||||
this._hoverImg = img;
|
||||
}
|
||||
public void SetMenuNum(int num)
|
||||
{
|
||||
if (Business.SystemInfo.Instance.DisableShowNotify)//角标禁显
|
||||
{
|
||||
this.cb_mark.Visible = false;
|
||||
this.lbl_mark_num.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (num < 1)
|
||||
{
|
||||
this.cb_mark.Visible = false;
|
||||
this.lbl_mark_num.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.cb_mark.Visible = true;
|
||||
this.lbl_mark_num.Visible = true;
|
||||
this.lbl_mark_num.BringToFront();
|
||||
|
||||
if (num < 10)
|
||||
{
|
||||
this.lbl_mark_num.Location = new Point(84, 6);
|
||||
}
|
||||
if (num > 99)
|
||||
num = 99;
|
||||
this.lbl_mark_num.Text = num + "";
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:选中背景图片</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void btn_item_img_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
//(sender as Button).BackgroundImage = hoverImg;
|
||||
//(sender as Button).BackgroundImageLayout = ImageLayout.Center;
|
||||
try
|
||||
{
|
||||
this.BackColor = Color.White;
|
||||
this.Cursor = Cursors.Hand;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:还原背景</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void btn_item_img_MouseLeave(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.BackColor = Color.FromArgb(240, 240, 240);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[Browsable(true)]
|
||||
[Description("圆角弧度(0为不要圆角)")]
|
||||
public int SetRoundRadius
|
||||
{
|
||||
get
|
||||
{
|
||||
return _radius;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (value < 0) { _radius = 0; }
|
||||
else { _radius = value; }
|
||||
base.Refresh();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:重绘圆角</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="PaintEventArgs"/> instance containing the event data.</param>
|
||||
private void MenuItem_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
System.Drawing.Drawing2D.GraphicsPath oPath = new System.Drawing.Drawing2D.GraphicsPath();
|
||||
int x = 0;
|
||||
int y = 0;
|
||||
int thisWidth = this.Width;
|
||||
int thisHeight = this.Height;
|
||||
int angle = _radius;
|
||||
if (angle > 0)
|
||||
{
|
||||
System.Drawing.Graphics g = CreateGraphics();
|
||||
oPath.AddArc(x, y, angle, angle, 180, 90); // 左上角
|
||||
oPath.AddArc(thisWidth - angle, y, angle, angle, 270, 90); // 右上角
|
||||
oPath.AddArc(thisWidth - angle, thisHeight - angle, angle, angle, 0, 90); // 右下角
|
||||
oPath.AddArc(x, thisHeight - angle, angle, angle, 90, 90); // 左下角
|
||||
oPath.CloseAllFigures();
|
||||
Region = new System.Drawing.Region(oPath);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
<?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>
|
||||
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="btn_item_title.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="btn_item_img.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="lbl_mark_num.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="cb_mark.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
+105
@@ -0,0 +1,105 @@
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class NewMenuBar
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要修改
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.PanelDesktop = new System.Windows.Forms.Panel();
|
||||
this.labelTitle = new System.Windows.Forms.Label();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.panelImg = new System.Windows.Forms.Panel();
|
||||
this.PanelDesktop.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// PanelDesktop
|
||||
//
|
||||
this.PanelDesktop.Controls.Add(this.labelTitle);
|
||||
this.PanelDesktop.Controls.Add(this.panel1);
|
||||
this.PanelDesktop.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.PanelDesktop.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.PanelDesktop.Location = new System.Drawing.Point(0, 0);
|
||||
this.PanelDesktop.Name = "PanelDesktop";
|
||||
this.PanelDesktop.Size = new System.Drawing.Size(172, 37);
|
||||
this.PanelDesktop.TabIndex = 9;
|
||||
//
|
||||
// labelTitle
|
||||
//
|
||||
this.labelTitle.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.labelTitle.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.labelTitle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(151)))), ((int)(((byte)(162)))), ((int)(((byte)(194)))));
|
||||
this.labelTitle.Location = new System.Drawing.Point(37, 0);
|
||||
this.labelTitle.Name = "labelTitle";
|
||||
this.labelTitle.Size = new System.Drawing.Size(135, 37);
|
||||
this.labelTitle.TabIndex = 2;
|
||||
this.labelTitle.Text = "测试模块";
|
||||
this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Controls.Add(this.panelImg);
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.panel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(37, 37);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// panelImg
|
||||
//
|
||||
this.panelImg.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.panelImg.BackgroundImage = global::Lskj.Main3.Properties.Resources.arrows;
|
||||
this.panelImg.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.panelImg.Location = new System.Drawing.Point(7, 6);
|
||||
this.panelImg.Name = "panelImg";
|
||||
this.panelImg.Size = new System.Drawing.Size(23, 25);
|
||||
this.panelImg.TabIndex = 0;
|
||||
//
|
||||
// NewMenuBar
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.White;
|
||||
this.Controls.Add(this.PanelDesktop);
|
||||
this.Name = "NewMenuBar";
|
||||
this.Size = new System.Drawing.Size(172, 37);
|
||||
this.PanelDesktop.ResumeLayout(false);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public System.Windows.Forms.Panel PanelDesktop;
|
||||
public System.Windows.Forms.Panel panelImg;
|
||||
public System.Windows.Forms.Label labelTitle;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,237 @@
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
public partial class NewMenuBar : UserControl
|
||||
{
|
||||
public NewMenuBar()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.panelImg.BackgroundImageLayout = ImageLayout.Stretch;//设置背景图片自动适应
|
||||
}
|
||||
|
||||
|
||||
private PanelHoverEventHandler hoverEvent;
|
||||
public delegate void PanelHoverEventHandler(NewMenuBar before, NewMenuBar after);
|
||||
|
||||
|
||||
private static NewMenuBar defaultMenuBar;
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:获取主体panel</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns>Button.</returns>
|
||||
public NewMenuBar GetNewMenuBar()
|
||||
{
|
||||
return this;
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:设置默认选中的Panel</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
public void SetDefaultSelectMenu(NewMenuBar item)
|
||||
{
|
||||
defaultMenuBar = item;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:设置菜单状态状态</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="state">The state.</param>
|
||||
public void SetButtonState(MenuButtonState state)
|
||||
{
|
||||
switch (state)
|
||||
{
|
||||
case MenuButtonState.defaultState:
|
||||
this.labelTitle.BackColor = Color.White;
|
||||
this.labelTitle.ForeColor = Color.FromArgb(151, 162, 194);
|
||||
|
||||
break;
|
||||
case MenuButtonState.selectState:
|
||||
this.labelTitle.BackColor = Color.FromArgb(0, 131, 232);
|
||||
this.labelTitle.ForeColor = Color.FromArgb(195, 219, 255);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:注册鼠标划过事件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="hoverEvent">The hover event.</param>
|
||||
/// <param name="eventType">Type of the event.</param>
|
||||
public void SetHoverEvent(PanelHoverEventHandler hoverEvent, MenuEventType eventType)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.hoverEvent = hoverEvent;
|
||||
switch (eventType)
|
||||
{
|
||||
case MenuEventType.MouseClickEvent:
|
||||
//this.btn_item_title.MouseMove += new MouseEventHandler(btnDesktop_MouseMove);
|
||||
//this.btn_item_title.MouseClick += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
this.panelImg.MouseMove += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
this.labelTitle.MouseMove += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
this.panel1.MouseMove += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
this.panelImg.MouseClick += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
this.labelTitle.MouseClick += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
this.panel1.MouseClick += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
break;
|
||||
case MenuEventType.MouseHoverEvent:
|
||||
default:
|
||||
this.panelImg.MouseMove += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
this.labelTitle.MouseMove += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
this.panel1.MouseMove += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标划过菜单时</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void btnDesktop_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.Cursor = Cursors.Hand;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:切换菜单</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void btnDesktio_MouseEvent(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
NewMenuBar item = null;
|
||||
if (sender is Panel)
|
||||
{
|
||||
item = (sender as Panel).Parent.Parent as NewMenuBar;
|
||||
if (item == null)
|
||||
{
|
||||
item = (sender as Panel).Parent.Parent.Parent as NewMenuBar;
|
||||
}
|
||||
}
|
||||
if (sender is Label)
|
||||
{
|
||||
item = (sender as Label).Parent.Parent as NewMenuBar;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (item != null)
|
||||
{
|
||||
if (defaultMenuBar != null)
|
||||
{
|
||||
defaultMenuBar.labelTitle.BackColor = Color.White;
|
||||
defaultMenuBar.panel1.BackColor = Color.White;
|
||||
defaultMenuBar.labelTitle.ForeColor = Color.FromArgb(151, 162, 194);
|
||||
}
|
||||
|
||||
item.labelTitle.BackColor = Color.FromArgb(0, 131, 232);
|
||||
item.panel1.BackColor = Color.FromArgb(0, 131, 232);
|
||||
item.labelTitle.ForeColor = Color.FromArgb(195, 219, 255);
|
||||
}
|
||||
|
||||
|
||||
if (defaultMenuBar != item)
|
||||
{
|
||||
if (hoverEvent != null)
|
||||
{
|
||||
this.hoverEvent(defaultMenuBar, item);
|
||||
}
|
||||
defaultMenuBar = item;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 菜单状态
|
||||
/// </summary>
|
||||
public enum MenuButtonState
|
||||
{
|
||||
defaultState,
|
||||
selectState
|
||||
}
|
||||
/// <summary>
|
||||
/// 菜单事件
|
||||
/// </summary>
|
||||
public enum MenuEventType
|
||||
{
|
||||
MouseHoverEvent = 0,
|
||||
MouseClickEvent = 1
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class ResSelectForm
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.BtnRes1 = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.BtnRes2 = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.BtnRes3 = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// BtnRes1
|
||||
//
|
||||
this.BtnRes1.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.BtnRes1.Appearance.Options.UseBackColor = true;
|
||||
this.BtnRes1.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
|
||||
this.BtnRes1.Location = new System.Drawing.Point(2, 2);
|
||||
this.BtnRes1.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.BtnRes1.Name = "BtnRes1";
|
||||
this.BtnRes1.Size = new System.Drawing.Size(108, 18);
|
||||
this.BtnRes1.TabIndex = 0;
|
||||
this.BtnRes1.Tag = "1";
|
||||
this.BtnRes1.Text = "1920*1080";
|
||||
//
|
||||
// BtnRes2
|
||||
//
|
||||
this.BtnRes2.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.BtnRes2.Appearance.Options.UseBackColor = true;
|
||||
this.BtnRes2.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
|
||||
this.BtnRes2.Location = new System.Drawing.Point(2, 26);
|
||||
this.BtnRes2.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.BtnRes2.Name = "BtnRes2";
|
||||
this.BtnRes2.Size = new System.Drawing.Size(108, 18);
|
||||
this.BtnRes2.TabIndex = 1;
|
||||
this.BtnRes2.Tag = "0.948";
|
||||
this.BtnRes2.Text = "1600*900";
|
||||
//
|
||||
// BtnRes3
|
||||
//
|
||||
this.BtnRes3.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.BtnRes3.Appearance.Options.UseBackColor = true;
|
||||
this.BtnRes3.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
|
||||
this.BtnRes3.Location = new System.Drawing.Point(2, 49);
|
||||
this.BtnRes3.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.BtnRes3.Name = "BtnRes3";
|
||||
this.BtnRes3.Size = new System.Drawing.Size(108, 18);
|
||||
this.BtnRes3.TabIndex = 2;
|
||||
this.BtnRes3.Tag = "0.894";
|
||||
this.BtnRes3.Text = "1366*768";
|
||||
//
|
||||
// ResSelectForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.White;
|
||||
this.Controls.Add(this.BtnRes3);
|
||||
this.Controls.Add(this.BtnRes2);
|
||||
this.Controls.Add(this.BtnRes1);
|
||||
this.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.Name = "ResSelectForm";
|
||||
this.Size = new System.Drawing.Size(112, 70);
|
||||
this.Load += new System.EventHandler(this.OnResSelectForm_Load);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.XtraEditors.SimpleButton BtnRes1;
|
||||
private DevExpress.XtraEditors.SimpleButton BtnRes2;
|
||||
private DevExpress.XtraEditors.SimpleButton BtnRes3;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Lskj.Control;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Util;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
public partial class ResSelectForm : UserControl
|
||||
{
|
||||
public ResSelectForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
private MouseClickEventHanlder _clickEvent = null;
|
||||
public delegate void MouseClickEventHanlder(object sender, EventArgs e);
|
||||
private void OnResSelectForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
switch (Lskj.Control.Model.AutoSizeChange.value.ToString())
|
||||
{
|
||||
case "1":
|
||||
this.BtnRes1.Enabled = false;
|
||||
this.BtnRes1.Appearance.BackColor = Color.LightGray;
|
||||
break;
|
||||
case "0.948":
|
||||
this.BtnRes2.Enabled = false;
|
||||
this.BtnRes2.Appearance.BackColor = Color.LightGray;
|
||||
break;
|
||||
case "0.894":
|
||||
this.BtnRes3.Enabled = false;
|
||||
this.BtnRes3.Appearance.BackColor = Color.LightGray;
|
||||
break;
|
||||
}
|
||||
this.BtnRes1.MouseClick += OnMouseClick;
|
||||
this.BtnRes2.MouseClick += OnMouseClick;
|
||||
this.BtnRes3.MouseClick += OnMouseClick;
|
||||
}
|
||||
public void SetClickEvent(MouseClickEventHanlder clickEvent)
|
||||
{
|
||||
try
|
||||
{
|
||||
this._clickEvent = clickEvent;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
private void OnMouseClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
DevExpress.XtraEditors.SimpleButton btn = (DevExpress.XtraEditors.SimpleButton)sender;
|
||||
this.Hide();
|
||||
if (MessageUtil.Show("更改分辨率将退回至主界面\r\n是否继续?", MessageBoxButtons.YesNo) == DialogResult.Yes)
|
||||
{
|
||||
Lskj.Control.Model.AutoSizeChange.value = Convert.ToDouble(btn.Tag);
|
||||
IniHelper.Write(string.Format("DefaultControlScaling_{0}", "Save"), btn.Tag.ToString());
|
||||
_clickEvent(this, e);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
+688
@@ -0,0 +1,688 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class SkinControl
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SkinControl));
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.panel4 = new System.Windows.Forms.Panel();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.skinItem8 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem9 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem10 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem11 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem12 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem13 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem14 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem29 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem30 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem31 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem32 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem33 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem34 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem35 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem22 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem23 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem24 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem25 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem26 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem27 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem28 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem15 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem16 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem17 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem18 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem19 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem20 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem21 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem1 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem2 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem3 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem4 = new Lskj.Main3.Control.SkinItem();
|
||||
this.si_office_2013_light_gray = new Lskj.Main3.Control.SkinItem();
|
||||
this.si_office_2013_dark_gray = new Lskj.Main3.Control.SkinItem();
|
||||
this.si_office_2013_white = new Lskj.Main3.Control.SkinItem();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
this.panel3.SuspendLayout();
|
||||
this.panel4.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Controls.Add(this.skinItem29);
|
||||
this.panel1.Controls.Add(this.skinItem30);
|
||||
this.panel1.Controls.Add(this.skinItem31);
|
||||
this.panel1.Controls.Add(this.skinItem32);
|
||||
this.panel1.Controls.Add(this.skinItem33);
|
||||
this.panel1.Controls.Add(this.skinItem34);
|
||||
this.panel1.Controls.Add(this.skinItem35);
|
||||
this.panel1.Controls.Add(this.skinItem22);
|
||||
this.panel1.Controls.Add(this.skinItem23);
|
||||
this.panel1.Controls.Add(this.skinItem24);
|
||||
this.panel1.Controls.Add(this.skinItem25);
|
||||
this.panel1.Controls.Add(this.skinItem26);
|
||||
this.panel1.Controls.Add(this.skinItem27);
|
||||
this.panel1.Controls.Add(this.skinItem28);
|
||||
this.panel1.Controls.Add(this.skinItem15);
|
||||
this.panel1.Controls.Add(this.skinItem16);
|
||||
this.panel1.Controls.Add(this.skinItem17);
|
||||
this.panel1.Controls.Add(this.skinItem18);
|
||||
this.panel1.Controls.Add(this.skinItem19);
|
||||
this.panel1.Controls.Add(this.skinItem20);
|
||||
this.panel1.Controls.Add(this.skinItem21);
|
||||
this.panel1.Controls.Add(this.skinItem1);
|
||||
this.panel1.Controls.Add(this.skinItem2);
|
||||
this.panel1.Controls.Add(this.skinItem3);
|
||||
this.panel1.Controls.Add(this.skinItem4);
|
||||
this.panel1.Controls.Add(this.si_office_2013_light_gray);
|
||||
this.panel1.Controls.Add(this.si_office_2013_dark_gray);
|
||||
this.panel1.Controls.Add(this.si_office_2013_white);
|
||||
this.panel1.Controls.Add(this.panel2);
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(919, 380);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.panel2.Controls.Add(this.label1);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel2.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(919, 32);
|
||||
this.panel2.TabIndex = 1;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(3, 9);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(53, 12);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "标准皮肤";
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
this.panel3.Controls.Add(this.skinItem8);
|
||||
this.panel3.Controls.Add(this.skinItem9);
|
||||
this.panel3.Controls.Add(this.skinItem10);
|
||||
this.panel3.Controls.Add(this.skinItem11);
|
||||
this.panel3.Controls.Add(this.skinItem12);
|
||||
this.panel3.Controls.Add(this.skinItem13);
|
||||
this.panel3.Controls.Add(this.skinItem14);
|
||||
this.panel3.Controls.Add(this.panel4);
|
||||
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel3.Location = new System.Drawing.Point(0, 380);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Size = new System.Drawing.Size(919, 127);
|
||||
this.panel3.TabIndex = 1;
|
||||
//
|
||||
// panel4
|
||||
//
|
||||
this.panel4.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.panel4.Controls.Add(this.label2);
|
||||
this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel4.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel4.Name = "panel4";
|
||||
this.panel4.Size = new System.Drawing.Size(919, 32);
|
||||
this.panel4.TabIndex = 1;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(3, 9);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(53, 12);
|
||||
this.label2.TabIndex = 0;
|
||||
this.label2.Text = "主题皮肤";
|
||||
//
|
||||
// skinItem8
|
||||
//
|
||||
this.skinItem8.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem8.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem8.Location = new System.Drawing.Point(789, 38);
|
||||
this.skinItem8.Name = "skinItem8";
|
||||
this.skinItem8.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem8.SkinImage = global::Lskj.Main3.Properties.Resources.blueprint;
|
||||
this.skinItem8.SkinTag = "Blueprint";
|
||||
this.skinItem8.SkinText = "BulePrint";
|
||||
this.skinItem8.TabIndex = 13;
|
||||
this.skinItem8.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem9
|
||||
//
|
||||
this.skinItem9.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem9.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem9.Location = new System.Drawing.Point(658, 38);
|
||||
this.skinItem9.Name = "skinItem9";
|
||||
this.skinItem9.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem9.SkinImage = global::Lskj.Main3.Properties.Resources.mcskin;
|
||||
this.skinItem9.SkinTag = "McSkin";
|
||||
this.skinItem9.SkinText = "McSkin";
|
||||
this.skinItem9.TabIndex = 16;
|
||||
this.skinItem9.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem10
|
||||
//
|
||||
this.skinItem10.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem10.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem10.Location = new System.Drawing.Point(527, 38);
|
||||
this.skinItem10.Name = "skinItem10";
|
||||
this.skinItem10.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem10.SkinImage = global::Lskj.Main3.Properties.Resources.xmas_blue;
|
||||
this.skinItem10.SkinTag = "Xmas 2008 Blue";
|
||||
this.skinItem10.SkinText = "Xmas(Blue)";
|
||||
this.skinItem10.TabIndex = 15;
|
||||
this.skinItem10.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem11
|
||||
//
|
||||
this.skinItem11.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem11.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem11.Location = new System.Drawing.Point(396, 38);
|
||||
this.skinItem11.Name = "skinItem11";
|
||||
this.skinItem11.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem11.SkinImage = global::Lskj.Main3.Properties.Resources.valentine;
|
||||
this.skinItem11.SkinTag = "Valentine";
|
||||
this.skinItem11.SkinText = "Valentine";
|
||||
this.skinItem11.TabIndex = 14;
|
||||
this.skinItem11.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem12
|
||||
//
|
||||
this.skinItem12.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem12.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem12.Location = new System.Drawing.Point(265, 38);
|
||||
this.skinItem12.Name = "skinItem12";
|
||||
this.skinItem12.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem12.SkinImage = global::Lskj.Main3.Properties.Resources.summer;
|
||||
this.skinItem12.SkinTag = "Summer 2008";
|
||||
this.skinItem12.SkinText = "Summer";
|
||||
this.skinItem12.TabIndex = 12;
|
||||
this.skinItem12.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem13
|
||||
//
|
||||
this.skinItem13.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem13.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem13.Location = new System.Drawing.Point(134, 38);
|
||||
this.skinItem13.Name = "skinItem13";
|
||||
this.skinItem13.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem13.SkinImage = global::Lskj.Main3.Properties.Resources.springtime;
|
||||
this.skinItem13.SkinTag = "Springtime";
|
||||
this.skinItem13.SkinText = "Springtime";
|
||||
this.skinItem13.TabIndex = 11;
|
||||
this.skinItem13.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem14
|
||||
//
|
||||
this.skinItem14.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem14.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem14.Location = new System.Drawing.Point(3, 38);
|
||||
this.skinItem14.Name = "skinItem14";
|
||||
this.skinItem14.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem14.SkinImage = global::Lskj.Main3.Properties.Resources.pumpkin;
|
||||
this.skinItem14.SkinTag = "Pumpkin";
|
||||
this.skinItem14.SkinText = "Pumpkin";
|
||||
this.skinItem14.TabIndex = 10;
|
||||
this.skinItem14.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem29
|
||||
//
|
||||
this.skinItem29.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem29.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem29.Location = new System.Drawing.Point(789, 293);
|
||||
this.skinItem29.Name = "skinItem29";
|
||||
this.skinItem29.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem29.SkinImage = global::Lskj.Main3.Properties.Resources.the_asphalt_world;
|
||||
this.skinItem29.SkinTag = "The Asphalt World";
|
||||
this.skinItem29.SkinText = "The Asphalt World";
|
||||
this.skinItem29.TabIndex = 41;
|
||||
this.skinItem29.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem30
|
||||
//
|
||||
this.skinItem30.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem30.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem30.Location = new System.Drawing.Point(658, 293);
|
||||
this.skinItem30.Name = "skinItem30";
|
||||
this.skinItem30.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem30.SkinImage = global::Lskj.Main3.Properties.Resources.sharp;
|
||||
this.skinItem30.SkinTag = "Sharp";
|
||||
this.skinItem30.SkinText = "Sharp";
|
||||
this.skinItem30.TabIndex = 44;
|
||||
this.skinItem30.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem31
|
||||
//
|
||||
this.skinItem31.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem31.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem31.Location = new System.Drawing.Point(527, 293);
|
||||
this.skinItem31.Name = "skinItem31";
|
||||
this.skinItem31.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem31.SkinImage = global::Lskj.Main3.Properties.Resources.money_twins;
|
||||
this.skinItem31.SkinTag = "Money Twins";
|
||||
this.skinItem31.SkinText = "Money Twins";
|
||||
this.skinItem31.TabIndex = 43;
|
||||
this.skinItem31.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem32
|
||||
//
|
||||
this.skinItem32.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem32.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem32.Location = new System.Drawing.Point(396, 293);
|
||||
this.skinItem32.Name = "skinItem32";
|
||||
this.skinItem32.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem32.SkinImage = global::Lskj.Main3.Properties.Resources.metropolis;
|
||||
this.skinItem32.SkinTag = "Metropolis";
|
||||
this.skinItem32.SkinText = "Metropolis";
|
||||
this.skinItem32.TabIndex = 42;
|
||||
this.skinItem32.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem33
|
||||
//
|
||||
this.skinItem33.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem33.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem33.Location = new System.Drawing.Point(265, 293);
|
||||
this.skinItem33.Name = "skinItem33";
|
||||
this.skinItem33.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem33.SkinImage = global::Lskj.Main3.Properties.Resources.london_liquid_sky;
|
||||
this.skinItem33.SkinTag = "London Liquid Sky";
|
||||
this.skinItem33.SkinText = "London Liquid Sky";
|
||||
this.skinItem33.TabIndex = 40;
|
||||
this.skinItem33.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem34
|
||||
//
|
||||
this.skinItem34.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem34.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem34.Location = new System.Drawing.Point(134, 293);
|
||||
this.skinItem34.Name = "skinItem34";
|
||||
this.skinItem34.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem34.SkinImage = global::Lskj.Main3.Properties.Resources.liquid_sky;
|
||||
this.skinItem34.SkinTag = "Liquid Sky";
|
||||
this.skinItem34.SkinText = "Liquid Sky";
|
||||
this.skinItem34.TabIndex = 39;
|
||||
this.skinItem34.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem35
|
||||
//
|
||||
this.skinItem35.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem35.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem35.Location = new System.Drawing.Point(3, 293);
|
||||
this.skinItem35.Name = "skinItem35";
|
||||
this.skinItem35.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem35.SkinImage = global::Lskj.Main3.Properties.Resources.lilian;
|
||||
this.skinItem35.SkinTag = "Lilian";
|
||||
this.skinItem35.SkinText = "Lilian";
|
||||
this.skinItem35.TabIndex = 38;
|
||||
this.skinItem35.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem22
|
||||
//
|
||||
this.skinItem22.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem22.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem22.Location = new System.Drawing.Point(789, 207);
|
||||
this.skinItem22.Name = "skinItem22";
|
||||
this.skinItem22.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem22.SkinImage = global::Lskj.Main3.Properties.Resources.imaginary;
|
||||
this.skinItem22.SkinTag = "iMaginary";
|
||||
this.skinItem22.SkinText = "iMaginary";
|
||||
this.skinItem22.TabIndex = 34;
|
||||
this.skinItem22.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem23
|
||||
//
|
||||
this.skinItem23.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem23.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem23.Location = new System.Drawing.Point(658, 207);
|
||||
this.skinItem23.Name = "skinItem23";
|
||||
this.skinItem23.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem23.SkinImage = global::Lskj.Main3.Properties.Resources.glassoceans;
|
||||
this.skinItem23.SkinTag = "Glass Oceans";
|
||||
this.skinItem23.SkinText = "Glass Oceans";
|
||||
this.skinItem23.TabIndex = 37;
|
||||
this.skinItem23.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem24
|
||||
//
|
||||
this.skinItem24.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem24.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem24.Location = new System.Drawing.Point(527, 207);
|
||||
this.skinItem24.Name = "skinItem24";
|
||||
this.skinItem24.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem24.SkinImage = global::Lskj.Main3.Properties.Resources.foggy;
|
||||
this.skinItem24.SkinTag = "Foggy";
|
||||
this.skinItem24.SkinText = "Foggy";
|
||||
this.skinItem24.TabIndex = 36;
|
||||
this.skinItem24.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem25
|
||||
//
|
||||
this.skinItem25.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem25.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem25.Location = new System.Drawing.Point(396, 207);
|
||||
this.skinItem25.Name = "skinItem25";
|
||||
this.skinItem25.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem25.SkinImage = global::Lskj.Main3.Properties.Resources.darkside;
|
||||
this.skinItem25.SkinTag = "DevExpress Dark Style";
|
||||
this.skinItem25.SkinText = "Dark Style";
|
||||
this.skinItem25.TabIndex = 35;
|
||||
this.skinItem25.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem26
|
||||
//
|
||||
this.skinItem26.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem26.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem26.Location = new System.Drawing.Point(265, 207);
|
||||
this.skinItem26.Name = "skinItem26";
|
||||
this.skinItem26.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem26.SkinImage = global::Lskj.Main3.Properties.Resources.caffee;
|
||||
this.skinItem26.SkinTag = "Coffee";
|
||||
this.skinItem26.SkinText = "Coffee";
|
||||
this.skinItem26.TabIndex = 33;
|
||||
this.skinItem26.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem27
|
||||
//
|
||||
this.skinItem27.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem27.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem27.Location = new System.Drawing.Point(134, 207);
|
||||
this.skinItem27.Name = "skinItem27";
|
||||
this.skinItem27.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem27.SkinImage = global::Lskj.Main3.Properties.Resources.caramel;
|
||||
this.skinItem27.SkinTag = "Caramel";
|
||||
this.skinItem27.SkinText = "Caramel";
|
||||
this.skinItem27.TabIndex = 32;
|
||||
this.skinItem27.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem28
|
||||
//
|
||||
this.skinItem28.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem28.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem28.Location = new System.Drawing.Point(3, 207);
|
||||
this.skinItem28.Name = "skinItem28";
|
||||
this.skinItem28.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem28.SkinImage = global::Lskj.Main3.Properties.Resources.blue;
|
||||
this.skinItem28.SkinTag = "Blue";
|
||||
this.skinItem28.SkinText = "Blue";
|
||||
this.skinItem28.TabIndex = 31;
|
||||
this.skinItem28.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem15
|
||||
//
|
||||
this.skinItem15.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem15.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem15.Location = new System.Drawing.Point(789, 121);
|
||||
this.skinItem15.Name = "skinItem15";
|
||||
this.skinItem15.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem15.SkinImage = global::Lskj.Main3.Properties.Resources.vs_2010;
|
||||
this.skinItem15.SkinTag = "VS2010";
|
||||
this.skinItem15.SkinText = "VS2010";
|
||||
this.skinItem15.TabIndex = 27;
|
||||
this.skinItem15.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem16
|
||||
//
|
||||
this.skinItem16.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem16.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem16.Location = new System.Drawing.Point(658, 121);
|
||||
this.skinItem16.Name = "skinItem16";
|
||||
this.skinItem16.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem16.SkinImage = global::Lskj.Main3.Properties.Resources.seven;
|
||||
this.skinItem16.SkinTag = "Serven";
|
||||
this.skinItem16.SkinText = "Serven";
|
||||
this.skinItem16.TabIndex = 30;
|
||||
this.skinItem16.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem17
|
||||
//
|
||||
this.skinItem17.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem17.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem17.Location = new System.Drawing.Point(527, 121);
|
||||
this.skinItem17.Name = "skinItem17";
|
||||
this.skinItem17.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem17.SkinImage = global::Lskj.Main3.Properties.Resources.seven_classic;
|
||||
this.skinItem17.SkinTag = "Seven Classic";
|
||||
this.skinItem17.SkinText = "Seven Classic";
|
||||
this.skinItem17.TabIndex = 29;
|
||||
this.skinItem17.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem18
|
||||
//
|
||||
this.skinItem18.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem18.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem18.Location = new System.Drawing.Point(396, 121);
|
||||
this.skinItem18.Name = "skinItem18";
|
||||
this.skinItem18.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem18.SkinImage = global::Lskj.Main3.Properties.Resources.office_2007_silver;
|
||||
this.skinItem18.SkinTag = "Office 2010 Silver";
|
||||
this.skinItem18.SkinText = "Office 2007 Silver";
|
||||
this.skinItem18.TabIndex = 28;
|
||||
this.skinItem18.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem19
|
||||
//
|
||||
this.skinItem19.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem19.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem19.Location = new System.Drawing.Point(265, 121);
|
||||
this.skinItem19.Name = "skinItem19";
|
||||
this.skinItem19.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem19.SkinImage = global::Lskj.Main3.Properties.Resources.office_2007_pink;
|
||||
this.skinItem19.SkinTag = "Office 2007 Pink";
|
||||
this.skinItem19.SkinText = "Office 2007 Pink";
|
||||
this.skinItem19.TabIndex = 26;
|
||||
this.skinItem19.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem20
|
||||
//
|
||||
this.skinItem20.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem20.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem20.Location = new System.Drawing.Point(134, 121);
|
||||
this.skinItem20.Name = "skinItem20";
|
||||
this.skinItem20.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem20.SkinImage = global::Lskj.Main3.Properties.Resources.office_2007_green;
|
||||
this.skinItem20.SkinTag = "Office 2007 Green";
|
||||
this.skinItem20.SkinText = "Office 2007 Green";
|
||||
this.skinItem20.TabIndex = 25;
|
||||
this.skinItem20.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem21
|
||||
//
|
||||
this.skinItem21.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem21.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem21.Location = new System.Drawing.Point(3, 121);
|
||||
this.skinItem21.Name = "skinItem21";
|
||||
this.skinItem21.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem21.SkinImage = global::Lskj.Main3.Properties.Resources.office_2007_black;
|
||||
this.skinItem21.SkinTag = "Office 2007 Black";
|
||||
this.skinItem21.SkinText = "Office 2007 Black";
|
||||
this.skinItem21.TabIndex = 24;
|
||||
this.skinItem21.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem1
|
||||
//
|
||||
this.skinItem1.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem1.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem1.Location = new System.Drawing.Point(789, 35);
|
||||
this.skinItem1.Name = "skinItem1";
|
||||
this.skinItem1.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem1.SkinImage = global::Lskj.Main3.Properties.Resources.office_2007_blue;
|
||||
this.skinItem1.SkinTag = "Office 2007 Blue";
|
||||
this.skinItem1.SkinText = "Office 2007 Blue";
|
||||
this.skinItem1.TabIndex = 20;
|
||||
this.skinItem1.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem2
|
||||
//
|
||||
this.skinItem2.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem2.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem2.Location = new System.Drawing.Point(658, 35);
|
||||
this.skinItem2.Name = "skinItem2";
|
||||
this.skinItem2.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem2.SkinImage = global::Lskj.Main3.Properties.Resources.office_2010_silver;
|
||||
this.skinItem2.SkinTag = "Office 2010 Silver";
|
||||
this.skinItem2.SkinText = "Office 2010 Silver";
|
||||
this.skinItem2.TabIndex = 23;
|
||||
this.skinItem2.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem3
|
||||
//
|
||||
this.skinItem3.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem3.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem3.Location = new System.Drawing.Point(527, 35);
|
||||
this.skinItem3.Name = "skinItem3";
|
||||
this.skinItem3.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem3.SkinImage = global::Lskj.Main3.Properties.Resources.office_2010_black;
|
||||
this.skinItem3.SkinTag = "Office 2010 Black";
|
||||
this.skinItem3.SkinText = "Office 2010 Black";
|
||||
this.skinItem3.TabIndex = 22;
|
||||
this.skinItem3.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem4
|
||||
//
|
||||
this.skinItem4.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem4.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem4.Location = new System.Drawing.Point(396, 35);
|
||||
this.skinItem4.Name = "skinItem4";
|
||||
this.skinItem4.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem4.SkinImage = global::Lskj.Main3.Properties.Resources.office_2010_bule;
|
||||
this.skinItem4.SkinTag = "Office 2010 Blue";
|
||||
this.skinItem4.SkinText = "Office 2010 Blue";
|
||||
this.skinItem4.TabIndex = 21;
|
||||
this.skinItem4.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// si_office_2013_light_gray
|
||||
//
|
||||
this.si_office_2013_light_gray.BackColor = System.Drawing.Color.Transparent;
|
||||
this.si_office_2013_light_gray.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.si_office_2013_light_gray.Location = new System.Drawing.Point(265, 35);
|
||||
this.si_office_2013_light_gray.Name = "si_office_2013_light_gray";
|
||||
this.si_office_2013_light_gray.Size = new System.Drawing.Size(125, 80);
|
||||
this.si_office_2013_light_gray.SkinImage = global::Lskj.Main3.Properties.Resources.devexpress_2013_light_gray;
|
||||
this.si_office_2013_light_gray.SkinTag = "Office 2013 Light Gray";
|
||||
this.si_office_2013_light_gray.SkinText = "Office 2013 Light";
|
||||
this.si_office_2013_light_gray.TabIndex = 19;
|
||||
this.si_office_2013_light_gray.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// si_office_2013_dark_gray
|
||||
//
|
||||
this.si_office_2013_dark_gray.BackColor = System.Drawing.Color.Transparent;
|
||||
this.si_office_2013_dark_gray.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.si_office_2013_dark_gray.Location = new System.Drawing.Point(134, 35);
|
||||
this.si_office_2013_dark_gray.Name = "si_office_2013_dark_gray";
|
||||
this.si_office_2013_dark_gray.Size = new System.Drawing.Size(125, 80);
|
||||
this.si_office_2013_dark_gray.SkinImage = global::Lskj.Main3.Properties.Resources.devexpress_2013_gray;
|
||||
this.si_office_2013_dark_gray.SkinTag = "Office 2013 Dark Gray";
|
||||
this.si_office_2013_dark_gray.SkinText = "Office 2013 Dark";
|
||||
this.si_office_2013_dark_gray.TabIndex = 18;
|
||||
this.si_office_2013_dark_gray.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// si_office_2013_white
|
||||
//
|
||||
this.si_office_2013_white.BackColor = System.Drawing.Color.Transparent;
|
||||
this.si_office_2013_white.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.si_office_2013_white.Location = new System.Drawing.Point(3, 35);
|
||||
this.si_office_2013_white.Name = "si_office_2013_white";
|
||||
this.si_office_2013_white.Size = new System.Drawing.Size(125, 80);
|
||||
this.si_office_2013_white.SkinImage = ((System.Drawing.Image)(resources.GetObject("si_office_2013_white.SkinImage")));
|
||||
this.si_office_2013_white.SkinTag = "Office 2013 White";
|
||||
this.si_office_2013_white.SkinText = "Office 2013 White";
|
||||
this.si_office_2013_white.TabIndex = 17;
|
||||
this.si_office_2013_white.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// SkinControl
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.White;
|
||||
this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.Controls.Add(this.panel3);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Name = "SkinControl";
|
||||
this.Size = new System.Drawing.Size(919, 507);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel2.PerformLayout();
|
||||
this.panel3.ResumeLayout(false);
|
||||
this.panel4.ResumeLayout(false);
|
||||
this.panel4.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Panel panel3;
|
||||
private System.Windows.Forms.Panel panel4;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private SkinItem skinItem8;
|
||||
private SkinItem skinItem9;
|
||||
private SkinItem skinItem10;
|
||||
private SkinItem skinItem11;
|
||||
private SkinItem skinItem12;
|
||||
private SkinItem skinItem13;
|
||||
private SkinItem skinItem14;
|
||||
private SkinItem skinItem1;
|
||||
private SkinItem skinItem2;
|
||||
private SkinItem skinItem3;
|
||||
private SkinItem skinItem4;
|
||||
private SkinItem si_office_2013_light_gray;
|
||||
private SkinItem si_office_2013_dark_gray;
|
||||
private SkinItem si_office_2013_white;
|
||||
private SkinItem skinItem29;
|
||||
private SkinItem skinItem30;
|
||||
private SkinItem skinItem31;
|
||||
private SkinItem skinItem32;
|
||||
private SkinItem skinItem33;
|
||||
private SkinItem skinItem34;
|
||||
private SkinItem skinItem35;
|
||||
private SkinItem skinItem22;
|
||||
private SkinItem skinItem23;
|
||||
private SkinItem skinItem24;
|
||||
private SkinItem skinItem25;
|
||||
private SkinItem skinItem26;
|
||||
private SkinItem skinItem27;
|
||||
private SkinItem skinItem28;
|
||||
private SkinItem skinItem15;
|
||||
private SkinItem skinItem16;
|
||||
private SkinItem skinItem17;
|
||||
private SkinItem skinItem18;
|
||||
private SkinItem skinItem19;
|
||||
private SkinItem skinItem20;
|
||||
private SkinItem skinItem21;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
/******************************
|
||||
* 说明:自定义皮肤控件
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-09-13
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using Lskj.Model;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
/// <summary>
|
||||
/// 自定义皮肤控件
|
||||
/// </summary>
|
||||
public partial class SkinControl : UserControl
|
||||
{
|
||||
public string SkinName;
|
||||
|
||||
public SkinControl()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:界面加载时</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-09-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="e">包含事件数据的 <see cref="T:System.EventArgs" />。</param>
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
base.OnLoad(e);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:点击皮肤</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-26 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
|
||||
private void skinItem_OnSkinItemClick(object sender, System.EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
SkinName = sender + "";
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?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>
|
||||
<metadata name="panel1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem29.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem30.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem31.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem32.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem33.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem34.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem35.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem22.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem23.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem24.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem25.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem26.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem27.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem28.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem15.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem16.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem17.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem18.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem19.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem20.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem21.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem3.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem4.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="si_office_2013_light_gray.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="si_office_2013_dark_gray.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="si_office_2013_white.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="si_office_2013_white.SkinImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
|
||||
DAAACwwBP0AiyAAAAlFJREFUaEPtmbFqFFEUQB8IQkAQrARBsBIEWysrK0Gwk3xAOgvDm1UshEjAVrAV
|
||||
/ACxCwRSiUWctwlYiUKqgCCkCgiCIAh6Z7LCdffs3fXeHbORPXAgsDPn3TfZpHiTFiw4Kdzbvpiq/qNU
|
||||
1e9Trj+mXNbS6tvLg0/nlPu752XgVRl4O1XlJzp3m3n47qwMtCKDb+HAlse2mVyW5OuxLANsiN9xuL+1
|
||||
883ceXUq9epbstBLWfDryACzdKb06hvyZJ7LV+QQF+vCMLlckyf9VDzABbrWRW/nijzldRl6H6PT2mw6
|
||||
l822VfVvy88X8DpLFxSaJA1L0L2WLiiknXZYgnqWLiikjUA9SxcU0kagnqULCmkjUM/SBYW0Eahn6YJC
|
||||
2gjUs3RBIW0E6lm6oJA2AvUsXVBIG4F6li4opI1APUsXFNJGoJ6lCwppI1DP0gWFtBGoZ+mCQtoI1LN0
|
||||
QSFtBOpZuqCQNgL1LF1QSBuBepYuKKSNQD1LFxTSRqCepQsKaSNQz9IFhbQRqGfpgkLaCNSzdDEcac88
|
||||
662Uy4PU27k0uMrHcHuSLpobm0OtXJ4dnYGWpcEncYYHnKQLCv1h/Vk2uCEbW2s32LwLmBbsGbrI5aoM
|
||||
+EQCn0aCY51yU3ivYZiqf739KrkOd2FTeJ3hTMnlpgz1Qob6got1YSc8/nD66Ey0ecFRf8OFZ2Xn3H1z
|
||||
RjazLL+dTVnwx8gAPvfkway3x/z/lFzOiSviaxhqksc09DjaP9h+JUPtwrC/nbOhx9G86G7+EzVvH0/M
|
||||
0Av+e1L6BZusjCgZKTN7AAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="panel2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="panel3.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem8.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem9.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem10.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem11.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem12.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem13.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem14.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="panel4.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class SkinItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.btn_item_title = new System.Windows.Forms.Label();
|
||||
this.btn_item_img = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btn_item_title
|
||||
//
|
||||
this.btn_item_title.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.btn_item_title.Font = new System.Drawing.Font("宋体", 8F);
|
||||
this.btn_item_title.Location = new System.Drawing.Point(0, 54);
|
||||
this.btn_item_title.Name = "btn_item_title";
|
||||
this.btn_item_title.Size = new System.Drawing.Size(125, 26);
|
||||
this.btn_item_title.TabIndex = 5;
|
||||
this.btn_item_title.Tag = "Office 2013 White";
|
||||
this.btn_item_title.Text = "Office 2013 White";
|
||||
this.btn_item_title.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.btn_item_title.Click += new System.EventHandler(this.SkinItem_Click);
|
||||
this.btn_item_title.MouseLeave += new System.EventHandler(this.SkinItem_MouseLeave);
|
||||
this.btn_item_title.MouseMove += new System.Windows.Forms.MouseEventHandler(this.SkinItem_MouseMove);
|
||||
//
|
||||
// btn_item_img
|
||||
//
|
||||
this.btn_item_img.BackColor = System.Drawing.Color.Transparent;
|
||||
this.btn_item_img.BackgroundImage = global::Lskj.Main3.Properties.Resources.office_2013;
|
||||
this.btn_item_img.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.btn_item_img.FlatAppearance.BorderSize = 0;
|
||||
this.btn_item_img.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.btn_item_img.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.btn_item_img.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btn_item_img.Location = new System.Drawing.Point(39, 5);
|
||||
this.btn_item_img.Name = "btn_item_img";
|
||||
this.btn_item_img.Size = new System.Drawing.Size(48, 48);
|
||||
this.btn_item_img.TabIndex = 4;
|
||||
this.btn_item_img.UseVisualStyleBackColor = false;
|
||||
this.btn_item_img.Click += new System.EventHandler(this.SkinItem_Click);
|
||||
this.btn_item_img.MouseLeave += new System.EventHandler(this.SkinItem_MouseLeave);
|
||||
this.btn_item_img.MouseMove += new System.Windows.Forms.MouseEventHandler(this.SkinItem_MouseMove);
|
||||
//
|
||||
// SkinItem
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.Color.Transparent;
|
||||
this.Controls.Add(this.btn_item_img);
|
||||
this.Controls.Add(this.btn_item_title);
|
||||
this.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.Name = "SkinItem";
|
||||
this.Size = new System.Drawing.Size(125, 80);
|
||||
this.Click += new System.EventHandler(this.SkinItem_Click);
|
||||
this.MouseLeave += new System.EventHandler(this.SkinItem_MouseLeave);
|
||||
this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.SkinItem_MouseMove);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ToolTip toolTip1;
|
||||
private System.Windows.Forms.Button btn_item_img;
|
||||
private System.Windows.Forms.Label btn_item_title;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
/******************************
|
||||
* 说明:自定义皮肤选择控件
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-09-13
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using DevExpress.LookAndFeel;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
/// <summary>
|
||||
/// 自定义皮肤选择控件
|
||||
/// </summary>
|
||||
public partial class SkinItem : UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Occurs when [on skin item click].
|
||||
/// </summary>
|
||||
[Description("设置皮肤点击事件")]
|
||||
public event EventHandler OnSkinItemClick;
|
||||
|
||||
public SkinItem()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the skin image.
|
||||
/// </summary>
|
||||
/// <value>The skin image.</value>
|
||||
[Description("设置皮肤图标"), Category("皮肤"), DefaultValue(null)]
|
||||
public Image SkinImage
|
||||
{
|
||||
get
|
||||
{
|
||||
return btn_item_img.BackgroundImage;
|
||||
}
|
||||
set
|
||||
{
|
||||
btn_item_img.BackgroundImage = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets the skin text.
|
||||
/// </summary>
|
||||
/// <value>The skin text.</value>
|
||||
[Description("设置皮肤文本"), Category("皮肤"), DefaultValue("")]
|
||||
public string SkinText
|
||||
{
|
||||
get
|
||||
{
|
||||
return btn_item_title.Text;
|
||||
}
|
||||
set
|
||||
{
|
||||
btn_item_title.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets the skin tag.
|
||||
/// </summary>
|
||||
/// <value>The skin tag.</value>
|
||||
[Description("设置皮肤Tag"), Category("皮肤"), DefaultValue("")]
|
||||
public string SkinTag
|
||||
{
|
||||
get
|
||||
{
|
||||
return btn_item_title.Tag + "";
|
||||
}
|
||||
set
|
||||
{
|
||||
btn_item_title.Tag = value + "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标移动时</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-09-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void SkinItem_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.BackColor = Color.FromArgb(205, 230, 247);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标离开时</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-09-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void SkinItem_MouseLeave(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.BackColor = Color.Transparent;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:切换皮肤</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-09-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void SkinItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
string skinName = this.btn_item_title.Tag + "";
|
||||
|
||||
UserLookAndFeel.Default.SetSkinStyle(skinName);
|
||||
if (this.OnSkinItemClick != null)
|
||||
OnSkinItemClick(skinName, e);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
<?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>
|
||||
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class SubItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.lblTitle = new System.Windows.Forms.Label();
|
||||
this.plCenter = new System.Windows.Forms.Panel();
|
||||
this.picImage = new System.Windows.Forms.PictureBox();
|
||||
this.plTop = new System.Windows.Forms.Panel();
|
||||
this.plCenter.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.picImage)).BeginInit();
|
||||
this.plTop.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// lblTitle
|
||||
//
|
||||
this.lblTitle.AutoSize = true;
|
||||
this.lblTitle.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblTitle.ForeColor = System.Drawing.Color.White;
|
||||
this.lblTitle.Location = new System.Drawing.Point(19, 13);
|
||||
this.lblTitle.Name = "lblTitle";
|
||||
this.lblTitle.Size = new System.Drawing.Size(0, 19);
|
||||
this.lblTitle.TabIndex = 0;
|
||||
//
|
||||
// plCenter
|
||||
//
|
||||
this.plCenter.BackColor = System.Drawing.Color.Transparent;
|
||||
this.plCenter.Controls.Add(this.picImage);
|
||||
this.plCenter.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.plCenter.Location = new System.Drawing.Point(0, 40);
|
||||
this.plCenter.Name = "plCenter";
|
||||
this.plCenter.Size = new System.Drawing.Size(175, 114);
|
||||
this.plCenter.TabIndex = 3;
|
||||
this.plCenter.MouseClick += new System.Windows.Forms.MouseEventHandler(this.plTop_MouseClick);
|
||||
this.plCenter.MouseLeave += new System.EventHandler(this.plCenter_MouseLeave);
|
||||
this.plCenter.MouseMove += new System.Windows.Forms.MouseEventHandler(this.plTop_MouseMove);
|
||||
//
|
||||
// picImage
|
||||
//
|
||||
this.picImage.Location = new System.Drawing.Point(51, 20);
|
||||
this.picImage.Name = "picImage";
|
||||
this.picImage.Size = new System.Drawing.Size(64, 64);
|
||||
this.picImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.picImage.TabIndex = 0;
|
||||
this.picImage.TabStop = false;
|
||||
this.picImage.MouseClick += new System.Windows.Forms.MouseEventHandler(this.plTop_MouseClick);
|
||||
this.picImage.MouseLeave += new System.EventHandler(this.plCenter_MouseLeave);
|
||||
this.picImage.MouseMove += new System.Windows.Forms.MouseEventHandler(this.plTop_MouseMove);
|
||||
//
|
||||
// plTop
|
||||
//
|
||||
this.plTop.BackColor = System.Drawing.Color.Transparent;
|
||||
this.plTop.Controls.Add(this.lblTitle);
|
||||
this.plTop.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.plTop.Location = new System.Drawing.Point(0, 0);
|
||||
this.plTop.Name = "plTop";
|
||||
this.plTop.Size = new System.Drawing.Size(175, 40);
|
||||
this.plTop.TabIndex = 2;
|
||||
this.plTop.MouseClick += new System.Windows.Forms.MouseEventHandler(this.plTop_MouseClick);
|
||||
this.plTop.MouseLeave += new System.EventHandler(this.plCenter_MouseLeave);
|
||||
this.plTop.MouseMove += new System.Windows.Forms.MouseEventHandler(this.plTop_MouseMove);
|
||||
//
|
||||
// SubItem
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(62)))), ((int)(((byte)(172)))), ((int)(((byte)(212)))));
|
||||
this.Controls.Add(this.plCenter);
|
||||
this.Controls.Add(this.plTop);
|
||||
this.Name = "SubItem";
|
||||
this.Size = new System.Drawing.Size(175, 154);
|
||||
this.plCenter.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.picImage)).EndInit();
|
||||
this.plTop.ResumeLayout(false);
|
||||
this.plTop.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label lblTitle;
|
||||
private System.Windows.Forms.Panel plCenter;
|
||||
private System.Windows.Forms.PictureBox picImage;
|
||||
private System.Windows.Forms.Panel plTop;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,213 @@
|
||||
/******************************
|
||||
* 说明:自定义子系统模块
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-08-13
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Lskj.Control;
|
||||
using Lskj.Data;
|
||||
using Lskj.Business.Impl;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
/// <summary>
|
||||
/// 自定义子系统模块
|
||||
/// </summary>
|
||||
public partial class SubItem : UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// 鼠标划过颜色
|
||||
/// </summary>
|
||||
private string _moveColor = "#eac205";
|
||||
/// <summary>
|
||||
/// 默认颜色
|
||||
/// </summary>
|
||||
public string DefaultColor;
|
||||
/// <summary>
|
||||
/// 是否可用
|
||||
/// </summary>
|
||||
public Boolean IsUsed;
|
||||
/// <summary>
|
||||
/// 模块名称
|
||||
/// </summary>
|
||||
public string SubName;
|
||||
|
||||
public SubItem()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private HoverEventHandler _hoverEvent = null;
|
||||
/// <summary>
|
||||
/// 鼠标划过控件
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
public delegate void HoverEventHandler(SubItem sender);
|
||||
|
||||
private MouseClickEventHanlder _clickEvent = null;
|
||||
/// <summary>
|
||||
/// 鼠标点击控件
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
public delegate void MouseClickEventHanlder(SubItem sender);
|
||||
|
||||
/// <summary>
|
||||
/// label对象
|
||||
/// </summary>
|
||||
public Label GetLabel { get { return lblTitle; } }
|
||||
/// <summary>
|
||||
/// PictureBox对象
|
||||
/// </summary>
|
||||
public PictureBox GetPictureBox { get { return picImage; } }
|
||||
/// <summary>
|
||||
/// <para>说明:注册鼠标划过事件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="hoverEvent">The hover event.</param>
|
||||
public void SetHoverEvent(HoverEventHandler hoverEvent)
|
||||
{
|
||||
try
|
||||
{
|
||||
this._hoverEvent = hoverEvent;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:注册点击事件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="clickEvent">The click event.</param>
|
||||
public void SetClickEvent(MouseClickEventHanlder clickEvent)
|
||||
{
|
||||
try
|
||||
{
|
||||
this._clickEvent = clickEvent;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#region 改变背景色
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标移动时</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void plTop_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.BackColor = ColorTranslator.FromHtml(_moveColor);
|
||||
this.Cursor = Cursors.Hand;
|
||||
if (_hoverEvent != null)
|
||||
{
|
||||
this._hoverEvent(this);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标离开时</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void plCenter_MouseLeave(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.BackColor = ColorTranslator.FromHtml(DefaultColor);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 点击事件
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标点击时:</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
/// <param name="e">The <see cref="System.Windows.Forms.MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void plTop_MouseClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (_clickEvent != null)
|
||||
{
|
||||
if (IsUsed)
|
||||
{
|
||||
_clickEvent(this);
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageUtil.Show(SubName + ResourceKeys.SubSystemUnEnabled);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class SubItemForm
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// SubItemForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.White;
|
||||
this.Name = "SubItemForm";
|
||||
this.Size = new System.Drawing.Size(192, 195);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,144 @@
|
||||
/***********************
|
||||
* 说明:子系统快捷窗口
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
***********************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using DevExpress.XtraEditors;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
public partial class SubItemForm : UserControl
|
||||
{
|
||||
public SubItemForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.Hide();
|
||||
}
|
||||
/// <summary>
|
||||
/// 控件状态
|
||||
/// </summary>
|
||||
public bool _isFocus = false;
|
||||
/// <summary>
|
||||
/// 子系统按钮点击回调
|
||||
/// </summary>
|
||||
public EventHandler OnbtnSubItemClick;
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:数据填充排布</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-08-02 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
public void SetDataSource(DataRow[] dt)
|
||||
{
|
||||
int index = 1;
|
||||
int height = 0;
|
||||
int x = 0;
|
||||
int formHeight = 0;
|
||||
foreach (DataRow item in dt)
|
||||
{
|
||||
SimpleButton btnSub = new SimpleButton();
|
||||
btnSub.Width = 96;
|
||||
btnSub.Click += new EventHandler(OnSubItemClick);
|
||||
btnSub.Location = new Point(10 + x, 5 + height);
|
||||
int y = btnSub.Location.Y;
|
||||
x = 96 + 5;
|
||||
if (index % 2 == 0)
|
||||
{
|
||||
height = y + btnSub.Height + 10;
|
||||
x = 0;
|
||||
formHeight = height;
|
||||
}
|
||||
else
|
||||
{
|
||||
formHeight = height + btnSub.Height + 10;
|
||||
}
|
||||
btnSub.Text = item["SubSysName"] + "";
|
||||
btnSub.Tag = item["SubSysId"] + "";
|
||||
this.Controls.Add(btnSub);
|
||||
index++;
|
||||
}
|
||||
this.Height = formHeight;
|
||||
this.Width = this.Width + 25;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:套账填充排布</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-08-02 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
public void SetAccountsSource(DataTable dt)
|
||||
{
|
||||
int height = 0;
|
||||
int width = 0;
|
||||
int formWidth = 0;
|
||||
for (int i = dt.Rows.Count; i > 0; i--)
|
||||
{
|
||||
DataRow item = dt.Rows[i - 1];
|
||||
SimpleButton btnSub = new SimpleButton();
|
||||
btnSub.Appearance.Options.UseTextOptions = true;
|
||||
btnSub.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
|
||||
btnSub.BackColor = Color.Transparent;
|
||||
btnSub.Click += new EventHandler(OnSubItemClick);
|
||||
btnSub.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
btnSub.Text = item["ShowName"] + "";
|
||||
btnSub.Tag = item;
|
||||
this.Controls.Add(btnSub);
|
||||
|
||||
height = height + btnSub.Height;
|
||||
if (formWidth < btnSub.Width)
|
||||
{
|
||||
formWidth = btnSub.Width;
|
||||
}
|
||||
}
|
||||
this.Height = height+2;
|
||||
this.Width = formWidth+37;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:点击子系统</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-08-03 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void OnSubItemClick(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (OnbtnSubItemClick != null)
|
||||
OnbtnSubItemClick(sender, e);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class TreeNodeCustom
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.btnTreeNode = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btnTreeNode
|
||||
//
|
||||
this.btnTreeNode.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(87)))), ((int)(((byte)(167)))));
|
||||
this.btnTreeNode.BackgroundImage = global::Lskj.Main3.Properties.Resources.node_default;
|
||||
this.btnTreeNode.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.btnTreeNode.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btnTreeNode.FlatAppearance.BorderSize = 0;
|
||||
this.btnTreeNode.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnTreeNode.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnTreeNode.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnTreeNode.Font = new System.Drawing.Font("微软雅黑", 12F);
|
||||
this.btnTreeNode.ForeColor = System.Drawing.Color.White;
|
||||
this.btnTreeNode.Location = new System.Drawing.Point(0, 0);
|
||||
this.btnTreeNode.Name = "btnTreeNode";
|
||||
this.btnTreeNode.Padding = new System.Windows.Forms.Padding(10, 0, 0, 0);
|
||||
this.btnTreeNode.Size = new System.Drawing.Size(130, 31);
|
||||
this.btnTreeNode.TabIndex = 0;
|
||||
this.btnTreeNode.Text = "我的桌面";
|
||||
this.btnTreeNode.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.btnTreeNode.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// TreeNodeCustom
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.Controls.Add(this.btnTreeNode);
|
||||
this.Name = "TreeNodeCustom";
|
||||
this.Size = new System.Drawing.Size(130, 31);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public System.Windows.Forms.Button btnTreeNode;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/***********************
|
||||
* 说明:主界面左菜单节点
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
***********************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
public partial class TreeNodeCustom : UserControl
|
||||
{
|
||||
public TreeNodeCustom()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class TreeViewCustom
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.plTreeView = new System.Windows.Forms.Panel();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// plTreeView
|
||||
//
|
||||
this.plTreeView.AutoScroll = true;
|
||||
this.plTreeView.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.plTreeView.Location = new System.Drawing.Point(0, 0);
|
||||
this.plTreeView.Name = "plTreeView";
|
||||
this.plTreeView.Size = new System.Drawing.Size(140, 452);
|
||||
this.plTreeView.TabIndex = 0;
|
||||
//
|
||||
// TreeViewCustom
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.AutoScroll = true;
|
||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(87)))), ((int)(((byte)(167)))));
|
||||
this.Controls.Add(this.plTreeView);
|
||||
this.Name = "TreeViewCustom";
|
||||
this.Size = new System.Drawing.Size(140, 452);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel plTreeView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,418 @@
|
||||
/***********************
|
||||
* 说明:主界面左菜单树
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2018-04-25
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
***********************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
public partial class TreeViewCustom : UserControl
|
||||
{
|
||||
#region 公有属性
|
||||
/// <summary>
|
||||
/// 父节点字段
|
||||
/// </summary>
|
||||
public string ParentField;
|
||||
/// <summary>
|
||||
/// 显示节点文本字段
|
||||
/// </summary>
|
||||
public string TextField;
|
||||
/// <summary>
|
||||
/// 父节点关联子节点位数
|
||||
/// </summary>
|
||||
public int ParentKeyLength;
|
||||
/// <summary>
|
||||
/// 左侧菜单点击回调
|
||||
/// </summary>
|
||||
/// <param name="after">The after.</param>
|
||||
public delegate void ButtonClickEventHandler(Button after);
|
||||
/// <summary>
|
||||
/// 左侧菜单事件注册
|
||||
/// </summary>
|
||||
public ButtonClickEventHandler OnButtonClickEvent;
|
||||
#endregion
|
||||
|
||||
#region 私有属性
|
||||
/// <summary>
|
||||
/// 上次显示节点
|
||||
/// </summary>
|
||||
private string _lastTreeNode;
|
||||
/// <summary>
|
||||
/// 上次显示按钮ID
|
||||
/// </summary>
|
||||
private string _lastMenuId;
|
||||
/// 数据源
|
||||
/// </summary>
|
||||
private DataTable _dataSource;
|
||||
/// <summary>
|
||||
/// 缓存菜单,按照节点缓存
|
||||
/// </summary>
|
||||
private Dictionary<string, List<TreeNodeCustom>> _dicTreeNodes = new Dictionary<string, List<TreeNodeCustom>>();
|
||||
/// <summary>
|
||||
/// 缓存所有按钮
|
||||
/// </summary>
|
||||
private Dictionary<string, Button> _dicButtons = new Dictionary<string, Button>();
|
||||
#endregion
|
||||
|
||||
#region Api
|
||||
[DllImport("user32.dll")]
|
||||
public static extern int SendMessage(IntPtr hWnd, Int32 wMsg, bool wParam, Int32 lParam);
|
||||
|
||||
private const int WM_SETREDRAW = 11;
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:停止绘制</para>
|
||||
/// <para>创建人 龚宇超</para>
|
||||
/// <para>创建日期:2018-04-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="parent"></param>
|
||||
public static void SuspendDrawing(System.Windows.Forms.Control parent)
|
||||
{
|
||||
SendMessage(parent.Handle, WM_SETREDRAW, false, 0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:开始绘制</para>
|
||||
/// <para>创建人 龚宇超</para>
|
||||
/// <para>创建日期:2018-04-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="parent"></param>
|
||||
public static void ResumeDrawing(System.Windows.Forms.Control parent)
|
||||
{
|
||||
SendMessage(parent.Handle, WM_SETREDRAW, true, 0);
|
||||
parent.Refresh();
|
||||
}
|
||||
#endregion
|
||||
|
||||
public TreeViewCustom()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
protected override void WndProc(ref Message m)
|
||||
{
|
||||
if (m.Msg == 0x0014) return;
|
||||
base.WndProc(ref m);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:检查是否包含父节点</para>
|
||||
/// <para>创建人 龚宇超</para>
|
||||
/// <para>创建日期:2018-04-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private List<TreeNodeCustom> getParentNodes(string parent)
|
||||
{
|
||||
string parentKey = parent.Length == ParentKeyLength ? parent : parent.Substring(0, parent.Length - ParentKeyLength);
|
||||
List<TreeNodeCustom> treeNodeList = new List<TreeNodeCustom>();
|
||||
|
||||
if (_dicTreeNodes == null)
|
||||
_dicTreeNodes = new Dictionary<string, List<TreeNodeCustom>>();
|
||||
|
||||
if (_dicTreeNodes.ContainsKey(parentKey))
|
||||
{
|
||||
treeNodeList = _dicTreeNodes[parentKey];
|
||||
}
|
||||
else
|
||||
{
|
||||
_dicTreeNodes.Add(parentKey, treeNodeList);
|
||||
}
|
||||
return treeNodeList;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:加载菜单</para>
|
||||
/// <para>创建人 龚宇超</para>
|
||||
/// <para>创建日期:2018-04-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
public void SetDataSource(DataTable dtTable)
|
||||
{
|
||||
int index = 1;
|
||||
this._dataSource = dtTable;
|
||||
if (_dataSource == null || _dataSource.Rows.Count == 0) return;
|
||||
|
||||
// 获取根节点
|
||||
DataRow[] rootRows = _dataSource.Rows.Cast<DataRow>().Where(x => (x[ParentField] + "").Length == ParentKeyLength || (x[ParentField] + "").Length == ParentKeyLength * 2).ToArray();
|
||||
foreach (DataRow item in _dataSource.Rows)
|
||||
{
|
||||
int length = (item[ParentField] + "").Length;
|
||||
TreeNodeCustom treeNode = new TreeNodeCustom();
|
||||
treeNode.Dock = DockStyle.Top;
|
||||
treeNode.Tag = item[ParentField] + "";
|
||||
treeNode.TabIndex = index;
|
||||
|
||||
if (length == ParentKeyLength)
|
||||
{
|
||||
treeNode.btnTreeNode.BackgroundImage = Lskj.Main3.Properties.Resources.node_default;
|
||||
treeNode.btnTreeNode.Font = new Font("微软雅黑", 12);
|
||||
}
|
||||
else if (length / ParentKeyLength == 2)
|
||||
{
|
||||
treeNode.btnTreeNode.BackgroundImage = Lskj.Main3.Properties.Resources.node2_default;
|
||||
treeNode.btnTreeNode.Padding = new Padding(20, 1, 3, 3);
|
||||
treeNode.btnTreeNode.Font = new Font("微软雅黑", 11);
|
||||
}
|
||||
else
|
||||
{
|
||||
treeNode.btnTreeNode.BackgroundImage = Lskj.Main3.Properties.Resources.node3_default;
|
||||
treeNode.btnTreeNode.Padding = new Padding(30, 1, 3, 3);
|
||||
treeNode.btnTreeNode.Font = new Font("微软雅黑", 10);
|
||||
}
|
||||
|
||||
treeNode.btnTreeNode.Name = index + "";
|
||||
treeNode.btnTreeNode.Text = item[TextField] + "";
|
||||
treeNode.btnTreeNode.Tag = item;
|
||||
treeNode.btnTreeNode.Click += new EventHandler(btnTreeNode_Click);
|
||||
treeNode.btnTreeNode.MouseMove += new MouseEventHandler(btnTreeNode_MouseMove);
|
||||
treeNode.btnTreeNode.MouseLeave += new EventHandler(btnTreeNode_MouseLeave);
|
||||
|
||||
plTreeView.Controls.Add(treeNode);
|
||||
_dicButtons.Add(index + "", treeNode.btnTreeNode);
|
||||
|
||||
List<TreeNodeCustom> parentNodes = getParentNodes(item[ParentField] + "");
|
||||
parentNodes.Add(treeNode);
|
||||
// 隐藏需要放在添加后,否则出现顺序错乱
|
||||
treeNode.Visible = length == ParentKeyLength;
|
||||
index++;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:树点击</para>
|
||||
/// <para>创建人 龚宇超</para>
|
||||
/// <para>创建日期:2018-04-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void btnTreeNode_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
SuspendDrawing(plTreeView);
|
||||
TreeNodeCustom treeNode = (sender as Button).Parent as TreeNodeCustom;
|
||||
if (treeNode != null)
|
||||
{
|
||||
string nodeValue = treeNode.Tag + "";
|
||||
if (_lastTreeNode == null)
|
||||
{
|
||||
_lastTreeNode = nodeValue;
|
||||
}
|
||||
if (nodeValue.Length == ParentKeyLength)
|
||||
{
|
||||
treeNode.btnTreeNode.BackgroundImage = _dicTreeNodes[nodeValue][0].Visible ? Lskj.Main3.Properties.Resources.node_default : Lskj.Main3.Properties.Resources.node_select;
|
||||
}
|
||||
if (nodeValue.Length == ParentKeyLength * 2)
|
||||
{
|
||||
treeNode.btnTreeNode.BackgroundImage = _dicTreeNodes[nodeValue][0].Visible ? Lskj.Main3.Properties.Resources.node2_default : Lskj.Main3.Properties.Resources.node2_select;
|
||||
}
|
||||
// 末节点
|
||||
if (nodeValue.Length == ParentKeyLength * 3)
|
||||
{
|
||||
treeNode.btnTreeNode.BackgroundImage = Lskj.Main3.Properties.Resources.node3_select;
|
||||
if (!string.IsNullOrEmpty(_lastMenuId) && _lastMenuId != treeNode.btnTreeNode.Name)
|
||||
{
|
||||
_dicButtons[_lastMenuId].BackgroundImage = Lskj.Main3.Properties.Resources.node3_default;
|
||||
}
|
||||
_lastMenuId = treeNode.btnTreeNode.Name;
|
||||
}
|
||||
List<TreeNodeCustom> treeNodes = new List<TreeNodeCustom>();
|
||||
// 展开当前点击节点
|
||||
if (_dicTreeNodes.ContainsKey(nodeValue))
|
||||
{
|
||||
treeNodes = _dicTreeNodes[nodeValue];
|
||||
foreach (TreeNodeCustom node in treeNodes)
|
||||
{
|
||||
string menuKey = node.Tag + "";
|
||||
if (menuKey.Length == ParentKeyLength) continue;
|
||||
node.Visible = !node.Visible;
|
||||
Application.DoEvents();// 处理当前消息队列中的所有windows消息
|
||||
}
|
||||
}
|
||||
// 点击根节点隐藏所有子节点
|
||||
if (nodeValue.Length == ParentKeyLength && !_dicTreeNodes[nodeValue][0].Visible)
|
||||
{
|
||||
treeNodes = getChildNodes(nodeValue);
|
||||
foreach (TreeNodeCustom node in treeNodes)
|
||||
{
|
||||
node.Visible = false;
|
||||
//Application.DoEvents();// 处理当前消息队列中的所有windows消息
|
||||
}
|
||||
}
|
||||
// 点击末节点
|
||||
if (nodeValue.Length == ParentKeyLength * 3)
|
||||
{
|
||||
if (OnButtonClickEvent != null)
|
||||
{
|
||||
this.OnButtonClickEvent(treeNode.btnTreeNode);
|
||||
}
|
||||
}
|
||||
_lastTreeNode = nodeValue;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
ResumeDrawing(plTreeView);
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标移动</para>
|
||||
/// <para>创建人 龚宇超</para>
|
||||
/// <para>创建日期:2018-04-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void btnTreeNode_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
Button button = sender as Button;
|
||||
if (button != null)
|
||||
{
|
||||
this.Cursor = Cursors.Hand;
|
||||
|
||||
TreeNodeCustom treeNode = button.Parent as TreeNodeCustom;
|
||||
string treeNodeTag = treeNode.Tag + "";
|
||||
if (treeNodeTag.Length == ParentKeyLength)
|
||||
{
|
||||
}
|
||||
else if (treeNodeTag.Length == ParentKeyLength * 2)
|
||||
{
|
||||
// 第一级节点
|
||||
if (_dicTreeNodes.ContainsKey(treeNodeTag) && _dicTreeNodes[treeNodeTag].Count > 0)
|
||||
{
|
||||
button.BackgroundImage = _dicTreeNodes[treeNodeTag][0].Visible ? Lskj.Main3.Properties.Resources.node2_select : Lskj.Main3.Properties.Resources.node2_move;
|
||||
}
|
||||
else
|
||||
{
|
||||
button.BackgroundImage = Lskj.Main3.Properties.Resources.node2_move;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// 末节点
|
||||
if (button.Name != _lastMenuId)
|
||||
{
|
||||
button.BackgroundImage = Lskj.Main3.Properties.Resources.node3_move;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标离开</para>
|
||||
/// <para>创建人 龚宇超</para>
|
||||
/// <para>创建日期:2018-04-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void btnTreeNode_MouseLeave(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
Button button = sender as Button;
|
||||
if (button != null)
|
||||
{
|
||||
this.Cursor = Cursors.Hand;
|
||||
|
||||
TreeNodeCustom treeNode = button.Parent as TreeNodeCustom;
|
||||
string treeNodeTag = treeNode.Tag + "";
|
||||
if (treeNodeTag.Length == ParentKeyLength)
|
||||
{
|
||||
}
|
||||
else if (treeNodeTag.Length == ParentKeyLength * 2)
|
||||
{
|
||||
// 第一级节点
|
||||
if (_dicTreeNodes.ContainsKey(treeNodeTag) && _dicTreeNodes[treeNodeTag].Count > 0)
|
||||
{
|
||||
button.BackgroundImage = _dicTreeNodes[treeNodeTag][0].Visible ? Lskj.Main3.Properties.Resources.node2_select : Lskj.Main3.Properties.Resources.node2_default;
|
||||
}
|
||||
else
|
||||
{
|
||||
button.BackgroundImage = Lskj.Main3.Properties.Resources.node2_default;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// 末节点
|
||||
if (button.Name != _lastMenuId)
|
||||
{
|
||||
button.BackgroundImage = Lskj.Main3.Properties.Resources.node3_default;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:获取子节点</para>
|
||||
/// <para>创建人 龚宇超</para>
|
||||
/// <para>创建日期:2018-04-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private List<TreeNodeCustom> getChildNodes(string nodeValue)
|
||||
{
|
||||
List<TreeNodeCustom> treeNodes = new List<TreeNodeCustom>();
|
||||
|
||||
// 获取第3个节点之后的节点
|
||||
DataRow[] rowChilds = _dataSource.Rows.Cast<DataRow>().Where(x => (x[ParentField] + "").Length == nodeValue.Length * 2 && (x[ParentField] + "").Substring(0, nodeValue.Length) == nodeValue).ToArray();
|
||||
|
||||
foreach (DataRow item in rowChilds)
|
||||
{
|
||||
if (_dicTreeNodes.ContainsKey(item[ParentField] + ""))
|
||||
{
|
||||
List<TreeNodeCustom> nodeChilds = _dicTreeNodes[item[ParentField] + ""];
|
||||
foreach (TreeNodeCustom node in nodeChilds)
|
||||
{
|
||||
treeNodes.Add(node);
|
||||
}
|
||||
}
|
||||
}
|
||||
return treeNodes;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user