角色管理器优化,可更改角色名,描述信息,客户端主界面测试中英文切换,v1.6.2
This commit is contained in:
140
ClientsLibrary/AccountSupport/FormInputNewRole.Designer.cs
generated
Normal file
140
ClientsLibrary/AccountSupport/FormInputNewRole.Designer.cs
generated
Normal file
@@ -0,0 +1,140 @@
|
|||||||
|
namespace ClientsLibrary
|
||||||
|
{
|
||||||
|
partial class FormInputNewRole
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||||
|
this.textBox3 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.userButton_login = new HslCommunication.Controls.UserButton();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.Location = new System.Drawing.Point(12, 21);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(68, 17);
|
||||||
|
this.label1.TabIndex = 0;
|
||||||
|
this.label1.Text = "唯一标识:";
|
||||||
|
//
|
||||||
|
// textBox1
|
||||||
|
//
|
||||||
|
this.textBox1.Location = new System.Drawing.Point(86, 18);
|
||||||
|
this.textBox1.Name = "textBox1";
|
||||||
|
this.textBox1.ReadOnly = true;
|
||||||
|
this.textBox1.Size = new System.Drawing.Size(347, 23);
|
||||||
|
this.textBox1.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.Location = new System.Drawing.Point(12, 51);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(44, 17);
|
||||||
|
this.label2.TabIndex = 2;
|
||||||
|
this.label2.Text = "名称:";
|
||||||
|
//
|
||||||
|
// textBox2
|
||||||
|
//
|
||||||
|
this.textBox2.Location = new System.Drawing.Point(86, 48);
|
||||||
|
this.textBox2.Name = "textBox2";
|
||||||
|
this.textBox2.Size = new System.Drawing.Size(347, 23);
|
||||||
|
this.textBox2.TabIndex = 3;
|
||||||
|
//
|
||||||
|
// textBox3
|
||||||
|
//
|
||||||
|
this.textBox3.Location = new System.Drawing.Point(86, 79);
|
||||||
|
this.textBox3.Name = "textBox3";
|
||||||
|
this.textBox3.Size = new System.Drawing.Size(347, 23);
|
||||||
|
this.textBox3.TabIndex = 5;
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.Location = new System.Drawing.Point(12, 82);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(44, 17);
|
||||||
|
this.label3.TabIndex = 4;
|
||||||
|
this.label3.Text = "描述:";
|
||||||
|
//
|
||||||
|
// userButton_login
|
||||||
|
//
|
||||||
|
this.userButton_login.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.userButton_login.CustomerInformation = "";
|
||||||
|
this.userButton_login.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||||
|
this.userButton_login.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||||
|
this.userButton_login.Location = new System.Drawing.Point(168, 109);
|
||||||
|
this.userButton_login.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||||
|
this.userButton_login.Name = "userButton_login";
|
||||||
|
this.userButton_login.Size = new System.Drawing.Size(108, 27);
|
||||||
|
this.userButton_login.TabIndex = 9;
|
||||||
|
this.userButton_login.UIText = "确认";
|
||||||
|
this.userButton_login.Click += new System.EventHandler(this.userButton_login_Click);
|
||||||
|
//
|
||||||
|
// FormInputNewRole
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(445, 142);
|
||||||
|
this.Controls.Add(this.userButton_login);
|
||||||
|
this.Controls.Add(this.textBox3);
|
||||||
|
this.Controls.Add(this.label3);
|
||||||
|
this.Controls.Add(this.textBox2);
|
||||||
|
this.Controls.Add(this.label2);
|
||||||
|
this.Controls.Add(this.textBox1);
|
||||||
|
this.Controls.Add(this.label1);
|
||||||
|
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||||
|
this.MaximizeBox = false;
|
||||||
|
this.MaximumSize = new System.Drawing.Size(461, 181);
|
||||||
|
this.MinimizeBox = false;
|
||||||
|
this.MinimumSize = new System.Drawing.Size(461, 181);
|
||||||
|
this.Name = "FormInputNewRole";
|
||||||
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||||
|
this.Text = "FormInputNewRole";
|
||||||
|
this.Load += new System.EventHandler(this.FormInputNewRole_Load);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.TextBox textBox1;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.TextBox textBox2;
|
||||||
|
private System.Windows.Forms.TextBox textBox3;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
private HslCommunication.Controls.UserButton userButton_login;
|
||||||
|
}
|
||||||
|
}
|
||||||
111
ClientsLibrary/AccountSupport/FormInputNewRole.cs
Normal file
111
ClientsLibrary/AccountSupport/FormInputNewRole.cs
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
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;
|
||||||
|
using CommonLibrary;
|
||||||
|
|
||||||
|
namespace ClientsLibrary
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 用户输入或者编辑新的角色内容
|
||||||
|
/// </summary>
|
||||||
|
public partial class FormInputNewRole : Form
|
||||||
|
{
|
||||||
|
#region Constructor
|
||||||
|
|
||||||
|
|
||||||
|
public FormInputNewRole()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
|
||||||
|
Icon = UserClient.GetFormWindowIcon();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Form Load
|
||||||
|
|
||||||
|
|
||||||
|
private void FormInputNewRole_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (m_RoleItem == null)
|
||||||
|
{
|
||||||
|
textBox1.Text = Guid.NewGuid().ToString("N");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Show Dialog
|
||||||
|
|
||||||
|
|
||||||
|
public DialogResult ShowDialog(RoleItem roleItem)
|
||||||
|
{
|
||||||
|
// 此处是编辑
|
||||||
|
m_RoleItem = roleItem;
|
||||||
|
|
||||||
|
if (m_RoleItem != null)
|
||||||
|
{
|
||||||
|
textBox1.Text = m_RoleItem.RoleCode;
|
||||||
|
textBox2.Text = m_RoleItem.RoleName;
|
||||||
|
textBox3.Text = m_RoleItem.Description;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ShowDialog();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Public Property
|
||||||
|
|
||||||
|
public RoleItem RoleItem
|
||||||
|
{
|
||||||
|
get { return m_RoleItem; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public string RoleName
|
||||||
|
{
|
||||||
|
get { return textBox2.Text; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public string RoleDescription
|
||||||
|
{
|
||||||
|
get { return textBox3.Text; }
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Private Members
|
||||||
|
|
||||||
|
private RoleItem m_RoleItem;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Save
|
||||||
|
|
||||||
|
|
||||||
|
private void userButton_login_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if(m_RoleItem == null)
|
||||||
|
{
|
||||||
|
m_RoleItem = new RoleItem()
|
||||||
|
{
|
||||||
|
RoleCode = textBox1.Text,
|
||||||
|
RoleName = textBox2.Text,
|
||||||
|
Description = textBox3.Text,
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
DialogResult = DialogResult.OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
120
ClientsLibrary/AccountSupport/FormInputNewRole.resx
Normal file
120
ClientsLibrary/AccountSupport/FormInputNewRole.resx
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
@@ -43,6 +43,8 @@ namespace ClientsLibrary
|
|||||||
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
||||||
this.comboBox2 = new System.Windows.Forms.ComboBox();
|
this.comboBox2 = new System.Windows.Forms.ComboBox();
|
||||||
this.comboBox_factory = new System.Windows.Forms.ComboBox();
|
this.comboBox_factory = new System.Windows.Forms.ComboBox();
|
||||||
|
this.textBox3 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label7 = new System.Windows.Forms.Label();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// label1
|
// label1
|
||||||
@@ -56,22 +58,22 @@ namespace ClientsLibrary
|
|||||||
//
|
//
|
||||||
// textBox1
|
// textBox1
|
||||||
//
|
//
|
||||||
this.textBox1.Location = new System.Drawing.Point(98, 15);
|
this.textBox1.Location = new System.Drawing.Point(129, 15);
|
||||||
this.textBox1.Name = "textBox1";
|
this.textBox1.Name = "textBox1";
|
||||||
this.textBox1.Size = new System.Drawing.Size(232, 23);
|
this.textBox1.Size = new System.Drawing.Size(201, 23);
|
||||||
this.textBox1.TabIndex = 1;
|
this.textBox1.TabIndex = 1;
|
||||||
//
|
//
|
||||||
// textBox2
|
// textBox2
|
||||||
//
|
//
|
||||||
this.textBox2.Location = new System.Drawing.Point(98, 51);
|
this.textBox2.Location = new System.Drawing.Point(129, 83);
|
||||||
this.textBox2.Name = "textBox2";
|
this.textBox2.Name = "textBox2";
|
||||||
this.textBox2.Size = new System.Drawing.Size(232, 23);
|
this.textBox2.Size = new System.Drawing.Size(201, 23);
|
||||||
this.textBox2.TabIndex = 3;
|
this.textBox2.TabIndex = 3;
|
||||||
//
|
//
|
||||||
// label2
|
// label2
|
||||||
//
|
//
|
||||||
this.label2.AutoSize = true;
|
this.label2.AutoSize = true;
|
||||||
this.label2.Location = new System.Drawing.Point(21, 54);
|
this.label2.Location = new System.Drawing.Point(21, 86);
|
||||||
this.label2.Name = "label2";
|
this.label2.Name = "label2";
|
||||||
this.label2.Size = new System.Drawing.Size(44, 17);
|
this.label2.Size = new System.Drawing.Size(44, 17);
|
||||||
this.label2.TabIndex = 2;
|
this.label2.TabIndex = 2;
|
||||||
@@ -80,7 +82,7 @@ namespace ClientsLibrary
|
|||||||
// label3
|
// label3
|
||||||
//
|
//
|
||||||
this.label3.AutoSize = true;
|
this.label3.AutoSize = true;
|
||||||
this.label3.Location = new System.Drawing.Point(21, 90);
|
this.label3.Location = new System.Drawing.Point(21, 122);
|
||||||
this.label3.Name = "label3";
|
this.label3.Name = "label3";
|
||||||
this.label3.Size = new System.Drawing.Size(44, 17);
|
this.label3.Size = new System.Drawing.Size(44, 17);
|
||||||
this.label3.TabIndex = 4;
|
this.label3.TabIndex = 4;
|
||||||
@@ -89,7 +91,7 @@ namespace ClientsLibrary
|
|||||||
// label4
|
// label4
|
||||||
//
|
//
|
||||||
this.label4.AutoSize = true;
|
this.label4.AutoSize = true;
|
||||||
this.label4.Location = new System.Drawing.Point(21, 125);
|
this.label4.Location = new System.Drawing.Point(21, 157);
|
||||||
this.label4.Name = "label4";
|
this.label4.Name = "label4";
|
||||||
this.label4.Size = new System.Drawing.Size(44, 17);
|
this.label4.Size = new System.Drawing.Size(44, 17);
|
||||||
this.label4.TabIndex = 6;
|
this.label4.TabIndex = 6;
|
||||||
@@ -98,7 +100,7 @@ namespace ClientsLibrary
|
|||||||
// label5
|
// label5
|
||||||
//
|
//
|
||||||
this.label5.AutoSize = true;
|
this.label5.AutoSize = true;
|
||||||
this.label5.Location = new System.Drawing.Point(21, 161);
|
this.label5.Location = new System.Drawing.Point(21, 193);
|
||||||
this.label5.Name = "label5";
|
this.label5.Name = "label5";
|
||||||
this.label5.Size = new System.Drawing.Size(68, 17);
|
this.label5.Size = new System.Drawing.Size(68, 17);
|
||||||
this.label5.TabIndex = 8;
|
this.label5.TabIndex = 8;
|
||||||
@@ -106,15 +108,15 @@ namespace ClientsLibrary
|
|||||||
//
|
//
|
||||||
// textBox4
|
// textBox4
|
||||||
//
|
//
|
||||||
this.textBox4.Location = new System.Drawing.Point(98, 192);
|
this.textBox4.Location = new System.Drawing.Point(129, 224);
|
||||||
this.textBox4.Name = "textBox4";
|
this.textBox4.Name = "textBox4";
|
||||||
this.textBox4.Size = new System.Drawing.Size(232, 23);
|
this.textBox4.Size = new System.Drawing.Size(201, 23);
|
||||||
this.textBox4.TabIndex = 11;
|
this.textBox4.TabIndex = 11;
|
||||||
//
|
//
|
||||||
// label6
|
// label6
|
||||||
//
|
//
|
||||||
this.label6.AutoSize = true;
|
this.label6.AutoSize = true;
|
||||||
this.label6.Location = new System.Drawing.Point(21, 195);
|
this.label6.Location = new System.Drawing.Point(21, 227);
|
||||||
this.label6.Name = "label6";
|
this.label6.Name = "label6";
|
||||||
this.label6.Size = new System.Drawing.Size(68, 17);
|
this.label6.Size = new System.Drawing.Size(68, 17);
|
||||||
this.label6.TabIndex = 10;
|
this.label6.TabIndex = 10;
|
||||||
@@ -126,7 +128,7 @@ namespace ClientsLibrary
|
|||||||
this.userButton_login.CustomerInformation = "";
|
this.userButton_login.CustomerInformation = "";
|
||||||
this.userButton_login.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
this.userButton_login.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||||
this.userButton_login.Font = new System.Drawing.Font("微软雅黑", 9F);
|
this.userButton_login.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||||
this.userButton_login.Location = new System.Drawing.Point(149, 279);
|
this.userButton_login.Location = new System.Drawing.Point(129, 284);
|
||||||
this.userButton_login.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5);
|
this.userButton_login.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5);
|
||||||
this.userButton_login.Name = "userButton_login";
|
this.userButton_login.Name = "userButton_login";
|
||||||
this.userButton_login.Size = new System.Drawing.Size(97, 31);
|
this.userButton_login.Size = new System.Drawing.Size(97, 31);
|
||||||
@@ -138,34 +140,52 @@ namespace ClientsLibrary
|
|||||||
//
|
//
|
||||||
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
this.comboBox1.FormattingEnabled = true;
|
this.comboBox1.FormattingEnabled = true;
|
||||||
this.comboBox1.Location = new System.Drawing.Point(98, 122);
|
this.comboBox1.Location = new System.Drawing.Point(129, 154);
|
||||||
this.comboBox1.Name = "comboBox1";
|
this.comboBox1.Name = "comboBox1";
|
||||||
this.comboBox1.Size = new System.Drawing.Size(232, 25);
|
this.comboBox1.Size = new System.Drawing.Size(201, 25);
|
||||||
this.comboBox1.TabIndex = 13;
|
this.comboBox1.TabIndex = 13;
|
||||||
//
|
//
|
||||||
// comboBox2
|
// comboBox2
|
||||||
//
|
//
|
||||||
this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
this.comboBox2.FormattingEnabled = true;
|
this.comboBox2.FormattingEnabled = true;
|
||||||
this.comboBox2.Location = new System.Drawing.Point(98, 157);
|
this.comboBox2.Location = new System.Drawing.Point(129, 189);
|
||||||
this.comboBox2.Name = "comboBox2";
|
this.comboBox2.Name = "comboBox2";
|
||||||
this.comboBox2.Size = new System.Drawing.Size(232, 25);
|
this.comboBox2.Size = new System.Drawing.Size(201, 25);
|
||||||
this.comboBox2.TabIndex = 14;
|
this.comboBox2.TabIndex = 14;
|
||||||
//
|
//
|
||||||
// comboBox_factory
|
// comboBox_factory
|
||||||
//
|
//
|
||||||
this.comboBox_factory.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
this.comboBox_factory.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
this.comboBox_factory.FormattingEnabled = true;
|
this.comboBox_factory.FormattingEnabled = true;
|
||||||
this.comboBox_factory.Location = new System.Drawing.Point(98, 86);
|
this.comboBox_factory.Location = new System.Drawing.Point(129, 118);
|
||||||
this.comboBox_factory.Name = "comboBox_factory";
|
this.comboBox_factory.Name = "comboBox_factory";
|
||||||
this.comboBox_factory.Size = new System.Drawing.Size(232, 25);
|
this.comboBox_factory.Size = new System.Drawing.Size(201, 25);
|
||||||
this.comboBox_factory.TabIndex = 15;
|
this.comboBox_factory.TabIndex = 15;
|
||||||
//
|
//
|
||||||
|
// textBox3
|
||||||
|
//
|
||||||
|
this.textBox3.Location = new System.Drawing.Point(129, 48);
|
||||||
|
this.textBox3.Name = "textBox3";
|
||||||
|
this.textBox3.Size = new System.Drawing.Size(201, 23);
|
||||||
|
this.textBox3.TabIndex = 17;
|
||||||
|
//
|
||||||
|
// label7
|
||||||
|
//
|
||||||
|
this.label7.AutoSize = true;
|
||||||
|
this.label7.Location = new System.Drawing.Point(21, 51);
|
||||||
|
this.label7.Name = "label7";
|
||||||
|
this.label7.Size = new System.Drawing.Size(44, 17);
|
||||||
|
this.label7.TabIndex = 16;
|
||||||
|
this.label7.Text = "别名:";
|
||||||
|
//
|
||||||
// FormRegisterAccount
|
// FormRegisterAccount
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(382, 342);
|
this.ClientSize = new System.Drawing.Size(382, 342);
|
||||||
|
this.Controls.Add(this.textBox3);
|
||||||
|
this.Controls.Add(this.label7);
|
||||||
this.Controls.Add(this.comboBox_factory);
|
this.Controls.Add(this.comboBox_factory);
|
||||||
this.Controls.Add(this.comboBox2);
|
this.Controls.Add(this.comboBox2);
|
||||||
this.Controls.Add(this.comboBox1);
|
this.Controls.Add(this.comboBox1);
|
||||||
@@ -207,5 +227,7 @@ namespace ClientsLibrary
|
|||||||
private System.Windows.Forms.ComboBox comboBox1;
|
private System.Windows.Forms.ComboBox comboBox1;
|
||||||
private System.Windows.Forms.ComboBox comboBox2;
|
private System.Windows.Forms.ComboBox comboBox2;
|
||||||
private System.Windows.Forms.ComboBox comboBox_factory;
|
private System.Windows.Forms.ComboBox comboBox_factory;
|
||||||
|
private System.Windows.Forms.TextBox textBox3;
|
||||||
|
private System.Windows.Forms.Label label7;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -49,8 +49,32 @@ namespace ClientsLibrary
|
|||||||
comboBox_factory.DataSource = Factories.ToArray();
|
comboBox_factory.DataSource = Factories.ToArray();
|
||||||
|
|
||||||
textBox4.Text = (new UserAccount()).ForbidMessage;
|
textBox4.Text = (new UserAccount()).ForbidMessage;
|
||||||
|
|
||||||
|
UILocalization();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Localization Support
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 本地化显示的操作,还未完成
|
||||||
|
/// </summary>
|
||||||
|
private void UILocalization()
|
||||||
|
{
|
||||||
|
Text = UserLocalization.Localization.AccountRegisterTitle;
|
||||||
|
|
||||||
|
label1.Text = UserLocalization.Localization.AccountName + ":";
|
||||||
|
label7.Text = UserLocalization.Localization.AccountAlias + ":";
|
||||||
|
label2.Text = UserLocalization.Localization.AccountPassword + ":";
|
||||||
|
label3.Text = UserLocalization.Localization.AccountFactory + ":";
|
||||||
|
label4.Text = UserLocalization.Localization.AccountGrade + ":";
|
||||||
|
label5.Text = UserLocalization.Localization.AccountLoginEnable + ":";
|
||||||
|
label6.Text = UserLocalization.Localization.AccountForbidMessage + ":";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Register Account
|
#region Register Account
|
||||||
@@ -61,6 +85,7 @@ namespace ClientsLibrary
|
|||||||
// 点击了注册,先获取数据
|
// 点击了注册,先获取数据
|
||||||
UserAccount account = new UserAccount();
|
UserAccount account = new UserAccount();
|
||||||
account.UserName = textBox1.Text;
|
account.UserName = textBox1.Text;
|
||||||
|
account.NameAlias = textBox3.Text;
|
||||||
account.Password = textBox2.Text;
|
account.Password = textBox2.Text;
|
||||||
account.Factory = comboBox_factory.SelectedItem.ToString();
|
account.Factory = comboBox_factory.SelectedItem.ToString();
|
||||||
switch (comboBox1.SelectedIndex)
|
switch (comboBox1.SelectedIndex)
|
||||||
|
|||||||
@@ -62,6 +62,12 @@
|
|||||||
<Compile Include="AccountSupport\FormAccountSelect.Designer.cs">
|
<Compile Include="AccountSupport\FormAccountSelect.Designer.cs">
|
||||||
<DependentUpon>FormAccountSelect.cs</DependentUpon>
|
<DependentUpon>FormAccountSelect.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="AccountSupport\FormInputNewRole.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="AccountSupport\FormInputNewRole.Designer.cs">
|
||||||
|
<DependentUpon>FormInputNewRole.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="BasicSupport\FormDownloading.cs">
|
<Compile Include="BasicSupport\FormDownloading.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -169,6 +175,9 @@
|
|||||||
<EmbeddedResource Include="AccountSupport\FormAccountSelect.resx">
|
<EmbeddedResource Include="AccountSupport\FormAccountSelect.resx">
|
||||||
<DependentUpon>FormAccountSelect.cs</DependentUpon>
|
<DependentUpon>FormAccountSelect.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="AccountSupport\FormInputNewRole.resx">
|
||||||
|
<DependentUpon>FormInputNewRole.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="BasicSupport\FormDownloading.resx">
|
<EmbeddedResource Include="BasicSupport\FormDownloading.resx">
|
||||||
<DependentUpon>FormDownloading.cs</DependentUpon>
|
<DependentUpon>FormDownloading.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.panel1.Location = new System.Drawing.Point(232, 12);
|
this.panel1.Location = new System.Drawing.Point(232, 12);
|
||||||
this.panel1.Name = "panel1";
|
this.panel1.Name = "panel1";
|
||||||
this.panel1.Size = new System.Drawing.Size(573, 525);
|
this.panel1.Size = new System.Drawing.Size(627, 569);
|
||||||
this.panel1.TabIndex = 1;
|
this.panel1.TabIndex = 1;
|
||||||
//
|
//
|
||||||
// treeView1
|
// treeView1
|
||||||
@@ -55,14 +55,14 @@
|
|||||||
this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
|
this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
|
||||||
treeNode1});
|
treeNode1});
|
||||||
this.treeView1.ShowLines = false;
|
this.treeView1.ShowLines = false;
|
||||||
this.treeView1.Size = new System.Drawing.Size(199, 525);
|
this.treeView1.Size = new System.Drawing.Size(199, 569);
|
||||||
this.treeView1.TabIndex = 2;
|
this.treeView1.TabIndex = 2;
|
||||||
//
|
//
|
||||||
// FormConfiguration
|
// FormConfiguration
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(812, 549);
|
this.ClientSize = new System.Drawing.Size(866, 593);
|
||||||
this.Controls.Add(this.treeView1);
|
this.Controls.Add(this.treeView1);
|
||||||
this.Controls.Add(this.panel1);
|
this.Controls.Add(this.panel1);
|
||||||
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
|||||||
@@ -37,6 +37,11 @@
|
|||||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||||
this.listBox1 = new System.Windows.Forms.ListBox();
|
this.listBox1 = new System.Windows.Forms.ListBox();
|
||||||
this.listBox2 = new System.Windows.Forms.ListBox();
|
this.listBox2 = new System.Windows.Forms.ListBox();
|
||||||
|
this.userButton5 = new HslCommunication.Controls.UserButton();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||||
|
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label4 = new System.Windows.Forms.Label();
|
||||||
this.splitContainer1.Panel1.SuspendLayout();
|
this.splitContainer1.Panel1.SuspendLayout();
|
||||||
this.splitContainer1.Panel2.SuspendLayout();
|
this.splitContainer1.Panel2.SuspendLayout();
|
||||||
this.splitContainer1.SuspendLayout();
|
this.splitContainer1.SuspendLayout();
|
||||||
@@ -82,7 +87,7 @@
|
|||||||
this.userButton3.CustomerInformation = "";
|
this.userButton3.CustomerInformation = "";
|
||||||
this.userButton3.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
this.userButton3.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||||
this.userButton3.Font = new System.Drawing.Font("微软雅黑", 9F);
|
this.userButton3.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||||
this.userButton3.Location = new System.Drawing.Point(5, 392);
|
this.userButton3.Location = new System.Drawing.Point(3, 391);
|
||||||
this.userButton3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
this.userButton3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||||
this.userButton3.Name = "userButton3";
|
this.userButton3.Name = "userButton3";
|
||||||
this.userButton3.Size = new System.Drawing.Size(78, 25);
|
this.userButton3.Size = new System.Drawing.Size(78, 25);
|
||||||
@@ -97,7 +102,7 @@
|
|||||||
this.userButton2.CustomerInformation = "";
|
this.userButton2.CustomerInformation = "";
|
||||||
this.userButton2.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
this.userButton2.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||||
this.userButton2.Font = new System.Drawing.Font("微软雅黑", 9F);
|
this.userButton2.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||||
this.userButton2.Location = new System.Drawing.Point(87, 392);
|
this.userButton2.Location = new System.Drawing.Point(168, 427);
|
||||||
this.userButton2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
this.userButton2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||||
this.userButton2.Name = "userButton2";
|
this.userButton2.Name = "userButton2";
|
||||||
this.userButton2.Size = new System.Drawing.Size(78, 25);
|
this.userButton2.Size = new System.Drawing.Size(78, 25);
|
||||||
@@ -112,7 +117,7 @@
|
|||||||
this.userButton1.CustomerInformation = "";
|
this.userButton1.CustomerInformation = "";
|
||||||
this.userButton1.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
this.userButton1.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||||
this.userButton1.Font = new System.Drawing.Font("微软雅黑", 9F);
|
this.userButton1.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||||
this.userButton1.Location = new System.Drawing.Point(3, 392);
|
this.userButton1.Location = new System.Drawing.Point(0, 427);
|
||||||
this.userButton1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
this.userButton1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||||
this.userButton1.Name = "userButton1";
|
this.userButton1.Name = "userButton1";
|
||||||
this.userButton1.Size = new System.Drawing.Size(78, 25);
|
this.userButton1.Size = new System.Drawing.Size(78, 25);
|
||||||
@@ -130,10 +135,12 @@
|
|||||||
//
|
//
|
||||||
// splitContainer1.Panel1
|
// splitContainer1.Panel1
|
||||||
//
|
//
|
||||||
|
this.splitContainer1.Panel1.Controls.Add(this.textBox2);
|
||||||
|
this.splitContainer1.Panel1.Controls.Add(this.label4);
|
||||||
|
this.splitContainer1.Panel1.Controls.Add(this.textBox1);
|
||||||
|
this.splitContainer1.Panel1.Controls.Add(this.label3);
|
||||||
this.splitContainer1.Panel1.Controls.Add(this.listBox1);
|
this.splitContainer1.Panel1.Controls.Add(this.listBox1);
|
||||||
this.splitContainer1.Panel1.Controls.Add(this.label1);
|
this.splitContainer1.Panel1.Controls.Add(this.label1);
|
||||||
this.splitContainer1.Panel1.Controls.Add(this.userButton1);
|
|
||||||
this.splitContainer1.Panel1.Controls.Add(this.userButton2);
|
|
||||||
//
|
//
|
||||||
// splitContainer1.Panel2
|
// splitContainer1.Panel2
|
||||||
//
|
//
|
||||||
@@ -153,7 +160,7 @@
|
|||||||
this.listBox1.ItemHeight = 17;
|
this.listBox1.ItemHeight = 17;
|
||||||
this.listBox1.Location = new System.Drawing.Point(3, 23);
|
this.listBox1.Location = new System.Drawing.Point(3, 23);
|
||||||
this.listBox1.Name = "listBox1";
|
this.listBox1.Name = "listBox1";
|
||||||
this.listBox1.Size = new System.Drawing.Size(257, 361);
|
this.listBox1.Size = new System.Drawing.Size(257, 327);
|
||||||
this.listBox1.TabIndex = 6;
|
this.listBox1.TabIndex = 6;
|
||||||
this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged);
|
this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged);
|
||||||
//
|
//
|
||||||
@@ -169,12 +176,70 @@
|
|||||||
this.listBox2.Size = new System.Drawing.Size(258, 361);
|
this.listBox2.Size = new System.Drawing.Size(258, 361);
|
||||||
this.listBox2.TabIndex = 7;
|
this.listBox2.TabIndex = 7;
|
||||||
//
|
//
|
||||||
|
// userButton5
|
||||||
|
//
|
||||||
|
this.userButton5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.userButton5.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.userButton5.CustomerInformation = "";
|
||||||
|
this.userButton5.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||||
|
this.userButton5.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||||
|
this.userButton5.Location = new System.Drawing.Point(84, 427);
|
||||||
|
this.userButton5.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||||
|
this.userButton5.Name = "userButton5";
|
||||||
|
this.userButton5.Size = new System.Drawing.Size(78, 25);
|
||||||
|
this.userButton5.TabIndex = 7;
|
||||||
|
this.userButton5.UIText = "编辑";
|
||||||
|
this.userButton5.Click += new System.EventHandler(this.userButton5_Click);
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.Location = new System.Drawing.Point(2, 367);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(44, 17);
|
||||||
|
this.label3.TabIndex = 7;
|
||||||
|
this.label3.Text = "代码:";
|
||||||
|
//
|
||||||
|
// textBox1
|
||||||
|
//
|
||||||
|
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.textBox1.Location = new System.Drawing.Point(62, 364);
|
||||||
|
this.textBox1.Name = "textBox1";
|
||||||
|
this.textBox1.ReadOnly = true;
|
||||||
|
this.textBox1.Size = new System.Drawing.Size(198, 23);
|
||||||
|
this.textBox1.TabIndex = 8;
|
||||||
|
//
|
||||||
|
// textBox2
|
||||||
|
//
|
||||||
|
this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.textBox2.Location = new System.Drawing.Point(62, 396);
|
||||||
|
this.textBox2.Name = "textBox2";
|
||||||
|
this.textBox2.ReadOnly = true;
|
||||||
|
this.textBox2.Size = new System.Drawing.Size(198, 23);
|
||||||
|
this.textBox2.TabIndex = 10;
|
||||||
|
//
|
||||||
|
// label4
|
||||||
|
//
|
||||||
|
this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.label4.AutoSize = true;
|
||||||
|
this.label4.Location = new System.Drawing.Point(2, 399);
|
||||||
|
this.label4.Name = "label4";
|
||||||
|
this.label4.Size = new System.Drawing.Size(44, 17);
|
||||||
|
this.label4.TabIndex = 9;
|
||||||
|
this.label4.Text = "描述:";
|
||||||
|
//
|
||||||
// RolesConfiguration
|
// RolesConfiguration
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.Controls.Add(this.userButton5);
|
||||||
this.Controls.Add(this.splitContainer1);
|
this.Controls.Add(this.splitContainer1);
|
||||||
this.Controls.Add(this.userButton4);
|
this.Controls.Add(this.userButton4);
|
||||||
|
this.Controls.Add(this.userButton1);
|
||||||
|
this.Controls.Add(this.userButton2);
|
||||||
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||||
this.Name = "RolesConfiguration";
|
this.Name = "RolesConfiguration";
|
||||||
@@ -199,5 +264,10 @@
|
|||||||
private System.Windows.Forms.SplitContainer splitContainer1;
|
private System.Windows.Forms.SplitContainer splitContainer1;
|
||||||
private System.Windows.Forms.ListBox listBox1;
|
private System.Windows.Forms.ListBox listBox1;
|
||||||
private System.Windows.Forms.ListBox listBox2;
|
private System.Windows.Forms.ListBox listBox2;
|
||||||
|
private HslCommunication.Controls.UserButton userButton5;
|
||||||
|
private System.Windows.Forms.TextBox textBox2;
|
||||||
|
private System.Windows.Forms.Label label4;
|
||||||
|
private System.Windows.Forms.TextBox textBox1;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ namespace ClientsLibrary.Configuration
|
|||||||
if(listBox1.SelectedItem is RoleItem role)
|
if(listBox1.SelectedItem is RoleItem role)
|
||||||
{
|
{
|
||||||
listBox2.DataSource = role.Accounts;
|
listBox2.DataSource = role.Accounts;
|
||||||
|
textBox1.Text = role.RoleCode;
|
||||||
|
textBox2.Text = role.Description;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,33 +63,74 @@ namespace ClientsLibrary.Configuration
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool CheckRoleWhetherExisting(string role)
|
private bool CheckRoleWhetherExisting(string roleName)
|
||||||
{
|
{
|
||||||
foreach(var m in listBox1.Items)
|
foreach(var m in listBox1.Items)
|
||||||
{
|
{
|
||||||
if(m.ToString() == role)
|
if(m.ToString() == roleName)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
private bool CheckRoleWhetherExisting(RoleItem role, string roleName)
|
||||||
|
{
|
||||||
|
foreach (var m in listBox1.Items)
|
||||||
|
{
|
||||||
|
if (!ReferenceEquals(m, role))
|
||||||
|
{
|
||||||
|
if (m.ToString() == roleName)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
private void userButton1_Click(object sender, EventArgs e)
|
private void userButton1_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
// add a new role
|
using (FormInputNewRole form = new FormInputNewRole())
|
||||||
using (FormGetInputString form = new FormGetInputString("请输入新的角色名称"))
|
|
||||||
{
|
{
|
||||||
|
P1:
|
||||||
if (form.ShowDialog() == DialogResult.OK)
|
if (form.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
string role = form.InputString;
|
RoleItem role = form.RoleItem;
|
||||||
if(!CheckRoleWhetherExisting(role))
|
if (CheckRoleWhetherExisting(role.RoleName))
|
||||||
{
|
{
|
||||||
// add
|
MessageBox.Show("该角色名称已经存在,不允许添加。");
|
||||||
listBox1.Items.Add(new RoleItem()
|
goto P1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// add
|
||||||
|
listBox1.Items.Add(role);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void userButton5_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (listBox1.SelectedItem is RoleItem role)
|
||||||
|
{
|
||||||
|
// edit
|
||||||
|
using (FormInputNewRole form = new FormInputNewRole())
|
||||||
|
{
|
||||||
|
P1:
|
||||||
|
if (form.ShowDialog(role) == DialogResult.OK)
|
||||||
|
{
|
||||||
|
if (CheckRoleWhetherExisting(role, form.RoleName))
|
||||||
{
|
{
|
||||||
RoleName = role
|
MessageBox.Show("该角色名称已经存在,不允许添加。");
|
||||||
});
|
goto P1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// edit
|
||||||
|
role.RoleName = form.RoleName;
|
||||||
|
role.Description = form.RoleDescription;
|
||||||
|
|
||||||
|
textBox1.Text = role.RoleCode;
|
||||||
|
textBox2.Text = role.Description;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -132,5 +175,6 @@ namespace ClientsLibrary.Configuration
|
|||||||
MessageBox.Show("上传数据失败:"+result.Message);
|
MessageBox.Show("上传数据失败:"+result.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace ClientsLibrary
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 本软件的当前版本,用来验证更新的关键依据
|
/// 本软件的当前版本,用来验证更新的关键依据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static SystemVersion CurrentVersion { get; } = new SystemVersion("1.0.0.171006");
|
public static SystemVersion CurrentVersion { get; } = new SystemVersion("1.0.0.171007");
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -18,7 +18,9 @@ namespace CommonLibrary
|
|||||||
**********************************************************************************/
|
**********************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 角色分配的管理器
|
||||||
|
/// </summary>
|
||||||
public class RoleAssign : HslCommunication.BasicFramework.SoftFileSaveBase
|
public class RoleAssign : HslCommunication.BasicFramework.SoftFileSaveBase
|
||||||
{
|
{
|
||||||
#region Constructor
|
#region Constructor
|
||||||
@@ -92,14 +94,49 @@ namespace CommonLibrary
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 单个角色对象
|
||||||
|
/// </summary>
|
||||||
public class RoleItem
|
public class RoleItem
|
||||||
{
|
{
|
||||||
|
#region Public Property
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 角色的唯一代码
|
||||||
|
/// </summary>
|
||||||
|
public string RoleCode { get; set; } = Guid.NewGuid().ToString("N");
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 角色名称
|
||||||
|
/// </summary>
|
||||||
public string RoleName { get; set; }
|
public string RoleName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 角色描述
|
||||||
|
/// </summary>
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 关联的账户列表
|
||||||
|
/// </summary>
|
||||||
public List<string> Accounts { get; set; } = new List<string>();
|
public List<string> Accounts { get; set; } = new List<string>();
|
||||||
|
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Object Override
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 返回对象的字符串标识形式
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return RoleName;
|
return RoleName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ namespace CommonLibrary
|
|||||||
public string ButtonEnsure { get; set; } = "确认";
|
public string ButtonEnsure { get; set; } = "确认";
|
||||||
|
|
||||||
|
|
||||||
|
#region 账户相关
|
||||||
|
|
||||||
|
|
||||||
public string AccountSelect { get; set; } = "选择";
|
public string AccountSelect { get; set; } = "选择";
|
||||||
@@ -19,7 +20,7 @@ namespace CommonLibrary
|
|||||||
public string AccountName { get; set; } = "用户名";
|
public string AccountName { get; set; } = "用户名";
|
||||||
public string AccountAlias { get; set; } = "别名";
|
public string AccountAlias { get; set; } = "别名";
|
||||||
public string AccountPassword { get; set; } = "密码";
|
public string AccountPassword { get; set; } = "密码";
|
||||||
public string AccountFactory { get; set; } = "部门"; // 可以在此处修改为部门
|
public string AccountFactory { get; set; } = "分厂"; // 可以在此处修改为部门
|
||||||
public string AccountGrade { get; set; } = "权限";
|
public string AccountGrade { get; set; } = "权限";
|
||||||
public string AccountRegisterTime { get; set; } = "注册时间";
|
public string AccountRegisterTime { get; set; } = "注册时间";
|
||||||
public string AccountLoginEnable { get; set; } = "是否允许登录";
|
public string AccountLoginEnable { get; set; } = "是否允许登录";
|
||||||
@@ -31,6 +32,9 @@ namespace CommonLibrary
|
|||||||
public string AccountLastLoginWay { get; set; } = "上次登录方式";
|
public string AccountLastLoginWay { get; set; } = "上次登录方式";
|
||||||
public string AccountPortrait { get; set; } = "头像";
|
public string AccountPortrait { get; set; } = "头像";
|
||||||
public string AccountDetails { get; set; } = "账户详细信息";
|
public string AccountDetails { get; set; } = "账户详细信息";
|
||||||
|
public string AccountRegisterTitle { get; set; } = "注册一个新的账户";
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region 配置相关
|
#region 配置相关
|
||||||
@@ -41,6 +45,8 @@ namespace CommonLibrary
|
|||||||
public string SettingsAccountFactory { get { return "配置" + AccountFactory + "信息"; } set { } }
|
public string SettingsAccountFactory { get { return "配置" + AccountFactory + "信息"; } set { } }
|
||||||
public string SettingsTrustClient { get; set; } = "信任客户端列表";
|
public string SettingsTrustClient { get; set; } = "信任客户端列表";
|
||||||
public string SettingsRoleAssign { get; set; } = "配置角色信息";
|
public string SettingsRoleAssign { get; set; } = "配置角色信息";
|
||||||
|
public string SettingsRoleAddTitle { get; set; } = "新增角色信息";
|
||||||
|
public string SettingsRoleEditTitle { get; set; } = "编辑当前角色信息";
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ namespace CommonLibrary
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#region 账户相关
|
||||||
|
|
||||||
|
|
||||||
public string AccountSelect { get; set; } = "Select";
|
public string AccountSelect { get; set; } = "Select";
|
||||||
|
|
||||||
@@ -30,6 +32,10 @@ namespace CommonLibrary
|
|||||||
public string AccountLastLoginWay { get; set; } = "Login Last Way";
|
public string AccountLastLoginWay { get; set; } = "Login Last Way";
|
||||||
public string AccountPortrait { get; set; } = "Portrait";
|
public string AccountPortrait { get; set; } = "Portrait";
|
||||||
public string AccountDetails { get; set; } = "Account Details";
|
public string AccountDetails { get; set; } = "Account Details";
|
||||||
|
public string AccountRegisterTitle { get; set; } = "Register a new account";
|
||||||
|
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region 配置相关
|
#region 配置相关
|
||||||
@@ -40,6 +46,9 @@ namespace CommonLibrary
|
|||||||
public string SettingsAccountFactory { get { return AccountFactory + " List"; } set { } }
|
public string SettingsAccountFactory { get { return AccountFactory + " List"; } set { } }
|
||||||
public string SettingsTrustClient { get; set; } = "Trust Client";
|
public string SettingsTrustClient { get; set; } = "Trust Client";
|
||||||
public string SettingsRoleAssign { get; set; } = "Role Assign";
|
public string SettingsRoleAssign { get; set; } = "Role Assign";
|
||||||
|
public string SettingsRoleAddTitle { get; set; } = "Role Add New";
|
||||||
|
public string SettingsRoleEditTitle { get; set; } = "Role Edit";
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ namespace CommonLibrary
|
|||||||
string AccountLastLoginWay { get; set; }
|
string AccountLastLoginWay { get; set; }
|
||||||
string AccountPortrait { get; set; }
|
string AccountPortrait { get; set; }
|
||||||
string AccountDetails { get; set; }
|
string AccountDetails { get; set; }
|
||||||
|
string AccountRegisterTitle { get; set; }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@@ -80,6 +80,8 @@ namespace CommonLibrary
|
|||||||
string SettingsAccountFactory { get; set; }
|
string SettingsAccountFactory { get; set; }
|
||||||
string SettingsTrustClient { get; set; }
|
string SettingsTrustClient { get; set; }
|
||||||
string SettingsRoleAssign { get; set; }
|
string SettingsRoleAssign { get; set; }
|
||||||
|
string SettingsRoleAddTitle { get; set; }
|
||||||
|
string SettingsRoleEditTitle { get; set; }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ namespace CommonLibrary
|
|||||||
*
|
*
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
SoftBasic.FrameworkVersion = new SystemVersion("1.6.1");
|
SoftBasic.FrameworkVersion = new SystemVersion("1.6.2");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -495,7 +495,10 @@ namespace 软件系统客户端模版
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private UIControls.OnlineChatRender UIControls_Chat { get; set; }
|
private UIControls.OnlineChatRender UIControls_Chat { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 主界面
|
||||||
|
/// </summary>
|
||||||
|
private UIControls.RenderMain UIControls_Main { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -541,6 +544,15 @@ namespace 软件系统客户端模版
|
|||||||
Dock = DockStyle.Fill,
|
Dock = DockStyle.Fill,
|
||||||
};
|
};
|
||||||
all_main_render.Add(UIControls_Chat);
|
all_main_render.Add(UIControls_Chat);
|
||||||
|
|
||||||
|
UIControls_Main = new UIControls.RenderMain()
|
||||||
|
{
|
||||||
|
Visible = true,
|
||||||
|
Parent = panel_main,//决定了放在哪个界面显示,此处示例
|
||||||
|
Dock = DockStyle.Fill,
|
||||||
|
};
|
||||||
|
all_main_render.Add(UIControls_Main);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetShowRenderControl(UserControl control)
|
private void SetShowRenderControl(UserControl control)
|
||||||
|
|||||||
96
软件系统客户端模版/UIControls/RenderMain.Designer.cs
generated
Normal file
96
软件系统客户端模版/UIControls/RenderMain.Designer.cs
generated
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
namespace 软件系统客户端模版.UIControls
|
||||||
|
{
|
||||||
|
partial class RenderMain
|
||||||
|
{
|
||||||
|
/// <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.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
|
||||||
|
this.linkLabel2 = new System.Windows.Forms.LinkLabel();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.label1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||||
|
this.label1.Font = new System.Drawing.Font("微软雅黑", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label1.Location = new System.Drawing.Point(3, 178);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(850, 119);
|
||||||
|
this.label1.TabIndex = 0;
|
||||||
|
this.label1.Text = "Welcome C-S Project";
|
||||||
|
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
this.label1.Click += new System.EventHandler(this.label1_Click);
|
||||||
|
//
|
||||||
|
// linkLabel1
|
||||||
|
//
|
||||||
|
this.linkLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.linkLabel1.AutoSize = true;
|
||||||
|
this.linkLabel1.Location = new System.Drawing.Point(767, 0);
|
||||||
|
this.linkLabel1.Name = "linkLabel1";
|
||||||
|
this.linkLabel1.Size = new System.Drawing.Size(32, 17);
|
||||||
|
this.linkLabel1.TabIndex = 1;
|
||||||
|
this.linkLabel1.TabStop = true;
|
||||||
|
this.linkLabel1.Text = "中文";
|
||||||
|
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
|
||||||
|
//
|
||||||
|
// linkLabel2
|
||||||
|
//
|
||||||
|
this.linkLabel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.linkLabel2.AutoSize = true;
|
||||||
|
this.linkLabel2.Location = new System.Drawing.Point(805, 0);
|
||||||
|
this.linkLabel2.Name = "linkLabel2";
|
||||||
|
this.linkLabel2.Size = new System.Drawing.Size(49, 17);
|
||||||
|
this.linkLabel2.TabIndex = 2;
|
||||||
|
this.linkLabel2.TabStop = true;
|
||||||
|
this.linkLabel2.Text = "English";
|
||||||
|
this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked);
|
||||||
|
//
|
||||||
|
// RenderMain
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.Controls.Add(this.linkLabel2);
|
||||||
|
this.Controls.Add(this.linkLabel1);
|
||||||
|
this.Controls.Add(this.label1);
|
||||||
|
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||||
|
this.Name = "RenderMain";
|
||||||
|
this.Size = new System.Drawing.Size(856, 553);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.LinkLabel linkLabel1;
|
||||||
|
private System.Windows.Forms.LinkLabel linkLabel2;
|
||||||
|
}
|
||||||
|
}
|
||||||
36
软件系统客户端模版/UIControls/RenderMain.cs
Normal file
36
软件系统客户端模版/UIControls/RenderMain.cs
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
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 软件系统客户端模版.UIControls
|
||||||
|
{
|
||||||
|
public partial class RenderMain : UserControl
|
||||||
|
{
|
||||||
|
public RenderMain()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void label1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||||
|
{
|
||||||
|
// 中文
|
||||||
|
CommonLibrary.UserLocalization.SettingLocalization("Chinese");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||||
|
{
|
||||||
|
// 英文
|
||||||
|
CommonLibrary.UserLocalization.SettingLocalization("English");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
120
软件系统客户端模版/UIControls/RenderMain.resx
Normal file
120
软件系统客户端模版/UIControls/RenderMain.resx
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
@@ -77,6 +77,12 @@
|
|||||||
<Compile Include="UIControls\OnlineChatRender.Designer.cs">
|
<Compile Include="UIControls\OnlineChatRender.Designer.cs">
|
||||||
<DependentUpon>OnlineChatRender.cs</DependentUpon>
|
<DependentUpon>OnlineChatRender.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="UIControls\RenderMain.cs">
|
||||||
|
<SubType>UserControl</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="UIControls\RenderMain.Designer.cs">
|
||||||
|
<DependentUpon>RenderMain.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="UIControls\ShareFilesRender.cs">
|
<Compile Include="UIControls\ShareFilesRender.cs">
|
||||||
<SubType>UserControl</SubType>
|
<SubType>UserControl</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -102,6 +108,9 @@
|
|||||||
<EmbeddedResource Include="UIControls\OnlineChatRender.resx">
|
<EmbeddedResource Include="UIControls\OnlineChatRender.resx">
|
||||||
<DependentUpon>OnlineChatRender.cs</DependentUpon>
|
<DependentUpon>OnlineChatRender.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="UIControls\RenderMain.resx">
|
||||||
|
<DependentUpon>RenderMain.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="UIControls\ShareFilesRender.resx">
|
<EmbeddedResource Include="UIControls\ShareFilesRender.resx">
|
||||||
<DependentUpon>ShareFilesRender.cs</DependentUpon>
|
<DependentUpon>ShareFilesRender.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
|||||||
Reference in New Issue
Block a user