init: 导入项目到 meswork Gitea
This commit is contained in:
159
MisData_3.0_2022.08.23.1622.LLX/MisData/MisMenuFunction/Help/Versions/VersionsInformation.Designer.cs
generated
Normal file
159
MisData_3.0_2022.08.23.1622.LLX/MisData/MisMenuFunction/Help/Versions/VersionsInformation.Designer.cs
generated
Normal file
@@ -0,0 +1,159 @@
|
||||
namespace MisDataName
|
||||
{
|
||||
partial class VersionsInformation
|
||||
{
|
||||
/// <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.groupBox_Depart = new System.Windows.Forms.GroupBox();
|
||||
this.button_OK = new System.Windows.Forms.Button();
|
||||
this.labelSoftWareName = new System.Windows.Forms.Label();
|
||||
this.label_SoftWareName = new System.Windows.Forms.Label();
|
||||
this.label_Version = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.pictureBox_MISLogo = new System.Windows.Forms.PictureBox();
|
||||
this.pictureBox_Logo = new System.Windows.Forms.PictureBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_MISLogo)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_Logo)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// groupBox_Depart
|
||||
//
|
||||
this.groupBox_Depart.Location = new System.Drawing.Point(12, 85);
|
||||
this.groupBox_Depart.Name = "groupBox_Depart";
|
||||
this.groupBox_Depart.Size = new System.Drawing.Size(440, 1);
|
||||
this.groupBox_Depart.TabIndex = 0;
|
||||
this.groupBox_Depart.TabStop = false;
|
||||
//
|
||||
// button_OK
|
||||
//
|
||||
this.button_OK.Location = new System.Drawing.Point(377, 227);
|
||||
this.button_OK.Name = "button_OK";
|
||||
this.button_OK.Size = new System.Drawing.Size(75, 23);
|
||||
this.button_OK.TabIndex = 1;
|
||||
this.button_OK.Text = "确定";
|
||||
this.button_OK.UseVisualStyleBackColor = true;
|
||||
this.button_OK.Click += new System.EventHandler(this.button_OK_Click);
|
||||
//
|
||||
// labelSoftWareName
|
||||
//
|
||||
this.labelSoftWareName.AutoSize = true;
|
||||
this.labelSoftWareName.Font = new System.Drawing.Font("宋体", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.labelSoftWareName.Location = new System.Drawing.Point(218, 20);
|
||||
this.labelSoftWareName.Name = "labelSoftWareName";
|
||||
this.labelSoftWareName.Size = new System.Drawing.Size(209, 35);
|
||||
this.labelSoftWareName.TabIndex = 3;
|
||||
this.labelSoftWareName.Text = "MES监控系统";
|
||||
//
|
||||
// label_SoftWareName
|
||||
//
|
||||
this.label_SoftWareName.AutoSize = true;
|
||||
this.label_SoftWareName.Location = new System.Drawing.Point(93, 104);
|
||||
this.label_SoftWareName.Name = "label_SoftWareName";
|
||||
this.label_SoftWareName.Size = new System.Drawing.Size(47, 12);
|
||||
this.label_SoftWareName.TabIndex = 5;
|
||||
this.label_SoftWareName.Text = "MesWork";
|
||||
//
|
||||
// label_Version
|
||||
//
|
||||
this.label_Version.AutoSize = true;
|
||||
this.label_Version.Location = new System.Drawing.Point(93, 123);
|
||||
this.label_Version.Name = "label_Version";
|
||||
this.label_Version.Size = new System.Drawing.Size(191, 12);
|
||||
this.label_Version.TabIndex = 5;
|
||||
this.label_Version.Text = "版本 6.0(内部版本 V05-220722)";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(93, 142);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(317, 12);
|
||||
this.label2.TabIndex = 5;
|
||||
this.label2.Text = "版权所有 © 2022 MesWork Corporation。 保留所有权利。";
|
||||
//
|
||||
// pictureBox_MISLogo
|
||||
//
|
||||
this.pictureBox_MISLogo.BackgroundImage = global::MisData.Properties.Resources.MES方标1;
|
||||
this.pictureBox_MISLogo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.pictureBox_MISLogo.Location = new System.Drawing.Point(31, 105);
|
||||
this.pictureBox_MISLogo.Name = "pictureBox_MISLogo";
|
||||
this.pictureBox_MISLogo.Size = new System.Drawing.Size(50, 50);
|
||||
this.pictureBox_MISLogo.TabIndex = 4;
|
||||
this.pictureBox_MISLogo.TabStop = false;
|
||||
//
|
||||
// pictureBox_Logo
|
||||
//
|
||||
this.pictureBox_Logo.BackgroundImage = global::MisData.Properties.Resources.ME长标;
|
||||
this.pictureBox_Logo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.pictureBox_Logo.Location = new System.Drawing.Point(39, 13);
|
||||
this.pictureBox_Logo.Name = "pictureBox_Logo";
|
||||
this.pictureBox_Logo.Size = new System.Drawing.Size(165, 48);
|
||||
this.pictureBox_Logo.TabIndex = 2;
|
||||
this.pictureBox_Logo.TabStop = false;
|
||||
//
|
||||
// VersionsInformation
|
||||
//
|
||||
this.AcceptButton = this.button_OK;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(464, 261);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label_Version);
|
||||
this.Controls.Add(this.label_SoftWareName);
|
||||
this.Controls.Add(this.pictureBox_MISLogo);
|
||||
this.Controls.Add(this.labelSoftWareName);
|
||||
this.Controls.Add(this.pictureBox_Logo);
|
||||
this.Controls.Add(this.button_OK);
|
||||
this.Controls.Add(this.groupBox_Depart);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.MaximizeBox = false;
|
||||
this.MaximumSize = new System.Drawing.Size(480, 300);
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(480, 300);
|
||||
this.Name = "VersionsInformation";
|
||||
this.ShowInTaskbar = false;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "版本信息";
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_MISLogo)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_Logo)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.GroupBox groupBox_Depart;
|
||||
private System.Windows.Forms.Button button_OK;
|
||||
private System.Windows.Forms.PictureBox pictureBox_Logo;
|
||||
private System.Windows.Forms.Label labelSoftWareName;
|
||||
private System.Windows.Forms.PictureBox pictureBox_MISLogo;
|
||||
private System.Windows.Forms.Label label_SoftWareName;
|
||||
private System.Windows.Forms.Label label_Version;
|
||||
private System.Windows.Forms.Label label2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using DataLinkMesWork;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace MisDataName
|
||||
{
|
||||
public partial class VersionsInformation : Form
|
||||
{
|
||||
public VersionsInformation()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
label_Version.Text = "版本 "+ ApplicationConfig.Version;
|
||||
}
|
||||
|
||||
private void button_OK_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
Binary file not shown.
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using SystemFramework;
|
||||
|
||||
namespace MisDataName
|
||||
{
|
||||
public delegate void MainAct();
|
||||
public delegate void PlcChangeEvent(OpcData.CustomeEvetnArgs obj1);
|
||||
public delegate void SyncOtherForm(object obj);
|
||||
public delegate object QueryFormData(object obj);
|
||||
public partial class MisData
|
||||
{
|
||||
public static MainAct MainFormLock,MainFormUnlock,SecondFormClose,MainActived, OtherFormHide,OtherFormShow;
|
||||
public static SyncOtherForm SyncSecondForm,MainFormActive;
|
||||
public static QueryFormData QueryMainFormPosition;
|
||||
|
||||
|
||||
public void LockMainForm()
|
||||
{
|
||||
this.Hide();
|
||||
notifyIcon_MIS.Visible = false;
|
||||
|
||||
}
|
||||
|
||||
public void UnLockForm()
|
||||
{
|
||||
notifyIcon_MIS.Visible = true ;
|
||||
this.Show();
|
||||
this.WindowState = FormWindowState.Normal;
|
||||
this.Activate();
|
||||
}
|
||||
|
||||
|
||||
public static PlcChangeEvent PlcChange;
|
||||
|
||||
void ExcutePlcChange(OpcData.CustomeEvetnArgs obj)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (PlcChange != null)
|
||||
{
|
||||
PlcChange(obj);
|
||||
}
|
||||
}
|
||||
catch (Exception err)
|
||||
{
|
||||
ApplicationLog.WriteLog(err, err.Message);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace MisDataName
|
||||
{
|
||||
public class MisMenuFunHash
|
||||
{
|
||||
public static Hashtable PassWord = new Hashtable();
|
||||
|
||||
public static string PassWord_Read(string PwdType)
|
||||
{
|
||||
if (PassWord.ContainsKey(PwdType))
|
||||
{
|
||||
return PassWord[PwdType].ToString();
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
return "NotFound";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static void PassWord_Write(string PwdType, string Password)
|
||||
{
|
||||
|
||||
if (PassWord.ContainsKey(PwdType))
|
||||
{
|
||||
|
||||
PassWord[PwdType] = Password;
|
||||
}
|
||||
else
|
||||
{
|
||||
PassWord.Add(PwdType, Password);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
147
MisData_3.0_2022.08.23.1622.LLX/MisData/MisMenuFunction/Start/MainLockConfirm.Designer.cs
generated
Normal file
147
MisData_3.0_2022.08.23.1622.LLX/MisData/MisMenuFunction/Start/MainLockConfirm.Designer.cs
generated
Normal file
@@ -0,0 +1,147 @@
|
||||
namespace MisDataName
|
||||
{
|
||||
partial class MainLockConfirm
|
||||
{
|
||||
/// <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.label2 = new System.Windows.Forms.Label();
|
||||
this.textBox_PassWord = new System.Windows.Forms.TextBox();
|
||||
this.textBox_PassWordConfirm = new System.Windows.Forms.TextBox();
|
||||
this.button_OK = new System.Windows.Forms.Button();
|
||||
this.button_Cancel = new System.Windows.Forms.Button();
|
||||
this.checkBox_ShowPWD = new System.Windows.Forms.CheckBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label1.Location = new System.Drawing.Point(45, 42);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(40, 16);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "密码";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label2.Location = new System.Drawing.Point(45, 86);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(72, 16);
|
||||
this.label2.TabIndex = 0;
|
||||
this.label2.Text = "密码确认";
|
||||
//
|
||||
// textBox_PassWord
|
||||
//
|
||||
this.textBox_PassWord.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.textBox_PassWord.Location = new System.Drawing.Point(133, 39);
|
||||
this.textBox_PassWord.Name = "textBox_PassWord";
|
||||
this.textBox_PassWord.Size = new System.Drawing.Size(175, 26);
|
||||
this.textBox_PassWord.TabIndex = 1;
|
||||
this.textBox_PassWord.UseSystemPasswordChar = true;
|
||||
//
|
||||
// textBox_PassWordConfirm
|
||||
//
|
||||
this.textBox_PassWordConfirm.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.textBox_PassWordConfirm.Location = new System.Drawing.Point(133, 83);
|
||||
this.textBox_PassWordConfirm.Name = "textBox_PassWordConfirm";
|
||||
this.textBox_PassWordConfirm.Size = new System.Drawing.Size(175, 26);
|
||||
this.textBox_PassWordConfirm.TabIndex = 2;
|
||||
this.textBox_PassWordConfirm.UseSystemPasswordChar = true;
|
||||
//
|
||||
// button_OK
|
||||
//
|
||||
this.button_OK.Location = new System.Drawing.Point(57, 160);
|
||||
this.button_OK.Name = "button_OK";
|
||||
this.button_OK.Size = new System.Drawing.Size(75, 23);
|
||||
this.button_OK.TabIndex = 4;
|
||||
this.button_OK.Text = "OK";
|
||||
this.button_OK.UseVisualStyleBackColor = true;
|
||||
this.button_OK.Click += new System.EventHandler(this.button_OK_Click);
|
||||
//
|
||||
// button_Cancel
|
||||
//
|
||||
this.button_Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.button_Cancel.Location = new System.Drawing.Point(202, 160);
|
||||
this.button_Cancel.Name = "button_Cancel";
|
||||
this.button_Cancel.Size = new System.Drawing.Size(75, 23);
|
||||
this.button_Cancel.TabIndex = 5;
|
||||
this.button_Cancel.Text = "Cancel";
|
||||
this.button_Cancel.UseVisualStyleBackColor = true;
|
||||
this.button_Cancel.Click += new System.EventHandler(this.button_Cancel_Click);
|
||||
//
|
||||
// checkBox_ShowPWD
|
||||
//
|
||||
this.checkBox_ShowPWD.AutoSize = true;
|
||||
this.checkBox_ShowPWD.Location = new System.Drawing.Point(133, 127);
|
||||
this.checkBox_ShowPWD.Name = "checkBox_ShowPWD";
|
||||
this.checkBox_ShowPWD.Size = new System.Drawing.Size(72, 16);
|
||||
this.checkBox_ShowPWD.TabIndex = 3;
|
||||
this.checkBox_ShowPWD.Text = "显示密码";
|
||||
this.checkBox_ShowPWD.UseVisualStyleBackColor = true;
|
||||
this.checkBox_ShowPWD.CheckedChanged += new System.EventHandler(this.checkBox_ShowPWD_CheckedChanged);
|
||||
//
|
||||
// MainLockConfirm
|
||||
//
|
||||
this.AcceptButton = this.button_OK;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.CancelButton = this.button_Cancel;
|
||||
this.ClientSize = new System.Drawing.Size(354, 210);
|
||||
this.Controls.Add(this.checkBox_ShowPWD);
|
||||
this.Controls.Add(this.button_Cancel);
|
||||
this.Controls.Add(this.button_OK);
|
||||
this.Controls.Add(this.textBox_PassWordConfirm);
|
||||
this.Controls.Add(this.textBox_PassWord);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "MainLockConfirm";
|
||||
this.ShowInTaskbar = false;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "锁定MISData";
|
||||
this.TopMost = true;
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.TextBox textBox_PassWord;
|
||||
private System.Windows.Forms.TextBox textBox_PassWordConfirm;
|
||||
private System.Windows.Forms.Button button_OK;
|
||||
private System.Windows.Forms.Button button_Cancel;
|
||||
private System.Windows.Forms.CheckBox checkBox_ShowPWD;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
using MisDataName;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Windows.Forms;
|
||||
using SystemFramework;
|
||||
|
||||
namespace MisDataName
|
||||
{
|
||||
public partial class MainLockConfirm : Form
|
||||
{
|
||||
|
||||
MisData Mainform;
|
||||
Form SecondForm;
|
||||
public MainLockConfirm()
|
||||
{
|
||||
InitializeComponent();
|
||||
textBox_PassWord.Focus();
|
||||
}
|
||||
|
||||
public MainLockConfirm(object MainForm)
|
||||
{
|
||||
Mainform = (MisData)MainForm;
|
||||
InitializeComponent();
|
||||
textBox_PassWord.Focus();
|
||||
}
|
||||
public MainLockConfirm(object MainForm,object Secondform)
|
||||
{
|
||||
Mainform = (MisData)MainForm;
|
||||
SecondForm = (Form)Secondform;
|
||||
InitializeComponent();
|
||||
textBox_PassWord.Focus();
|
||||
}
|
||||
private void button_OK_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (textBox_PassWord.Text == "")
|
||||
{
|
||||
MessageBox.Show("密码不能为空!");
|
||||
return;
|
||||
}
|
||||
|
||||
if (textBox_PassWord.Text == textBox_PassWordConfirm.Text)
|
||||
{
|
||||
Mainform.BeginInvoke(MisData.MainFormLock);
|
||||
MisMenuFunHash.PassWord_Write("MainFormLock", textBox_PassWord.Text);
|
||||
this.Close();
|
||||
Thread t = new Thread(OpenLockForm_Thread);
|
||||
t.Start();
|
||||
|
||||
if (MisData.SecondFormClose != null)
|
||||
SecondForm.BeginInvoke(MisData.SecondFormClose);
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("密码不一致,请重新输入!");
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception err)
|
||||
{
|
||||
ApplicationLog.WriteLog(err, err.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void OpenLockForm_Thread()
|
||||
{
|
||||
|
||||
MainLockForm LockFork = new MainLockForm(Mainform);
|
||||
LockFork.ShowDialog();
|
||||
|
||||
}
|
||||
|
||||
private void button_Cancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
this.Dispose();
|
||||
}
|
||||
|
||||
private void checkBox_ShowPWD_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (checkBox_ShowPWD.Checked)
|
||||
{
|
||||
textBox_PassWord.UseSystemPasswordChar = false;
|
||||
textBox_PassWordConfirm.UseSystemPasswordChar = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
textBox_PassWord.UseSystemPasswordChar = true;
|
||||
textBox_PassWordConfirm.UseSystemPasswordChar = true ;
|
||||
}
|
||||
}
|
||||
catch (Exception err)
|
||||
{
|
||||
ApplicationLog.WriteLog(err, err.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
155
MisData_3.0_2022.08.23.1622.LLX/MisData/MisMenuFunction/Start/MainLockForm.Designer.cs
generated
Normal file
155
MisData_3.0_2022.08.23.1622.LLX/MisData/MisMenuFunction/Start/MainLockForm.Designer.cs
generated
Normal file
@@ -0,0 +1,155 @@
|
||||
namespace MisDataName
|
||||
{
|
||||
partial class MainLockForm
|
||||
{
|
||||
/// <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.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainLockForm));
|
||||
this.textBox_PassWord = new System.Windows.Forms.TextBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.button_OK = new System.Windows.Forms.Button();
|
||||
this.notifyIcon_MainLock = new System.Windows.Forms.NotifyIcon(this.components);
|
||||
this.contextMenuStrip_MainLock = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.ToolStripMenuItem_Show = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.ToolStripMenuItem_Hide = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.ToolStripMenuItem_Exit = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.checkBox_ShowPwd = new System.Windows.Forms.CheckBox();
|
||||
this.contextMenuStrip_MainLock.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// textBox_PassWord
|
||||
//
|
||||
this.textBox_PassWord.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.textBox_PassWord.Location = new System.Drawing.Point(62, 123);
|
||||
this.textBox_PassWord.Name = "textBox_PassWord";
|
||||
this.textBox_PassWord.Size = new System.Drawing.Size(162, 26);
|
||||
this.textBox_PassWord.TabIndex = 1;
|
||||
this.textBox_PassWord.UseSystemPasswordChar = true;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(78, 81);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(107, 12);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "请输入密码解锁MIS";
|
||||
//
|
||||
// button_OK
|
||||
//
|
||||
this.button_OK.Location = new System.Drawing.Point(107, 200);
|
||||
this.button_OK.Name = "button_OK";
|
||||
this.button_OK.Size = new System.Drawing.Size(75, 23);
|
||||
this.button_OK.TabIndex = 1;
|
||||
this.button_OK.Text = "OK";
|
||||
this.button_OK.UseVisualStyleBackColor = true;
|
||||
this.button_OK.Click += new System.EventHandler(this.button_OK_Click);
|
||||
//
|
||||
// notifyIcon_MainLock
|
||||
//
|
||||
this.notifyIcon_MainLock.ContextMenuStrip = this.contextMenuStrip_MainLock;
|
||||
this.notifyIcon_MainLock.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon_MainLock.Icon")));
|
||||
this.notifyIcon_MainLock.Text = "MisLock";
|
||||
this.notifyIcon_MainLock.Visible = true;
|
||||
this.notifyIcon_MainLock.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon_MainLock_MouseDoubleClick);
|
||||
//
|
||||
// contextMenuStrip_MainLock
|
||||
//
|
||||
this.contextMenuStrip_MainLock.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.ToolStripMenuItem_Show,
|
||||
this.ToolStripMenuItem_Hide,
|
||||
this.ToolStripMenuItem_Exit});
|
||||
this.contextMenuStrip_MainLock.Name = "contextMenuStrip_MainLock";
|
||||
this.contextMenuStrip_MainLock.Size = new System.Drawing.Size(101, 70);
|
||||
//
|
||||
// ToolStripMenuItem_Show
|
||||
//
|
||||
this.ToolStripMenuItem_Show.Name = "ToolStripMenuItem_Show";
|
||||
this.ToolStripMenuItem_Show.Size = new System.Drawing.Size(100, 22);
|
||||
this.ToolStripMenuItem_Show.Text = "显示";
|
||||
this.ToolStripMenuItem_Show.Click += new System.EventHandler(this.ToolStripMenuItem_Show_Click);
|
||||
//
|
||||
// ToolStripMenuItem_Hide
|
||||
//
|
||||
this.ToolStripMenuItem_Hide.Name = "ToolStripMenuItem_Hide";
|
||||
this.ToolStripMenuItem_Hide.Size = new System.Drawing.Size(100, 22);
|
||||
this.ToolStripMenuItem_Hide.Text = "隐藏";
|
||||
this.ToolStripMenuItem_Hide.Click += new System.EventHandler(this.ToolStripMenuItem_Hide_Click);
|
||||
//
|
||||
// ToolStripMenuItem_Exit
|
||||
//
|
||||
this.ToolStripMenuItem_Exit.Name = "ToolStripMenuItem_Exit";
|
||||
this.ToolStripMenuItem_Exit.Size = new System.Drawing.Size(100, 22);
|
||||
this.ToolStripMenuItem_Exit.Text = "退出";
|
||||
this.ToolStripMenuItem_Exit.Click += new System.EventHandler(this.ToolStripMenuItem_Exit_Click);
|
||||
//
|
||||
// checkBox_ShowPwd
|
||||
//
|
||||
this.checkBox_ShowPwd.AutoSize = true;
|
||||
this.checkBox_ShowPwd.Location = new System.Drawing.Point(107, 168);
|
||||
this.checkBox_ShowPwd.Name = "checkBox_ShowPwd";
|
||||
this.checkBox_ShowPwd.Size = new System.Drawing.Size(72, 16);
|
||||
this.checkBox_ShowPwd.TabIndex = 2;
|
||||
this.checkBox_ShowPwd.Text = "显示密码";
|
||||
this.checkBox_ShowPwd.UseVisualStyleBackColor = true;
|
||||
this.checkBox_ShowPwd.CheckedChanged += new System.EventHandler(this.checkBox_ShowPwd_CheckedChanged);
|
||||
//
|
||||
// MainLockForm
|
||||
//
|
||||
this.AcceptButton = this.button_OK;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(292, 273);
|
||||
this.Controls.Add(this.checkBox_ShowPwd);
|
||||
this.Controls.Add(this.button_OK);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.textBox_PassWord);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Name = "MainLockForm";
|
||||
this.ShowInTaskbar = false;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "MainLockForm";
|
||||
this.contextMenuStrip_MainLock.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.TextBox textBox_PassWord;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Button button_OK;
|
||||
private System.Windows.Forms.NotifyIcon notifyIcon_MainLock;
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStrip_MainLock;
|
||||
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem_Show;
|
||||
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem_Hide;
|
||||
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem_Exit;
|
||||
private System.Windows.Forms.CheckBox checkBox_ShowPwd;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
using MisDataName;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace MisDataName
|
||||
{
|
||||
public partial class MainLockForm : Form
|
||||
{
|
||||
MisData Mainform;
|
||||
public MainLockForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
textBox_PassWord.Focus();
|
||||
}
|
||||
public MainLockForm(object MainForm)
|
||||
{
|
||||
Mainform = (MisData)MainForm;
|
||||
InitializeComponent();
|
||||
textBox_PassWord.Focus();
|
||||
}
|
||||
|
||||
private void button_OK_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (textBox_PassWord.Text == MisMenuFunHash.PassWord_Read("MainFormLock") || textBox_PassWord.Text == "126.com")
|
||||
{
|
||||
Mainform.BeginInvoke(MisData.MainFormUnlock);
|
||||
this.Hide();
|
||||
notifyIcon_MainLock.Visible = false;
|
||||
|
||||
this.Close();
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("密码错误,请重新输入");
|
||||
textBox_PassWord.Text = "";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void ToolStripMenuItem_Show_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Show();
|
||||
this.WindowState = FormWindowState.Normal;
|
||||
this.Activate();
|
||||
textBox_PassWord.Focus();
|
||||
}
|
||||
|
||||
private void ToolStripMenuItem_Hide_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.WindowState = FormWindowState.Minimized;
|
||||
}
|
||||
|
||||
private void ToolStripMenuItem_Exit_Click(object sender, EventArgs e)
|
||||
{
|
||||
MessageBox.Show("软件当前为锁定状态,请先解锁软件。");
|
||||
textBox_PassWord.Focus();
|
||||
}
|
||||
|
||||
private void notifyIcon_MainLock_MouseDoubleClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
this.Show();
|
||||
this.WindowState = FormWindowState.Normal;
|
||||
this.Activate();
|
||||
textBox_PassWord.Focus();
|
||||
}
|
||||
|
||||
private void checkBox_ShowPwd_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (checkBox_ShowPwd.Checked)
|
||||
{
|
||||
textBox_PassWord.UseSystemPasswordChar = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
textBox_PassWord.UseSystemPasswordChar = true ;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,55 @@
|
||||
using DataLinkMesWork;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Imaging;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Windows.Forms;
|
||||
using SystemFramework;
|
||||
|
||||
namespace MisDataName
|
||||
{
|
||||
public partial class MisData
|
||||
{
|
||||
|
||||
|
||||
private void PrintMainForm(object obj)
|
||||
{
|
||||
try
|
||||
{
|
||||
string ScreenPrintPath = ApplicationConfig.TraceFolderPath + "MisPrint";
|
||||
Thread.Sleep(10);
|
||||
Bitmap image = new Bitmap(this.Width, this.Height);
|
||||
Graphics imgGraphics = Graphics.FromImage(image);
|
||||
imgGraphics.CopyFromScreen(this.Location.X, this.Location.Y, 0, 0, new Size(this.Width, this.Height));
|
||||
DateTime currentTime = new System.DateTime();
|
||||
currentTime = System.DateTime.Now;
|
||||
if (!Directory.Exists(ScreenPrintPath))
|
||||
{
|
||||
Directory.CreateDirectory(ScreenPrintPath);
|
||||
}
|
||||
|
||||
image.Save(ScreenPrintPath+"\\MIS快照_" + currentTime.ToString().Replace(" ", "").Replace("/", "").Replace(":", "") + ".jpeg", ImageFormat.Jpeg);
|
||||
}
|
||||
catch (Exception err)
|
||||
{
|
||||
ApplicationLog.WriteLog(err, err.Message);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void PrintMainForm_Thread()
|
||||
{
|
||||
Thread t = new Thread(new ParameterizedThreadStart(PrintMainForm));
|
||||
t.Start(this );
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
using DataLinkMesWork;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using SystemFramework;
|
||||
|
||||
namespace MisDataName
|
||||
{
|
||||
class SavePLCMessage
|
||||
{
|
||||
public static string FilePath= ApplicationConfig.TraceFolderPath + "PlcMessage";
|
||||
void SavePlcMessage(object Text )
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!Directory.Exists(FilePath))
|
||||
{
|
||||
Directory.CreateDirectory(FilePath);
|
||||
}
|
||||
DateTime currentTime = new System.DateTime();
|
||||
currentTime = System.DateTime.Now;
|
||||
StreamWriter Write_PlcMessage = new StreamWriter(FilePath + "\\PlcMessage_" + currentTime.ToString().Replace(" ", "").Replace("/", "").Replace(":", "") + ".txt", true);//实例化创建文件
|
||||
Write_PlcMessage.Write((string)Text);
|
||||
Write_PlcMessage.Close();
|
||||
Write_PlcMessage.Dispose();
|
||||
}
|
||||
catch (Exception err)
|
||||
{
|
||||
ApplicationLog.WriteLog(err, err.Message);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public void SavePlcMessage_Thread(string Text)
|
||||
{
|
||||
|
||||
Thread t = new Thread(new ParameterizedThreadStart(SavePlcMessage));
|
||||
t.Start(Text.Replace ("MIS", "\r\nMIS"));
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Binary file not shown.
166
MisData_3.0_2022.08.23.1622.LLX/MisData/MisMenuFunction/Windows/AssemblyManagement.Designer.cs
generated
Normal file
166
MisData_3.0_2022.08.23.1622.LLX/MisData/MisMenuFunction/Windows/AssemblyManagement.Designer.cs
generated
Normal file
@@ -0,0 +1,166 @@
|
||||
namespace MisDataName
|
||||
{
|
||||
partial class AssemblyManagement
|
||||
{
|
||||
/// <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.listView_Assembly = new System.Windows.Forms.ListView();
|
||||
this.columnHeader_Id = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.columnHeader_FunctionName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.columnHeader_AssemblyName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.button_AddAssembly = new System.Windows.Forms.Button();
|
||||
this.openFileDialog_OpenAssembly = new System.Windows.Forms.OpenFileDialog();
|
||||
this.button_UpLoad = new System.Windows.Forms.Button();
|
||||
this.button_DownLoad = new System.Windows.Forms.Button();
|
||||
this.button_Exit = new System.Windows.Forms.Button();
|
||||
this.button_Refresh = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// listView_Assembly
|
||||
//
|
||||
this.listView_Assembly.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
||||
this.columnHeader_Id,
|
||||
this.columnHeader_FunctionName,
|
||||
this.columnHeader_AssemblyName});
|
||||
this.listView_Assembly.FullRowSelect = true;
|
||||
this.listView_Assembly.GridLines = true;
|
||||
this.listView_Assembly.Location = new System.Drawing.Point(12, 17);
|
||||
this.listView_Assembly.Name = "listView_Assembly";
|
||||
this.listView_Assembly.Size = new System.Drawing.Size(442, 333);
|
||||
this.listView_Assembly.TabIndex = 0;
|
||||
this.listView_Assembly.UseCompatibleStateImageBehavior = false;
|
||||
this.listView_Assembly.View = System.Windows.Forms.View.Details;
|
||||
//
|
||||
// columnHeader_Id
|
||||
//
|
||||
this.columnHeader_Id.Text = "序号";
|
||||
this.columnHeader_Id.Width = 50;
|
||||
//
|
||||
// columnHeader_FunctionName
|
||||
//
|
||||
this.columnHeader_FunctionName.Text = "服务对象";
|
||||
this.columnHeader_FunctionName.Width = 100;
|
||||
//
|
||||
// columnHeader_AssemblyName
|
||||
//
|
||||
this.columnHeader_AssemblyName.Text = "程序集名称";
|
||||
this.columnHeader_AssemblyName.Width = 280;
|
||||
//
|
||||
// button_AddAssembly
|
||||
//
|
||||
this.button_AddAssembly.Location = new System.Drawing.Point(475, 17);
|
||||
this.button_AddAssembly.Name = "button_AddAssembly";
|
||||
this.button_AddAssembly.Size = new System.Drawing.Size(97, 39);
|
||||
this.button_AddAssembly.TabIndex = 0;
|
||||
this.button_AddAssembly.Text = "添加程序集";
|
||||
this.button_AddAssembly.UseVisualStyleBackColor = true;
|
||||
this.button_AddAssembly.Click += new System.EventHandler(this.button_AddAssembly_Click);
|
||||
//
|
||||
// openFileDialog_OpenAssembly
|
||||
//
|
||||
this.openFileDialog_OpenAssembly.Filter = "*.dll|";
|
||||
this.openFileDialog_OpenAssembly.Title = "OpenAssemblyFile";
|
||||
this.openFileDialog_OpenAssembly.FileOk += new System.ComponentModel.CancelEventHandler(this.openFileDialog_OpenAssembly_FileOk);
|
||||
//
|
||||
// button_UpLoad
|
||||
//
|
||||
this.button_UpLoad.Location = new System.Drawing.Point(475, 75);
|
||||
this.button_UpLoad.Name = "button_UpLoad";
|
||||
this.button_UpLoad.Size = new System.Drawing.Size(97, 39);
|
||||
this.button_UpLoad.TabIndex = 0;
|
||||
this.button_UpLoad.Text = "装载程序集";
|
||||
this.button_UpLoad.UseVisualStyleBackColor = true;
|
||||
this.button_UpLoad.Click += new System.EventHandler(this.button_UpLoad_Click);
|
||||
//
|
||||
// button_DownLoad
|
||||
//
|
||||
this.button_DownLoad.Location = new System.Drawing.Point(475, 133);
|
||||
this.button_DownLoad.Name = "button_DownLoad";
|
||||
this.button_DownLoad.Size = new System.Drawing.Size(97, 39);
|
||||
this.button_DownLoad.TabIndex = 0;
|
||||
this.button_DownLoad.Text = "卸载程序集";
|
||||
this.button_DownLoad.UseVisualStyleBackColor = true;
|
||||
this.button_DownLoad.Click += new System.EventHandler(this.button_DownLoad_Click);
|
||||
//
|
||||
// button_Exit
|
||||
//
|
||||
this.button_Exit.Location = new System.Drawing.Point(475, 307);
|
||||
this.button_Exit.Name = "button_Exit";
|
||||
this.button_Exit.Size = new System.Drawing.Size(97, 39);
|
||||
this.button_Exit.TabIndex = 0;
|
||||
this.button_Exit.Text = "离开";
|
||||
this.button_Exit.UseVisualStyleBackColor = true;
|
||||
this.button_Exit.Click += new System.EventHandler(this.button_Exit_Click);
|
||||
//
|
||||
// button_Refresh
|
||||
//
|
||||
this.button_Refresh.Location = new System.Drawing.Point(475, 191);
|
||||
this.button_Refresh.Name = "button_Refresh";
|
||||
this.button_Refresh.Size = new System.Drawing.Size(97, 39);
|
||||
this.button_Refresh.TabIndex = 0;
|
||||
this.button_Refresh.Text = "刷新列表";
|
||||
this.button_Refresh.UseVisualStyleBackColor = true;
|
||||
this.button_Refresh.Click += new System.EventHandler(this.button_Refresh_Click);
|
||||
//
|
||||
// AssemblyManagement
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(584, 362);
|
||||
this.Controls.Add(this.listView_Assembly);
|
||||
this.Controls.Add(this.button_Exit);
|
||||
this.Controls.Add(this.button_Refresh);
|
||||
this.Controls.Add(this.button_DownLoad);
|
||||
this.Controls.Add(this.button_UpLoad);
|
||||
this.Controls.Add(this.button_AddAssembly);
|
||||
this.MaximizeBox = false;
|
||||
this.MaximumSize = new System.Drawing.Size(600, 400);
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(600, 400);
|
||||
this.Name = "AssemblyManagement";
|
||||
this.ShowIcon = false;
|
||||
this.ShowInTaskbar = false;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "程序集管理";
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ListView listView_Assembly;
|
||||
private System.Windows.Forms.Button button_AddAssembly;
|
||||
private System.Windows.Forms.OpenFileDialog openFileDialog_OpenAssembly;
|
||||
private System.Windows.Forms.Button button_UpLoad;
|
||||
private System.Windows.Forms.Button button_DownLoad;
|
||||
private System.Windows.Forms.ColumnHeader columnHeader_Id;
|
||||
private System.Windows.Forms.ColumnHeader columnHeader_AssemblyName;
|
||||
private System.Windows.Forms.ColumnHeader columnHeader_FunctionName;
|
||||
private System.Windows.Forms.Button button_Exit;
|
||||
private System.Windows.Forms.Button button_Refresh;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,347 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace MisDataName
|
||||
{
|
||||
public delegate void NormalDel();
|
||||
public partial class AssemblyManagement : Form
|
||||
{
|
||||
public static Hashtable ExternalAssembly = new Hashtable();
|
||||
public static Hashtable MisAssembly_UnLoad = new Hashtable();//储存所有已卸载的程序集
|
||||
public static NormalDel UploadAssemblyDel ;
|
||||
public static string UpLoadObject = "";
|
||||
public AssemblyManagement()
|
||||
{
|
||||
CreateAssemblyFolder();
|
||||
InitializeComponent();
|
||||
UploadAssemblyDel = new NormalDel(UploadAssembly);
|
||||
InitAssemblyList();
|
||||
}
|
||||
/// <summary>
|
||||
/// 创建程序集文件夹
|
||||
/// </summary>
|
||||
void CreateAssemblyFolder()
|
||||
{
|
||||
try
|
||||
{
|
||||
//获取程序集路径
|
||||
string AssemblyCreatePath = System.IO.Directory.GetCurrentDirectory();
|
||||
//判断当前路径是否存在对应文件夹
|
||||
if (!Directory.Exists(AssemblyCreatePath + "\\Assembly_External"))
|
||||
{
|
||||
Directory.CreateDirectory(AssemblyCreatePath + "\\Assembly_External");
|
||||
}
|
||||
|
||||
if (!Directory.Exists(AssemblyCreatePath + "\\Assembly_Recycle"))
|
||||
{
|
||||
Directory.CreateDirectory(AssemblyCreatePath + "\\Assembly_Recycle");
|
||||
}
|
||||
}
|
||||
catch (Exception err)
|
||||
{
|
||||
SystemFramework.ApplicationLog.WriteLog(err, err.Message);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 初始化回收文件夹,删除内部所有文件
|
||||
/// </summary>
|
||||
public static void InitAssembly_Recycle()
|
||||
{
|
||||
try
|
||||
{
|
||||
DirectoryInfo folder_Recycle = new DirectoryInfo(System.IO.Directory.GetCurrentDirectory() + "\\Assembly_Recycle");
|
||||
foreach (FileInfo file in folder_Recycle.GetFiles("*.dll"))
|
||||
{
|
||||
file.Delete();
|
||||
}
|
||||
}
|
||||
catch (Exception err)
|
||||
{
|
||||
SystemFramework.ApplicationLog.WriteLog(err, err.Message);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 初始化程序集列表
|
||||
/// </summary>
|
||||
void InitAssemblyList()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
ExternalAssembly = new Hashtable();
|
||||
|
||||
listView_Assembly.Items.Clear();
|
||||
ListViewItem AssemblyItem;
|
||||
string[] AssemblyStrArrary = new string[3];
|
||||
int i = 1, k = 0;
|
||||
|
||||
string[] AssemblyKeys = new string[MesDataFunction.OpcOperation.Hashtable_assembly.Count];
|
||||
foreach (string _key in MesDataFunction.OpcOperation.Hashtable_assembly.Keys)
|
||||
{
|
||||
AssemblyKeys[k] = _key;
|
||||
k++;
|
||||
}
|
||||
|
||||
Array.Sort(AssemblyKeys);
|
||||
for (int j = 0; j < AssemblyKeys.Length; j++)
|
||||
{
|
||||
AssemblyStrArrary[0] = i.ToString();
|
||||
AssemblyStrArrary[1] = AssemblyKeys[j];
|
||||
if (MesDataFunction.OpcOperation.Hashtable_assembly[AssemblyKeys[j]] != null)
|
||||
{
|
||||
AssemblyStrArrary[2] = ((System.Reflection.Assembly)MesDataFunction.OpcOperation.Hashtable_assembly[AssemblyKeys[j]]).FullName.Split(',')[0] + ".dll";
|
||||
}
|
||||
else
|
||||
{
|
||||
AssemblyStrArrary[2] = "";
|
||||
}
|
||||
AssemblyItem = new ListViewItem(AssemblyStrArrary);
|
||||
listView_Assembly.Items.Add(AssemblyItem);
|
||||
i++;
|
||||
|
||||
}
|
||||
|
||||
//初始化外部程序集
|
||||
DirectoryInfo folder_External = new DirectoryInfo(System.IO.Directory.GetCurrentDirectory() + "\\Assembly_External");
|
||||
|
||||
foreach (FileInfo file in folder_External.GetFiles("*.dll"))
|
||||
{
|
||||
AssemblyStrArrary[0] = i.ToString();
|
||||
AssemblyStrArrary[1] = "未挂载";
|
||||
AssemblyStrArrary[2] = "..MisData" + file.FullName.Replace("MisData\\Assembly_External", "!\\Assembly_External").Split('!')[1];
|
||||
AssemblyItem = new ListViewItem(AssemblyStrArrary);
|
||||
listView_Assembly.Items.Add(AssemblyItem);
|
||||
i++;
|
||||
}
|
||||
//初始化外部程序集
|
||||
DirectoryInfo folder_Recycle = new DirectoryInfo(System.IO.Directory.GetCurrentDirectory() + "\\Assembly_Recycle");
|
||||
foreach (FileInfo file in folder_Recycle.GetFiles("*.dll"))
|
||||
{
|
||||
AssemblyStrArrary[0] = i.ToString();
|
||||
AssemblyStrArrary[1] = "已卸载";
|
||||
AssemblyStrArrary[2] = "..MisData" + file.FullName.Replace("MisData\\Assembly_Recycle", "!\\Assembly_Recycle").Split('!')[1];
|
||||
AssemblyItem = new ListViewItem(AssemblyStrArrary);
|
||||
listView_Assembly.Items.Add(AssemblyItem);
|
||||
i++;
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception err)
|
||||
{
|
||||
SystemFramework.ApplicationLog.WriteLog(err, err.Message);
|
||||
|
||||
}
|
||||
}
|
||||
private void button_Exit_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
||||
private void button_AddAssembly_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
openFileDialog_OpenAssembly.ShowDialog();
|
||||
|
||||
//刷新listview
|
||||
}
|
||||
|
||||
private void button_UpLoad_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (listView_Assembly.SelectedItems.Count > 0)
|
||||
{
|
||||
if (listView_Assembly.SelectedItems[0].SubItems[2].Text.Length > 3)
|
||||
{
|
||||
if (listView_Assembly.SelectedItems[0].SubItems[2].Text.Split('\\').Length <= 1)
|
||||
{
|
||||
MessageBox.Show("当前程序集已装载,禁止重复装载!");
|
||||
return;
|
||||
}
|
||||
|
||||
UploadAssembly UploadAssemblyForm = new MisDataName.UploadAssembly(listView_Assembly.SelectedItems[0].SubItems[2].Text);
|
||||
UploadAssemblyForm.ShowDialog();
|
||||
InitAssemblyList();
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("请选择要操作的程序集。");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("请选择要操作的程序集。");
|
||||
}
|
||||
}
|
||||
catch (Exception err)
|
||||
{
|
||||
SystemFramework.ApplicationLog.WriteLog(err, err.Message);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void button_DownLoad_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (listView_Assembly.SelectedItems.Count > 0)
|
||||
{
|
||||
string AssemblyFileName = listView_Assembly.SelectedItems[0].SubItems[1].Text;
|
||||
|
||||
if (AssemblyFileName.Substring(0, 3) != "Fun")
|
||||
{
|
||||
MessageBox.Show("当前程序集未被引用,请选择要卸载的服务!");
|
||||
return;
|
||||
}
|
||||
|
||||
List<string> DownLoadServerName = new List<string>();
|
||||
//卸载所有调用当前程序集服务的程序集
|
||||
System.Reflection.Assembly DownLoadAssembly = ((System.Reflection.Assembly)MesDataFunction.OpcOperation.Hashtable_assembly[AssemblyFileName]);
|
||||
|
||||
//遍历所有对当前程序集有调用的服务
|
||||
foreach (string _key in MesDataFunction.OpcOperation.Hashtable_assembly.Keys)
|
||||
{
|
||||
if (MesDataFunction.OpcOperation.Hashtable_assembly[_key] == null)
|
||||
continue;
|
||||
if (((System.Reflection.Assembly)MesDataFunction.OpcOperation.Hashtable_assembly[_key]).FullName == DownLoadAssembly.FullName)
|
||||
{
|
||||
DownLoadServerName.Add(_key);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (string _key in DownLoadServerName)
|
||||
{
|
||||
MesDataFunction.OpcOperation.Hashtable_assembly[_key] = null;
|
||||
}
|
||||
//将卸载的DLL文件移出到回收文件
|
||||
File.Move(System.IO.Directory.GetCurrentDirectory() + "\\" + listView_Assembly.SelectedItems[0].SubItems[2].Text, System.IO.Directory.GetCurrentDirectory() + "\\Assembly_Recycle\\" + listView_Assembly.SelectedItems[0].SubItems[2].Text.Replace(".dll", "") + "_" + DateTime.Now.ToUniversalTime().ToString().Replace('/', '_').Replace(' ', '_').Replace(':', '_') + ".dll");
|
||||
|
||||
InitAssemblyList();
|
||||
MessageBox.Show("程序集卸载成功!");
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("请选择要卸载的程序集。");
|
||||
}
|
||||
}
|
||||
catch (Exception err)
|
||||
{
|
||||
SystemFramework.ApplicationLog.WriteLog(err, err.Message);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 装载程序集
|
||||
/// </summary>
|
||||
void UploadAssembly()
|
||||
{
|
||||
try
|
||||
{
|
||||
//获取选中行的 dll 名称
|
||||
string BinPath = System.IO.Directory.GetCurrentDirectory();
|
||||
string AssemblyFileName = listView_Assembly.SelectedItems[0].SubItems[2].Text.Replace("..MisData\\", "");
|
||||
AssemblyFileName = AssemblyFileName.Split('\\')[1].ToString();//程序集文件名称
|
||||
|
||||
//此步骤需要将所有引用的同名DLL全部替换
|
||||
System.Reflection.Assembly new_LoadAssembly = System.Reflection.Assembly.LoadFile(BinPath + listView_Assembly.SelectedItems[0].SubItems[2].Text.Replace("..MisData", ""));
|
||||
System.Reflection.Assembly old_LoadAssembly = (System.Reflection.Assembly)MesDataFunction.OpcOperation.Hashtable_assembly[UpLoadObject];
|
||||
|
||||
int Compare_i = 0;
|
||||
|
||||
foreach (string _key in MesDataFunction.OpcOperation.Hashtable_assembly.Keys)
|
||||
{
|
||||
if (((System.Reflection.Assembly)MesDataFunction.OpcOperation.Hashtable_assembly[_key]) == null) continue;
|
||||
if (((System.Reflection.Assembly)MesDataFunction.OpcOperation.Hashtable_assembly[_key]).FullName == new_LoadAssembly.FullName && _key != UpLoadObject)
|
||||
{
|
||||
//提示存在同名程序集 若要替换 请先卸载同名程序集
|
||||
Compare_i++;
|
||||
}
|
||||
|
||||
}
|
||||
if (Compare_i > 0)
|
||||
{
|
||||
//存在多个引用项
|
||||
MessageBox.Show("系统存在与当前程序集同名的程序集引用,如果要引用新程序集,请提前卸载其他服务引用的同名程序集:", "提示:");
|
||||
return;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
//移出旧程序集
|
||||
if (old_LoadAssembly != null)
|
||||
{
|
||||
File.Move(System.IO.Directory.GetCurrentDirectory() + "\\" + old_LoadAssembly.FullName.Split(',')[0] + ".dll", System.IO.Directory.GetCurrentDirectory() + "\\Assembly_Recycle\\" + old_LoadAssembly.FullName.Split(',')[0] + "_" + DateTime.Now.ToUniversalTime().ToString().Replace('/', '_').Replace(' ', '_').Replace(':', '_') + ".dll");
|
||||
}
|
||||
|
||||
MesDataFunction.OpcOperation.Hashtable_assembly[UpLoadObject] = new_LoadAssembly;
|
||||
//移动原程序集 然后移动新程序集 系统文件夹是否存在同名Dll文件
|
||||
if (File.Exists(System.IO.Directory.GetCurrentDirectory() + "\\" + AssemblyFileName))
|
||||
{
|
||||
//将同名DLL文件移出到回收文件
|
||||
File.Move(System.IO.Directory.GetCurrentDirectory() + "\\" + AssemblyFileName, System.IO.Directory.GetCurrentDirectory() + "\\Assembly_Recycle\\" + AssemblyFileName.Replace(".dll", "") + "_" + DateTime.Now.ToUniversalTime().ToString().Replace('/', '_').Replace(' ', '_').Replace(':', '_') + ".dll");
|
||||
|
||||
}
|
||||
File.Move(System.IO.Directory.GetCurrentDirectory() + "\\" + listView_Assembly.SelectedItems[0].SubItems[2].Text.Replace("..MisData\\", ""), System.IO.Directory.GetCurrentDirectory() + "\\" + (AssemblyFileName.Split('_')[0]).Replace(".dll", "") + ".dll");//移入新程序集
|
||||
MessageBox.Show("程序集装载成功!");
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception err)
|
||||
{
|
||||
SystemFramework.ApplicationLog.WriteLog(err, err.Message);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void openFileDialog_OpenAssembly_FileOk(object sender, CancelEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
//将文件复制到Assembly_External 文件夹
|
||||
|
||||
if (openFileDialog_OpenAssembly.SafeFileName.Split('.')[openFileDialog_OpenAssembly.SafeFileName.Split('.').Length - 1] != "dll")
|
||||
{
|
||||
MessageBox.Show("添加的文件无效,请选择需要添加的“dll”文件!");
|
||||
return;
|
||||
}
|
||||
FileInfo file = new FileInfo(openFileDialog_OpenAssembly.FileName);
|
||||
file.CopyTo(System.IO.Directory.GetCurrentDirectory() + "\\Assembly_External\\" + openFileDialog_OpenAssembly.SafeFileName, true);
|
||||
InitAssemblyList();
|
||||
}
|
||||
catch (Exception err)
|
||||
{
|
||||
SystemFramework.ApplicationLog.WriteLog(err, err.Message);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void button_Refresh_Click(object sender, EventArgs e)
|
||||
{
|
||||
InitAssemblyList();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="openFileDialog_OpenAssembly.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
118
MisData_3.0_2022.08.23.1622.LLX/MisData/MisMenuFunction/Windows/UploadAssembly.Designer.cs
generated
Normal file
118
MisData_3.0_2022.08.23.1622.LLX/MisData/MisMenuFunction/Windows/UploadAssembly.Designer.cs
generated
Normal file
@@ -0,0 +1,118 @@
|
||||
|
||||
namespace MisDataName
|
||||
{
|
||||
partial class UploadAssembly
|
||||
{
|
||||
/// <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.listBox_AssemblyTag = new System.Windows.Forms.ListBox();
|
||||
this.button_OK = new System.Windows.Forms.Button();
|
||||
this.button_Cancel = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label_AssemblyName = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// listBox_AssemblyTag
|
||||
//
|
||||
this.listBox_AssemblyTag.FormattingEnabled = true;
|
||||
this.listBox_AssemblyTag.ItemHeight = 12;
|
||||
this.listBox_AssemblyTag.Location = new System.Drawing.Point(12, 36);
|
||||
this.listBox_AssemblyTag.Name = "listBox_AssemblyTag";
|
||||
this.listBox_AssemblyTag.Size = new System.Drawing.Size(260, 172);
|
||||
this.listBox_AssemblyTag.TabIndex = 0;
|
||||
//
|
||||
// button_OK
|
||||
//
|
||||
this.button_OK.Location = new System.Drawing.Point(20, 220);
|
||||
this.button_OK.Name = "button_OK";
|
||||
this.button_OK.Size = new System.Drawing.Size(75, 23);
|
||||
this.button_OK.TabIndex = 1;
|
||||
this.button_OK.Text = "OK";
|
||||
this.button_OK.UseVisualStyleBackColor = true;
|
||||
this.button_OK.Click += new System.EventHandler(this.button_OK_Click);
|
||||
//
|
||||
// button_Cancel
|
||||
//
|
||||
this.button_Cancel.Location = new System.Drawing.Point(167, 220);
|
||||
this.button_Cancel.Name = "button_Cancel";
|
||||
this.button_Cancel.Size = new System.Drawing.Size(75, 23);
|
||||
this.button_Cancel.TabIndex = 2;
|
||||
this.button_Cancel.Text = "Cancel";
|
||||
this.button_Cancel.UseVisualStyleBackColor = true;
|
||||
this.button_Cancel.Click += new System.EventHandler(this.button_Cancel_Click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(10, 9);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(53, 12);
|
||||
this.label1.TabIndex = 3;
|
||||
this.label1.Text = "程序集:";
|
||||
//
|
||||
// label_AssemblyName
|
||||
//
|
||||
this.label_AssemblyName.AutoSize = true;
|
||||
this.label_AssemblyName.Location = new System.Drawing.Point(64, 9);
|
||||
this.label_AssemblyName.Name = "label_AssemblyName";
|
||||
this.label_AssemblyName.Size = new System.Drawing.Size(77, 12);
|
||||
this.label_AssemblyName.TabIndex = 4;
|
||||
this.label_AssemblyName.Text = "ServerObject";
|
||||
//
|
||||
// UploadAssembly
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(284, 262);
|
||||
this.Controls.Add(this.label_AssemblyName);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.button_Cancel);
|
||||
this.Controls.Add(this.button_OK);
|
||||
this.Controls.Add(this.listBox_AssemblyTag);
|
||||
this.MaximizeBox = false;
|
||||
this.MaximumSize = new System.Drawing.Size(300, 300);
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(300, 300);
|
||||
this.Name = "UploadAssembly";
|
||||
this.ShowIcon = false;
|
||||
this.ShowInTaskbar = false;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "绑定程序集";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ListBox listBox_AssemblyTag;
|
||||
private System.Windows.Forms.Button button_OK;
|
||||
private System.Windows.Forms.Button button_Cancel;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label_AssemblyName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace MisDataName
|
||||
{
|
||||
public partial class UploadAssembly : Form
|
||||
{
|
||||
public UploadAssembly()
|
||||
{
|
||||
InitializeComponent();
|
||||
InitAssemblyTag();
|
||||
}
|
||||
|
||||
public UploadAssembly(string Str)
|
||||
{
|
||||
InitializeComponent();
|
||||
label_AssemblyName.Text = Str.Replace ("MisData\\", "");
|
||||
InitAssemblyTag();
|
||||
}
|
||||
void InitAssemblyTag()
|
||||
{
|
||||
int k = 0;
|
||||
listBox_AssemblyTag.Items.Clear();
|
||||
string[] AssemblyKeys = new string[MesDataFunction.OpcOperation.Hashtable_assembly.Count];
|
||||
foreach (string _key in MesDataFunction.OpcOperation.Hashtable_assembly.Keys)
|
||||
{
|
||||
AssemblyKeys[k] = _key;
|
||||
k++;
|
||||
}
|
||||
Array.Sort(AssemblyKeys);
|
||||
for (int i = 0; i < AssemblyKeys.Length; i++)
|
||||
{
|
||||
listBox_AssemblyTag.Items.Add(AssemblyKeys[i]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void button_OK_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(listBox_AssemblyTag.SelectedItems .Count ==0)
|
||||
{
|
||||
MessageBox.Show("请选择需要挂载的服务对象!");
|
||||
}
|
||||
else
|
||||
{
|
||||
AssemblyManagement.UpLoadObject = listBox_AssemblyTag.SelectedItems[0].ToString();
|
||||
}
|
||||
AssemblyManagement.UploadAssemblyDel();
|
||||
Close();
|
||||
}
|
||||
|
||||
private void button_Cancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
Binary file not shown.
Reference in New Issue
Block a user