1
0
Fork 0

add-添加RFID信息查询界面

master
liuwf 2 days ago
parent 978ade00b0
commit 0779bd6a11

@ -65,8 +65,10 @@
<Compile Include="domain\ZxRecipeEntity.cs" /> <Compile Include="domain\ZxRecipeEntity.cs" />
<Compile Include="domain\ZxRecipeParaEntity.cs" /> <Compile Include="domain\ZxRecipeParaEntity.cs" />
<Compile Include="domain\ZxWeightEntity.cs" /> <Compile Include="domain\ZxWeightEntity.cs" />
<Compile Include="domain\Zx_rfid_setting.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Repository.cs" /> <Compile Include="Repository.cs" />
<Compile Include="service\Zx_rfid_settingService.cs" />
<Compile Include="service\SysLogService.cs" /> <Compile Include="service\SysLogService.cs" />
<Compile Include="service\SysErrorLogService.cs" /> <Compile Include="service\SysErrorLogService.cs" />
<Compile Include="service\ZxCarParaService.cs" /> <Compile Include="service\ZxCarParaService.cs" />

@ -0,0 +1,50 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;
namespace HighWayIot.Repository.domain
{
/// <summary>
///
///</summary>
[SugarTable("zx_rfid_setting")]
public class Zx_rfid_setting
{
/// <summary>
/// 备 注:
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
/// <summary>
/// 备 注:读写器IP
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "rfid_ip")]
public string RfidIp { get; set; }
/// <summary>
/// 备 注:RFID编号
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "rfid_epc")]
public string RfidEpc { get; set; }
/// <summary>
/// 备 注:工位编号
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "workstate_no")]
public int? WorkstateNo { get; set; }
}
}

@ -0,0 +1,91 @@
using HighWayIot.Log4net;
using HighWayIot.Repository.domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace HighWayIot.Repository.service
{
public class Zx_rfid_settingService
{
private static readonly Lazy<Zx_rfid_settingService> lazy = new Lazy<Zx_rfid_settingService>(() => new Zx_rfid_settingService());
public static Zx_rfid_settingService Instance
{
get
{
return lazy.Value;
}
}
private LogHelper log = LogHelper.Instance;
Repository<Zx_rfid_setting> _repository => new Repository<Zx_rfid_setting>("sqlserver");
/// <summary>
/// 查询所有RFID设备信息
/// </summary>
/// <returns></returns>
public List<Zx_rfid_setting> GetRfidInfos(Expression<Func<Zx_rfid_setting, bool>> expression = null)
{
try
{
List<Zx_rfid_setting> entity;
if (expression != null)
{
entity = _repository.GetList(expression);
}
else
{
entity = _repository.GetList();
}
return entity;
}
catch (Exception ex)
{
log.Error("RFID设备信息获取异常", ex);
return null;
}
}
/// <summary>
/// 查询指定RFID设备信息
/// </summary>
/// <returns></returns>
public Zx_rfid_setting GetRfidInfoById(int id)
{
try
{
Zx_rfid_setting entity;
entity = _repository.GetById(id);
return entity;
}
catch (Exception ex)
{
log.Error("RFID设备信息获取异常", ex);
return null;
}
}
/// <summary>
/// 修改信息
/// </summary>
/// <param name="entity"></param>
/// <returns></returns>
public bool UpdateRfidInfo(Zx_rfid_setting entity)
{
try
{
return _repository.Update(entity);
}
catch (Exception ex)
{
log.Error("RFID信息修改异常", ex);
return false;
}
}
}
}

