添加项目文件。
This commit is contained in:
122
CopyCode/AdvancedPwdFrm.Designer.cs
generated
Normal file
122
CopyCode/AdvancedPwdFrm.Designer.cs
generated
Normal file
@ -0,0 +1,122 @@
|
||||
|
||||
namespace XKRS.UI.Main
|
||||
{
|
||||
partial class AdvancedPwdFrm
|
||||
{
|
||||
/// <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.btnExitLogin = new System.Windows.Forms.Button();
|
||||
this.txtPwd = new System.Windows.Forms.TextBox();
|
||||
this.btnCancel = new System.Windows.Forms.Button();
|
||||
this.btnOK = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Bold);
|
||||
this.label1.Location = new System.Drawing.Point(32, 32);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(52, 14);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "密码:";
|
||||
//
|
||||
// btnExitLogin
|
||||
//
|
||||
this.btnExitLogin.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.btnExitLogin.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold);
|
||||
this.btnExitLogin.Location = new System.Drawing.Point(12, 63);
|
||||
this.btnExitLogin.Name = "btnExitLogin";
|
||||
this.btnExitLogin.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnExitLogin.TabIndex = 2;
|
||||
this.btnExitLogin.Text = "退出登录";
|
||||
this.btnExitLogin.UseVisualStyleBackColor = true;
|
||||
this.btnExitLogin.Click += new System.EventHandler(this.btnExitLogin_Click);
|
||||
//
|
||||
// txtPwd
|
||||
//
|
||||
this.txtPwd.Font = new System.Drawing.Font("宋体", 10F);
|
||||
this.txtPwd.Location = new System.Drawing.Point(126, 28);
|
||||
this.txtPwd.Name = "txtPwd";
|
||||
this.txtPwd.PasswordChar = '*';
|
||||
this.txtPwd.Size = new System.Drawing.Size(236, 23);
|
||||
this.txtPwd.TabIndex = 0;
|
||||
this.txtPwd.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtPwd_KeyDown);
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.btnCancel.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold);
|
||||
this.btnCancel.Location = new System.Drawing.Point(208, 63);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnCancel.TabIndex = 2;
|
||||
this.btnCancel.Text = "Cancel";
|
||||
this.btnCancel.UseVisualStyleBackColor = true;
|
||||
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
||||
//
|
||||
// btnOK
|
||||
//
|
||||
this.btnOK.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold);
|
||||
this.btnOK.Location = new System.Drawing.Point(289, 63);
|
||||
this.btnOK.Name = "btnOK";
|
||||
this.btnOK.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnOK.TabIndex = 2;
|
||||
this.btnOK.Text = "OK";
|
||||
this.btnOK.UseVisualStyleBackColor = true;
|
||||
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
|
||||
//
|
||||
// AdvancedPwdFrm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(388, 98);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.btnOK);
|
||||
this.Controls.Add(this.btnCancel);
|
||||
this.Controls.Add(this.txtPwd);
|
||||
this.Controls.Add(this.btnExitLogin);
|
||||
this.Controls.Add(this.label1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Name = "AdvancedPwdFrm";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "用户验证";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Button btnExitLogin;
|
||||
private System.Windows.Forms.TextBox txtPwd;
|
||||
private System.Windows.Forms.Button btnCancel;
|
||||
private System.Windows.Forms.Button btnOK;
|
||||
}
|
||||
}
|
86
CopyCode/AdvancedPwdFrm.cs
Normal file
86
CopyCode/AdvancedPwdFrm.cs
Normal file
@ -0,0 +1,86 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace XKRS.UI.Main
|
||||
{
|
||||
public partial class AdvancedPwdFrm : Form
|
||||
{
|
||||
public static Action<bool> OnLoginOK { get; set; }//内置泛型委托,以参数形式传递方法
|
||||
string pwd = "";//定义一个字符串字段存储密码
|
||||
string PWD//属性
|
||||
{
|
||||
get
|
||||
{
|
||||
if (string.IsNullOrEmpty(pwd))
|
||||
{
|
||||
var pwdSetting = ConfigurationManager.AppSettings["Pwd"];//获取当前默认的数据
|
||||
if (!string.IsNullOrEmpty(pwdSetting))//如果输入非空且不是null
|
||||
{
|
||||
pwd = pwdSetting.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
pwd = "p@ssw0rd";
|
||||
}
|
||||
}
|
||||
return pwd;
|
||||
}
|
||||
}
|
||||
public AdvancedPwdFrm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
|
||||
private void btnOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
CheckInputPassword();
|
||||
}
|
||||
private void CheckInputPassword()
|
||||
{
|
||||
string input = txtPwd.Text.Trim();//移出当前字符串前导与结尾空白字符串
|
||||
if (string.IsNullOrWhiteSpace(input))
|
||||
{
|
||||
MessageBox.Show("Please input password");
|
||||
return;
|
||||
}
|
||||
if (input == PWD)
|
||||
{
|
||||
OnLoginOK?.Invoke(true);
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("Wrong Password");
|
||||
DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void txtPwd_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter)
|
||||
{
|
||||
CheckInputPassword();
|
||||
}
|
||||
}
|
||||
|
||||
private void btnExitLogin_Click(object sender, EventArgs e)
|
||||
{
|
||||
OnLoginOK?.Invoke(false);
|
||||
this.DialogResult = DialogResult.Abort;
|
||||
}
|
||||
}
|
||||
}
|
120
CopyCode/AdvancedPwdFrm.resx
Normal file
120
CopyCode/AdvancedPwdFrm.resx
Normal file
@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
6
CopyCode/App.config
Normal file
6
CopyCode/App.config
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
232
CopyCode/MainFrm.Designer.cs
generated
Normal file
232
CopyCode/MainFrm.Designer.cs
generated
Normal file
@ -0,0 +1,232 @@
|
||||
|
||||
namespace XKRS.UI.Main
|
||||
{
|
||||
partial class MainFrm
|
||||
{
|
||||
/// <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 Windows 窗体设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要修改
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainFrm));
|
||||
this.menuMain = new System.Windows.Forms.MenuStrip();
|
||||
this.ststripDevices = new System.Windows.Forms.StatusStrip();
|
||||
this.tsslLoginStatus = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.stsStripLayout = new System.Windows.Forms.StatusStrip();
|
||||
this.tssBtnLayout = new System.Windows.Forms.ToolStripSplitButton();
|
||||
this.保存布局ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.重置布局ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.布局另存为ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.stsStripWarning = new System.Windows.Forms.StatusStrip();
|
||||
this.notifyIcon = new System.Windows.Forms.NotifyIcon(this.components);
|
||||
this.ctmsExit = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.tsmiExitProgram = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.dockPanelMain = new WeifenLuo.WinFormsUI.Docking.DockPanel();
|
||||
this.ststripDevices.SuspendLayout();
|
||||
this.stsStripLayout.SuspendLayout();
|
||||
this.ctmsExit.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// menuMain
|
||||
//
|
||||
this.menuMain.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.menuMain.AutoSize = false;
|
||||
this.menuMain.Dock = System.Windows.Forms.DockStyle.None;
|
||||
this.menuMain.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuMain.Name = "menuMain";
|
||||
this.menuMain.Padding = new System.Windows.Forms.Padding(6, 1, 0, 1);
|
||||
this.menuMain.Size = new System.Drawing.Size(728, 24);
|
||||
this.menuMain.TabIndex = 1;
|
||||
this.menuMain.Text = "menuStrip1";
|
||||
//
|
||||
// ststripDevices
|
||||
//
|
||||
this.ststripDevices.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.ststripDevices.AutoSize = false;
|
||||
this.ststripDevices.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(96)))), ((int)(((byte)(130)))));
|
||||
this.ststripDevices.Dock = System.Windows.Forms.DockStyle.None;
|
||||
this.ststripDevices.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.tsslLoginStatus});
|
||||
this.ststripDevices.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
|
||||
this.ststripDevices.Location = new System.Drawing.Point(0, 333);
|
||||
this.ststripDevices.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
|
||||
this.ststripDevices.Name = "ststripDevices";
|
||||
this.ststripDevices.Size = new System.Drawing.Size(651, 25);
|
||||
this.ststripDevices.SizingGrip = false;
|
||||
this.ststripDevices.TabIndex = 5;
|
||||
this.ststripDevices.Text = "statusStrip1";
|
||||
//
|
||||
// tsslLoginStatus
|
||||
//
|
||||
this.tsslLoginStatus.ForeColor = System.Drawing.SystemColors.Control;
|
||||
this.tsslLoginStatus.Name = "tsslLoginStatus";
|
||||
this.tsslLoginStatus.Size = new System.Drawing.Size(44, 20);
|
||||
this.tsslLoginStatus.Text = "未登录";
|
||||
//
|
||||
// stsStripLayout
|
||||
//
|
||||
this.stsStripLayout.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.stsStripLayout.AutoSize = false;
|
||||
this.stsStripLayout.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(96)))), ((int)(((byte)(130)))));
|
||||
this.stsStripLayout.Dock = System.Windows.Forms.DockStyle.None;
|
||||
this.stsStripLayout.GripMargin = new System.Windows.Forms.Padding(0);
|
||||
this.stsStripLayout.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.tssBtnLayout});
|
||||
this.stsStripLayout.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
|
||||
this.stsStripLayout.Location = new System.Drawing.Point(612, 333);
|
||||
this.stsStripLayout.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
|
||||
this.stsStripLayout.Name = "stsStripLayout";
|
||||
this.stsStripLayout.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
|
||||
this.stsStripLayout.Size = new System.Drawing.Size(186, 25);
|
||||
this.stsStripLayout.SizingGrip = false;
|
||||
this.stsStripLayout.TabIndex = 8;
|
||||
this.stsStripLayout.Text = "statusStrip1";
|
||||
//
|
||||
// tssBtnLayout
|
||||
//
|
||||
this.tssBtnLayout.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
|
||||
this.tssBtnLayout.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.保存布局ToolStripMenuItem,
|
||||
this.重置布局ToolStripMenuItem,
|
||||
this.布局另存为ToolStripMenuItem});
|
||||
this.tssBtnLayout.ForeColor = System.Drawing.SystemColors.Control;
|
||||
this.tssBtnLayout.Image = ((System.Drawing.Image)(resources.GetObject("tssBtnLayout.Image")));
|
||||
this.tssBtnLayout.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.tssBtnLayout.Name = "tssBtnLayout";
|
||||
this.tssBtnLayout.Size = new System.Drawing.Size(72, 23);
|
||||
this.tssBtnLayout.Text = "布局配置";
|
||||
this.tssBtnLayout.TextImageRelation = System.Windows.Forms.TextImageRelation.TextBeforeImage;
|
||||
//
|
||||
// 保存布局ToolStripMenuItem
|
||||
//
|
||||
this.保存布局ToolStripMenuItem.Name = "保存布局ToolStripMenuItem";
|
||||
this.保存布局ToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
|
||||
this.保存布局ToolStripMenuItem.Text = "保存布局";
|
||||
//
|
||||
// 重置布局ToolStripMenuItem
|
||||
//
|
||||
this.重置布局ToolStripMenuItem.Name = "重置布局ToolStripMenuItem";
|
||||
this.重置布局ToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
|
||||
this.重置布局ToolStripMenuItem.Text = "重置布局";
|
||||
//
|
||||
// 布局另存为ToolStripMenuItem
|
||||
//
|
||||
this.布局另存为ToolStripMenuItem.Name = "布局另存为ToolStripMenuItem";
|
||||
this.布局另存为ToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
|
||||
this.布局另存为ToolStripMenuItem.Text = "布局另存为";
|
||||
//
|
||||
// stsStripWarning
|
||||
//
|
||||
this.stsStripWarning.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.stsStripWarning.Dock = System.Windows.Forms.DockStyle.None;
|
||||
this.stsStripWarning.Location = new System.Drawing.Point(596, 0);
|
||||
this.stsStripWarning.MinimumSize = new System.Drawing.Size(100, 24);
|
||||
this.stsStripWarning.Name = "stsStripWarning";
|
||||
this.stsStripWarning.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
|
||||
this.stsStripWarning.Size = new System.Drawing.Size(202, 24);
|
||||
this.stsStripWarning.SizingGrip = false;
|
||||
this.stsStripWarning.TabIndex = 11;
|
||||
this.stsStripWarning.Text = "statusStrip1";
|
||||
//
|
||||
// notifyIcon
|
||||
//
|
||||
this.notifyIcon.BalloonTipTitle = "asdasd";
|
||||
this.notifyIcon.ContextMenuStrip = this.ctmsExit;
|
||||
this.notifyIcon.Text = "notifyIcon1";
|
||||
//
|
||||
// ctmsExit
|
||||
//
|
||||
this.ctmsExit.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.tsmiExitProgram});
|
||||
this.ctmsExit.Name = "ctmsExit";
|
||||
this.ctmsExit.Size = new System.Drawing.Size(125, 26);
|
||||
//
|
||||
// tsmiExitProgram
|
||||
//
|
||||
this.tsmiExitProgram.Name = "tsmiExitProgram";
|
||||
this.tsmiExitProgram.Size = new System.Drawing.Size(124, 22);
|
||||
this.tsmiExitProgram.Text = "退出程序";
|
||||
//
|
||||
// dockPanelMain
|
||||
//
|
||||
this.dockPanelMain.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.dockPanelMain.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World);
|
||||
this.dockPanelMain.Location = new System.Drawing.Point(0, 24);
|
||||
this.dockPanelMain.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.dockPanelMain.Name = "dockPanelMain";
|
||||
this.dockPanelMain.Size = new System.Drawing.Size(800, 310);
|
||||
this.dockPanelMain.TabIndex = 2;
|
||||
//
|
||||
// MainFrm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(798, 358);
|
||||
this.Controls.Add(this.dockPanelMain);
|
||||
this.Controls.Add(this.stsStripWarning);
|
||||
this.Controls.Add(this.stsStripLayout);
|
||||
this.Controls.Add(this.ststripDevices);
|
||||
this.Controls.Add(this.menuMain);
|
||||
this.Font = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World);
|
||||
this.IsMdiContainer = true;
|
||||
this.KeyPreview = true;
|
||||
this.MainMenuStrip = this.menuMain;
|
||||
this.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
||||
this.Name = "MainFrm";
|
||||
this.Text = "MainFrm";
|
||||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
||||
this.Load += new System.EventHandler(this.MainFrm_Load);
|
||||
this.ststripDevices.ResumeLayout(false);
|
||||
this.ststripDevices.PerformLayout();
|
||||
this.stsStripLayout.ResumeLayout(false);
|
||||
this.stsStripLayout.PerformLayout();
|
||||
this.ctmsExit.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.MenuStrip menuMain;
|
||||
private System.Windows.Forms.StatusStrip ststripDevices;
|
||||
private System.Windows.Forms.ToolStripStatusLabel tsslLoginStatus;
|
||||
private System.Windows.Forms.StatusStrip stsStripLayout;
|
||||
private System.Windows.Forms.ToolStripSplitButton tssBtnLayout;
|
||||
private System.Windows.Forms.ToolStripMenuItem 保存布局ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 重置布局ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 布局另存为ToolStripMenuItem;
|
||||
private System.Windows.Forms.StatusStrip stsStripWarning;
|
||||
private System.Windows.Forms.NotifyIcon notifyIcon;
|
||||
private System.Windows.Forms.ContextMenuStrip ctmsExit;
|
||||
private System.Windows.Forms.ToolStripMenuItem tsmiExitProgram;
|
||||
private WeifenLuo.WinFormsUI.Docking.DockPanel dockPanelMain;
|
||||
}
|
||||
}
|
||||
|
260
CopyCode/MainFrm.cs
Normal file
260
CopyCode/MainFrm.cs
Normal file
@ -0,0 +1,260 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using WeifenLuo.WinFormsUI.Docking;
|
||||
using XKRS.Common.Factory;
|
||||
using XKRS.Common.Interface;
|
||||
using XKRS.Common.Model.Helper;
|
||||
using XKRS.UI.Model.Winform;
|
||||
|
||||
namespace XKRS.UI.Main
|
||||
{
|
||||
public partial class MainFrm : Form
|
||||
{
|
||||
IProcess _process = null;
|
||||
System.Diagnostics.Process process = new System.Diagnostics.Process();
|
||||
System.Diagnostics.Process processB = new System.Diagnostics.Process();
|
||||
System.Diagnostics.Process processC = new System.Diagnostics.Process();
|
||||
public MainFrm()
|
||||
{
|
||||
InitializeComponent();
|
||||
System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.RealTime;
|
||||
var theme = new VS2015LightTheme();
|
||||
stsStripLayout.BackColor = ststripDevices.BackColor = Color.FromArgb(64, 64, 64);
|
||||
dockPanelMain.Theme = theme;
|
||||
VisualStudioToolStripExtender extender = new VisualStudioToolStripExtender();
|
||||
extender.SetStyle(menuMain, VisualStudioToolStripExtender.VsVersion.Vs2015, theme);
|
||||
InitialMenu()
|
||||
|
||||
}
|
||||
|
||||
readonly ManualResetEvent _allMenuLoadDoneHandle = new ManualResetEvent(false);
|
||||
|
||||
|
||||
|
||||
|
||||
private void MainFrm_Load(object sender, EventArgs e)
|
||||
{
|
||||
LoadLayoutFromXML(m_deserializeMenuFrm);
|
||||
_allMenuLoadDoneHandle.Set();
|
||||
|
||||
AdvancedPwdFrm.OnLoginOK = OnLoginOK;
|
||||
|
||||
LoadProcess();
|
||||
LoadLayoutFromXML(m_deserializeDeviceRunFrm);
|
||||
LoadProcess(false);
|
||||
Openexe();
|
||||
}
|
||||
|
||||
private void Openexe()
|
||||
{
|
||||
string strPathExe = Environment.CurrentDirectory + "\\BDebug2022110201_5" + "\\NJJ-ZK.exe";
|
||||
process.StartInfo.WorkingDirectory = Environment.CurrentDirectory + "\\BDebug2022110201_5";
|
||||
process.StartInfo.FileName = strPathExe;
|
||||
process.StartInfo.Arguments = null;//-s -t 可以用来关机或重启
|
||||
process.StartInfo.UseShellExecute = false;
|
||||
process.StartInfo.RedirectStandardInput = false;//true
|
||||
process.StartInfo.RedirectStandardOutput = false;
|
||||
process.StartInfo.RedirectStandardError = false;
|
||||
process.StartInfo.CreateNoWindow = false;
|
||||
process.Start();//启动
|
||||
|
||||
string strPathExe2 = Environment.CurrentDirectory + "\\CDebug2022110201_4" + "\\NJJ-ZK.exe";
|
||||
processB.StartInfo.WorkingDirectory = Environment.CurrentDirectory + "\\CDebug2022110201_4";
|
||||
processB.StartInfo.FileName = strPathExe2;
|
||||
processB.StartInfo.Arguments = null;//-s -t 可以用来关机、开机或重启
|
||||
processB.StartInfo.UseShellExecute = false;
|
||||
processB.StartInfo.RedirectStandardInput = false; //true
|
||||
processB.StartInfo.RedirectStandardOutput = false; //true
|
||||
processB.StartInfo.RedirectStandardError = false;
|
||||
processB.StartInfo.CreateNoWindow = false;
|
||||
processB.Start();//启动
|
||||
|
||||
string strPathExe3 = Environment.CurrentDirectory + "\\ADebug2022110201_2" + "\\NJJ-ZK.exe";
|
||||
processC.StartInfo.WorkingDirectory = Environment.CurrentDirectory + "\\ADebug2022110201_2";
|
||||
processC.StartInfo.FileName = strPathExe3;
|
||||
processC.StartInfo.Arguments = null;//-s -t 可以用来关机、开机或重启
|
||||
processC.StartInfo.UseShellExecute = false;
|
||||
processC.StartInfo.RedirectStandardInput = false; //true
|
||||
processC.StartInfo.RedirectStandardOutput = false; //true
|
||||
processC.StartInfo.RedirectStandardError = false;
|
||||
processC.StartInfo.CreateNoWindow = false;
|
||||
processC.Start();//启动
|
||||
}
|
||||
private void Killexe()
|
||||
{
|
||||
try
|
||||
{
|
||||
process.CloseMainWindow();//通过向进程的主窗口发送关闭消息来关闭拥有用户界面的进程
|
||||
process.Close();//释放与此组件关联的所有资源
|
||||
processB.CloseMainWindow();//通过向进程的主窗口发送关闭消息来关闭拥有用户界面的进程
|
||||
processB.Close();//释放与此组件关联的所有资源
|
||||
processC.CloseMainWindow();//通过向进程的主窗口发送关闭消息来关闭拥有用户界面的进程
|
||||
processC.Close();//释放与此组件关联的所有资源
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private List<string> LoadProcessCode()
|
||||
{
|
||||
var systemProcessCodes = ProcessFactory.GetProcessCodes();
|
||||
var avaiableProcessCodes = SettingHelper.GetProcessCodes();
|
||||
List<string> pCodes = new List<string>();
|
||||
if (avaiableProcessCodes.Count > 0)
|
||||
{
|
||||
pCodes = avaiableProcessCodes.Intersect(systemProcessCodes).ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
pCodes = systemProcessCodes;
|
||||
}
|
||||
if (pCodes.Count > 1)
|
||||
{
|
||||
pCodes.RemoveAll(u => u == "");
|
||||
}
|
||||
return pCodes;
|
||||
}
|
||||
private List<string> LoadProductionCode()
|
||||
{
|
||||
return SettingHelper.GetProductionCodes();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 载入流程
|
||||
/// </summary>
|
||||
/// <param name="isInitialProcess">是否为初始化流程</param>
|
||||
private void LoadProcess(bool isInitialProcess = true)
|
||||
{
|
||||
if(isInitialProcess)//初次创建流程
|
||||
{
|
||||
var processCodes = LoadProcessCode();
|
||||
var productionCodes = LoadProductionCode();
|
||||
_process = ProcessFactory.CreateStationProcess(processCodes[0], productionCodes[0], out string msg);
|
||||
if (!string.IsNullOrWhiteSpace(msg))
|
||||
{
|
||||
_process = null;
|
||||
|
||||
throw new ProcessException($"创建失败,{msg}", null, ExceptionLevel.Fatal);
|
||||
}
|
||||
_process.InitialProcess("");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
#region Login
|
||||
bool isLogin = false;
|
||||
bool IsLogin
|
||||
{
|
||||
get => isLogin;
|
||||
set
|
||||
{
|
||||
isLogin = value;
|
||||
tsslLoginStatus.Text = isLogin ? "已登录" : "未登录";
|
||||
foreach(var dock in dockPanelMain.Contents)
|
||||
{
|
||||
var menuFrm = dock as MenuFrmBase;
|
||||
if (menuFrm != null)
|
||||
{
|
||||
menuFrm.SetLoginStatus(isLogin);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void OnLoginOK(bool isLogin)
|
||||
{
|
||||
IsLogin = isLogin;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region Layout布局
|
||||
|
||||
string _layoutFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, $"{SettingHelper.GetSelectLayout()}.layout");//路径
|
||||
private DeserializeDockContent m_deserializeMenuFrm;
|
||||
private DeserializeDockContent m_deserializeDeviceRunFrm;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private void LoadLayoutFromXML(DeserializeDockContent dContent)
|
||||
{
|
||||
if (!File.Exists(_layoutFile))
|
||||
return;
|
||||
dockPanelMain.SuspendLayout(true);//悬挂式布局
|
||||
|
||||
CloseAllDeviceFrm();
|
||||
while (dockPanelMain.Contents.Count > 0)
|
||||
{
|
||||
dockPanelMain.Contents[0].DockHandler.DockPanel = null;
|
||||
}
|
||||
using (FileStream stream = new FileStream(_layoutFile, FileMode.Open))
|
||||
{
|
||||
dockPanelMain.LoadFromXml(stream, dContent);
|
||||
stream.Close();
|
||||
}
|
||||
dockPanelMain.ResumeLayout(true, true);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region CloseForm
|
||||
private void DeviceDisplayFrm_FormClosed(object sender,FormClosedEventArgs e)
|
||||
{
|
||||
string id = (sender as DeviceRunFrmBase).Device.Id;
|
||||
if(showedDeviceUIDict.ContainsKey(id))
|
||||
{
|
||||
showedDeviceUIDict.Remove(id);
|
||||
}
|
||||
}
|
||||
|
||||
private void CloseAllDeviceFrm()
|
||||
{
|
||||
this.Invoke(new Action(() =>
|
||||
{
|
||||
this.SuspendLayout();
|
||||
dockPanelMain.Contents.Select(u =>
|
||||
{
|
||||
if (u is DeviceRunFrmBase runFrmBase)
|
||||
{
|
||||
return runFrmBase;
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}).ToList().ForEach(u =>
|
||||
{
|
||||
if (u == null)
|
||||
return;
|
||||
if (_process.DeviceCollection.Any(d => d.Id == u.Device.Id))
|
||||
return;
|
||||
u.DockPanel = null;
|
||||
u.Close();
|
||||
});
|
||||
this.ResumeLayout();
|
||||
}));
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Device Display 设备展示到底部状态栏
|
||||
readonly Dictionary<string, DeviceRunFrmBase> showedDeviceUIDict = new Dictionary<string, DeviceRunFrmBase>();
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
}
|
154
CopyCode/MainFrm.resx
Normal file
154
CopyCode/MainFrm.resx
Normal file
@ -0,0 +1,154 @@
|
||||
<?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="menuMain.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="ststripDevices.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>132, 17</value>
|
||||
</metadata>
|
||||
<metadata name="stsStripLayout.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>265, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="tssBtnLayout.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
|
||||
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
|
||||
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
|
||||
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
|
||||
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
|
||||
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
|
||||
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
|
||||
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
|
||||
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
|
||||
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="stsStripWarning.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>400, 17</value>
|
||||
</metadata>
|
||||
<metadata name="notifyIcon.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>546, 17</value>
|
||||
</metadata>
|
||||
<metadata name="ctmsExit.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>657, 17</value>
|
||||
</metadata>
|
||||
</root>
|
22
CopyCode/Program.cs
Normal file
22
CopyCode/Program.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace XKRS.UI.Main
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// 应用程序的主入口点。
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new MainFrm());
|
||||
}
|
||||
}
|
||||
}
|
36
CopyCode/Properties/AssemblyInfo.cs
Normal file
36
CopyCode/Properties/AssemblyInfo.cs
Normal file
@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("框架")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("HP Inc.")]
|
||||
[assembly: AssemblyProduct("XKRS.UI.Main")]
|
||||
[assembly: AssemblyCopyright("Copyright © HP Inc. 2023")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("9e42b387-bb80-4808-b9ab-4ce5f819a675")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
||||
//通过使用 "*",如下所示:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
63
CopyCode/Properties/Resources.Designer.cs
generated
Normal file
63
CopyCode/Properties/Resources.Designer.cs
generated
Normal file
@ -0,0 +1,63 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace XKRS.UI.Main.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 一个强类型的资源类,用于查找本地化的字符串等。
|
||||
/// </summary>
|
||||
// 此类是由 StronglyTypedResourceBuilder
|
||||
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||
// (以 /str 作为命令选项),或重新生成 VS 项目。
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回此类使用的缓存的 ResourceManager 实例。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("XKRS.UI.Main.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重写当前线程的 CurrentUICulture 属性,对
|
||||
/// 使用此强类型资源类的所有资源查找执行重写。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
117
CopyCode/Properties/Resources.resx
Normal file
117
CopyCode/Properties/Resources.resx
Normal file
@ -0,0 +1,117 @@
|
||||
<?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.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: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" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</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" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</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>
|
26
CopyCode/Properties/Settings.Designer.cs
generated
Normal file
26
CopyCode/Properties/Settings.Designer.cs
generated
Normal file
@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace XKRS.UI.Main.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
7
CopyCode/Properties/Settings.settings
Normal file
7
CopyCode/Properties/Settings.settings
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
113
CopyCode/XKRS.UI.Main.csproj
Normal file
113
CopyCode/XKRS.UI.Main.csproj
Normal file
@ -0,0 +1,113 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{9E42B387-BB80-4808-B9AB-4CE5F819A675}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>XKRS.UI.Main</RootNamespace>
|
||||
<AssemblyName>XKRS.UI.Main</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\Release\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="WeifenLuo.WinFormsUI.Docking, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5cded1a1a0a7b481, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\DockPanelSuite.3.1.0\lib\net40\WeifenLuo.WinFormsUI.Docking.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="WeifenLuo.WinFormsUI.Docking.ThemeVS2015, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5cded1a1a0a7b481, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\DockPanelSuite.ThemeVS2015.3.1.0\lib\net40\WeifenLuo.WinFormsUI.Docking.ThemeVS2015.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AdvancedPwdFrm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="AdvancedPwdFrm.Designer.cs">
|
||||
<DependentUpon>AdvancedPwdFrm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="MainFrm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="MainFrm.Designer.cs">
|
||||
<DependentUpon>MainFrm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="AdvancedPwdFrm.resx">
|
||||
<DependentUpon>AdvancedPwdFrm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="MainFrm.resx">
|
||||
<DependentUpon>MainFrm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="packages.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\XKRS.Common.Model\XKRS.Common.Model.csproj">
|
||||
<Project>{46D35E44-A2B1-403C-9E12-93759F91143F}</Project>
|
||||
<Name>XKRS.Common.Model</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\XKRS.UI.Model.Winform\XKRS.UI.Model.Winform.csproj">
|
||||
<Project>{0EABA88A-9DB3-46EA-B810-4F4FA6D2DFEA}</Project>
|
||||
<Name>XKRS.UI.Model.Winform</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
5
CopyCode/packages.config
Normal file
5
CopyCode/packages.config
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="DockPanelSuite" version="3.1.0" targetFramework="net472" />
|
||||
<package id="DockPanelSuite.ThemeVS2015" version="3.1.0" targetFramework="net472" />
|
||||
</packages>
|
Reference in New Issue
Block a user