@ -118,6 +118,12 @@
<Compile Include="UserControlPages\MonitorMainPages\MonitorMainPage.Designer.cs"> <Compile Include="UserControlPages\MonitorMainPages\MonitorMainPage.Designer.cs">
<DependentUpon>MonitorMainPage.cs</DependentUpon> <DependentUpon>MonitorMainPage.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="UserControlPages\ParamConfigPages\UpdateRfidWindow.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="UserControlPages\ParamConfigPages\UpdateRfidWindow.Designer.cs">
<DependentUpon>UpdateRfidWindow.cs</DependentUpon>
</Compile>
<Compile Include="UserControlPages\RecipeConfigPages\AddRecipeForm.cs"> <Compile Include="UserControlPages\RecipeConfigPages\AddRecipeForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@ -248,6 +254,9 @@
<EmbeddedResource Include="UserControlPages\MonitorMainPages\MonitorMainPage.resx"> <EmbeddedResource Include="UserControlPages\MonitorMainPages\MonitorMainPage.resx">
<DependentUpon>MonitorMainPage.cs</DependentUpon> <DependentUpon>MonitorMainPage.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="UserControlPages\ParamConfigPages\UpdateRfidWindow.resx">
<DependentUpon>UpdateRfidWindow.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UserControlPages\RecipeConfigPages\AddRecipeForm.resx"> <EmbeddedResource Include="UserControlPages\RecipeConfigPages\AddRecipeForm.resx">
<DependentUpon>AddRecipeForm.cs</DependentUpon> <DependentUpon>AddRecipeForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>

@ -31,68 +31,105 @@ namespace HighWayIot.Winform.UserControlPages.ParamConfigPages
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.RoleDataGridView = new System.Windows.Forms.DataGridView(); this.GetRfidButton = new System.Windows.Forms.Button();
this.AddRole = new System.Windows.Forms.Button();
this.ButtonPanel = new System.Windows.Forms.Panel(); this.ButtonPanel = new System.Windows.Forms.Panel();
((System.ComponentModel.ISupportInitialize)(this.RoleDataGridView)).BeginInit(); this.rfidDataGridView = new System.Windows.Forms.DataGridView();
this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.RfidIp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.RfidEpc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.WorkstateNo = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ButtonPanel.SuspendLayout(); this.ButtonPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.rfidDataGridView)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// RoleDataGridView // GetRfidButton
// //
this.RoleDataGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.GetRfidButton.Location = new System.Drawing.Point(3, 2);
| System.Windows.Forms.AnchorStyles.Left) this.GetRfidButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
| System.Windows.Forms.AnchorStyles.Right))); this.GetRfidButton.Name = "GetRfidButton";
this.RoleDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.GetRfidButton.Size = new System.Drawing.Size(103, 39);
this.RoleDataGridView.Location = new System.Drawing.Point(0, 65); this.GetRfidButton.TabIndex = 1;
this.RoleDataGridView.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.GetRfidButton.Text = "查 询";
this.RoleDataGridView.Name = "RoleDataGridView"; this.GetRfidButton.UseVisualStyleBackColor = true;
this.RoleDataGridView.RowTemplate.Height = 25; this.GetRfidButton.Click += new System.EventHandler(this.GetRfidButton_Click);
this.RoleDataGridView.Size = new System.Drawing.Size(1171, 742);
this.RoleDataGridView.TabIndex = 0;
this.RoleDataGridView.Tag = "";
//
// AddRole
//
this.AddRole.Location = new System.Drawing.Point(11, 11);
this.AddRole.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.AddRole.Name = "AddRole";
this.AddRole.Size = new System.Drawing.Size(103, 39);
this.AddRole.TabIndex = 1;
this.AddRole.Text = "查询操作信息";
this.AddRole.UseVisualStyleBackColor = true;
// //
// ButtonPanel // ButtonPanel
// //
this.ButtonPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.ButtonPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.ButtonPanel.Controls.Add(this.AddRole); this.ButtonPanel.Controls.Add(this.GetRfidButton);
this.ButtonPanel.Location = new System.Drawing.Point(0, 0); this.ButtonPanel.Location = new System.Drawing.Point(0, 0);
this.ButtonPanel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.ButtonPanel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.ButtonPanel.Name = "ButtonPanel"; this.ButtonPanel.Name = "ButtonPanel";
this.ButtonPanel.Size = new System.Drawing.Size(1171, 61); this.ButtonPanel.Size = new System.Drawing.Size(1171, 61);
this.ButtonPanel.TabIndex = 4; this.ButtonPanel.TabIndex = 4;
// //
// rfidDataGridView
//
this.rfidDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.rfidDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Id,
this.RfidIp,
this.RfidEpc,
this.WorkstateNo});
this.rfidDataGridView.Location = new System.Drawing.Point(20, 66);
this.rfidDataGridView.Name = "rfidDataGridView";
this.rfidDataGridView.RowTemplate.Height = 23;
this.rfidDataGridView.Size = new System.Drawing.Size(1135, 724);
this.rfidDataGridView.TabIndex = 5;
this.rfidDataGridView.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.rfidDataGridView_CellDoubleClick);
//
// Id
//
this.Id.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.Id.FillWeight = 10F;
this.Id.HeaderText = "ID";
this.Id.Name = "Id";
//
// RfidIp
//
this.RfidIp.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.RfidIp.FillWeight = 20F;
this.RfidIp.HeaderText = "设备ip";
this.RfidIp.Name = "RfidIp";
//
// RfidEpc
//
this.RfidEpc.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.RfidEpc.FillWeight = 20F;
this.RfidEpc.HeaderText = "RFID编号";
this.RfidEpc.Name = "RfidEpc";
//
// WorkstateNo
//
this.WorkstateNo.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.WorkstateNo.FillWeight = 20F;
this.WorkstateNo.HeaderText = "工位编号";
this.WorkstateNo.Name = "WorkstateNo";
//
// RFIDParamSettingPage // RFIDParamSettingPage
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.ControlLight; this.BackColor = System.Drawing.SystemColors.ControlLight;
this.Controls.Add(this.rfidDataGridView);
this.Controls.Add(this.ButtonPanel); this.Controls.Add(this.ButtonPanel);
this.Controls.Add(this.RoleDataGridView);
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Name = "RFIDParamSettingPage"; this.Name = "RFIDParamSettingPage";
this.Size = new System.Drawing.Size(1171, 807); this.Size = new System.Drawing.Size(1171, 807);
((System.ComponentModel.ISupportInitialize)(this.RoleDataGridView)).EndInit();
this.ButtonPanel.ResumeLayout(false); this.ButtonPanel.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.rfidDataGridView)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
#endregion #endregion
private Button GetRfidButton;
private DataGridView RoleDataGridView;
private Button AddRole;
private Panel ButtonPanel; private Panel ButtonPanel;
private DataGridView rfidDataGridView;
private DataGridViewTextBoxColumn Id;
private DataGridViewTextBoxColumn RfidIp;
private DataGridViewTextBoxColumn RfidEpc;
private DataGridViewTextBoxColumn WorkstateNo;
} }
} }

@ -1,4 +1,6 @@
using System; using HighWayIot.Repository.domain;
using HighWayIot.Repository.service;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
@ -12,14 +14,45 @@ namespace HighWayIot.Winform.UserControlPages.ParamConfigPages
{ {
public partial class RFIDParamSettingPage : UserControl public partial class RFIDParamSettingPage : UserControl
{ {
private Zx_rfid_settingService zx_rfid_settingService = Zx_rfid_settingService.Instance;
public RFIDParamSettingPage() public RFIDParamSettingPage()
{ {
InitializeComponent(); InitializeComponent();
} }
private void UpdateRole_Click(object sender, EventArgs e)
private void GetRfidButton_Click(object sender, EventArgs e)
{
this.rfidDataGridView.Rows.Clear();
List<Zx_rfid_setting> list = zx_rfid_settingService.GetRfidInfos();
foreach (var item in list)
{
this.rfidDataGridView.Rows.Add(item.Id, item.RfidIp, item.RfidEpc, item.WorkstateNo);
}
}
private void rfidDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{ {
// 检查是否双击了有效的行(排除列头)
if (e.RowIndex >= 0)
{
// 获取双击的行
DataGridViewRow row = rfidDataGridView.Rows[e.RowIndex];
// 获取该行的数据
int id = (int)row.Cells["Id"].Value;
string RfidIp = (string)row.Cells["RfidIp"].Value;
string RfidEpc = (string)row.Cells["RfidEpc"].Value;
string WorkstateNo = (string)row.Cells["WorkstateNo"].Value;
UpdateRfidWindow window = new UpdateRfidWindow(id, RfidIp,RfidEpc, WorkstateNo);
window.Show();
}
} }
} }
} }

@ -117,4 +117,16 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="Id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="RfidIp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="RfidEpc.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="WorkstateNo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root> </root>

@ -0,0 +1,127 @@
namespace HighWayIot.Winform.UserControlPages.ParamConfigPages
{
partial class UpdateRfidWindow
{
/// <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.label3 = new System.Windows.Forms.Label();
this.RfidIptextBox = new System.Windows.Forms.TextBox();
this.RfidEpctextBox = new System.Windows.Forms.TextBox();
this.WorkstateNotextBox = new System.Windows.Forms.TextBox();
this.saveButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(174, 56);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(65, 12);
this.label1.TabIndex = 0;
this.label1.Text = "读写器IP";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(174, 135);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(65, 12);
this.label2.TabIndex = 1;
this.label2.Text = "RFID编号";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(174, 211);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(65, 12);
this.label3.TabIndex = 2;
this.label3.Text = "工位编号:";
//
// RfidIptextBox
//
this.RfidIptextBox.Location = new System.Drawing.Point(241, 53);
this.RfidIptextBox.Name = "RfidIptextBox";
this.RfidIptextBox.Size = new System.Drawing.Size(159, 21);
this.RfidIptextBox.TabIndex = 3;
//
// RfidEpctextBox
//
this.RfidEpctextBox.Location = new System.Drawing.Point(241, 135);
this.RfidEpctextBox.Name = "RfidEpctextBox";
this.RfidEpctextBox.Size = new System.Drawing.Size(159, 21);
this.RfidEpctextBox.TabIndex = 4;
//
// WorkstateNotextBox
//
this.WorkstateNotextBox.Location = new System.Drawing.Point(241, 211);
this.WorkstateNotextBox.Name = "WorkstateNotextBox";
this.WorkstateNotextBox.Size = new System.Drawing.Size(159, 21);
this.WorkstateNotextBox.TabIndex = 5;
//
// saveButton
//
this.saveButton.Location = new System.Drawing.Point(271, 315);
this.saveButton.Name = "saveButton";
this.saveButton.Size = new System.Drawing.Size(75, 23);
this.saveButton.TabIndex = 6;
this.saveButton.Text = "修改";
this.saveButton.UseVisualStyleBackColor = true;
this.saveButton.Click += new System.EventHandler(this.saveButton_Click);
//
// UpdateRfidWindow
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(674, 450);
this.Controls.Add(this.saveButton);
this.Controls.Add(this.WorkstateNotextBox);
this.Controls.Add(this.RfidEpctextBox);
this.Controls.Add(this.RfidIptextBox);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Name = "UpdateRfidWindow";
this.Text = "UpdateRfidWindow";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox RfidIptextBox;
private System.Windows.Forms.TextBox RfidEpctextBox;
private System.Windows.Forms.TextBox WorkstateNotextBox;
private System.Windows.Forms.Button saveButton;
}
}

@ -0,0 +1,43 @@
using HighWayIot.Repository.domain;
using HighWayIot.Repository.service;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HighWayIot.Winform.UserControlPages.ParamConfigPages
{
public partial class UpdateRfidWindow : Form
{
private Zx_rfid_settingService zx_rfid_settingService = Zx_rfid_settingService.Instance;
private int _id;
public UpdateRfidWindow(int id,string ip,string epc,string no)
{
_id = id;
InitializeComponent();
RfidIptextBox.Text = ip;
RfidEpctextBox.Text = epc;
WorkstateNotextBox.Text = no;
}
private void saveButton_Click(object sender, EventArgs e)
{
if (!int.TryParse(WorkstateNotextBox.Text,out int result))
{
MessageBox.Show("工作状态编号必须是整数");
return;
}
Zx_rfid_setting zx_Rfid_Setting = zx_rfid_settingService.GetRfidInfoById(_id);
zx_Rfid_Setting.RfidIp = RfidIptextBox.Text;
zx_Rfid_Setting.RfidEpc = RfidEpctextBox.Text;
zx_Rfid_Setting.WorkstateNo = result;
zx_rfid_settingService.UpdateRfidInfo(zx_Rfid_Setting);
MessageBox.Show("修改成功");
}
}
}

@ -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>

@ -7,7 +7,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Net; using System.Net;
using System.Windows.Forms; using System.Windows.Forms;
using TouchSocket.Core;
using static System.Windows.Forms.VisualStyles.VisualStyleElement; using static System.Windows.Forms.VisualStyles.VisualStyleElement;

Loading…
Cancel
Save