基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
using DevExpress.UserSkins;
|
||||
using DevExpress.Skins;
|
||||
using DevExpress.LookAndFeel;
|
||||
using Lskj.Util;
|
||||
using Lskj.Model;
|
||||
using Lskj.Business;
|
||||
|
||||
namespace Lskj.PictureComp
|
||||
{
|
||||
/// <summary>
|
||||
/// 图片相似筛选模版入口
|
||||
/// </summary>
|
||||
public class DllBaseClass : IForm
|
||||
{
|
||||
public DllBaseClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DllBaseClass(string[] obj)
|
||||
{
|
||||
try
|
||||
{
|
||||
DynamicPicture moduleModel = new DynamicPicture(obj);
|
||||
FrmMain main = new FrmMain();
|
||||
this.SubForm = main;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogUtil.WriteError("Lskj.PictureComp.dll--参数错误-->" + obj.ToString(), ex);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public Form SubForm { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
namespace Lskj.PictureComp
|
||||
{
|
||||
partial class ErrorForm
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.errorLable = new System.Windows.Forms.Label();
|
||||
this.buttonError = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// errorLable
|
||||
//
|
||||
this.errorLable.AutoSize = true;
|
||||
this.errorLable.Font = new System.Drawing.Font("宋体", 22.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.errorLable.Location = new System.Drawing.Point(35, 216);
|
||||
this.errorLable.Name = "errorLable";
|
||||
this.errorLable.Size = new System.Drawing.Size(131, 38);
|
||||
this.errorLable.TabIndex = 0;
|
||||
this.errorLable.Text = "label1";
|
||||
this.errorLable.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// buttonError
|
||||
//
|
||||
this.buttonError.BackColor = System.Drawing.Color.Transparent;
|
||||
this.buttonError.BackgroundImage = global::Lskj.PictureComp.Properties.Resources.RightImg;
|
||||
this.buttonError.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
|
||||
this.buttonError.Enabled = false;
|
||||
this.buttonError.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
|
||||
this.buttonError.FlatAppearance.BorderSize = 0;
|
||||
this.buttonError.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.buttonError.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.buttonError.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.buttonError.Location = new System.Drawing.Point(-8, 3);
|
||||
this.buttonError.Name = "buttonError";
|
||||
this.buttonError.Size = new System.Drawing.Size(220, 210);
|
||||
this.buttonError.TabIndex = 1;
|
||||
this.buttonError.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// ErrorForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.Color.Transparent;
|
||||
this.Controls.Add(this.buttonError);
|
||||
this.Controls.Add(this.errorLable);
|
||||
this.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.Name = "ErrorForm";
|
||||
this.Size = new System.Drawing.Size(203, 260);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public System.Windows.Forms.Label errorLable;
|
||||
public System.Windows.Forms.Button buttonError;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Lskj.PictureComp
|
||||
{
|
||||
public partial class ErrorForm : UserControl
|
||||
{
|
||||
public ErrorForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
Generated
+48
@@ -0,0 +1,48 @@
|
||||
namespace PictureComp
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <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.SuspendLayout();
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(632, 278);
|
||||
this.Name = "Form1";
|
||||
this.Text = "Form1";
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
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 PictureComp
|
||||
{
|
||||
public partial class Form1 : DevExpress.XtraEditors.XtraForm
|
||||
{
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
Generated
+445
@@ -0,0 +1,445 @@
|
||||
namespace Lskj.PictureComp
|
||||
{
|
||||
partial class FrmMain
|
||||
{
|
||||
/// <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.panel_left = new DevExpress.XtraEditors.PanelControl();
|
||||
this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl();
|
||||
this.page_select = new DevExpress.XtraTab.XtraTabPage();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.PageSelect_tag1 = new DevExpress.XtraEditors.TextEdit();
|
||||
this.PageSelect_tag2 = new DevExpress.XtraEditors.TextEdit();
|
||||
this.labelControl6 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.labelControl5 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.PageSelect_picEdit = new DevExpress.XtraEditors.PictureEdit();
|
||||
this.page_add = new DevExpress.XtraTab.XtraTabPage();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.PageAdd_Tag1 = new DevExpress.XtraEditors.TextEdit();
|
||||
this.PageAdd_btnClear = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.PageAdd_Tag2 = new DevExpress.XtraEditors.TextEdit();
|
||||
this.labelControl2 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.PageAdd_btnCheck = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.labelControl3 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.PageAdd_Brief = new DevExpress.XtraEditors.TextEdit();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.PageAdd_picEdit = new DevExpress.XtraEditors.PictureEdit();
|
||||
this.lbTitle = new System.Windows.Forms.Label();
|
||||
this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
|
||||
this.panel_right = new System.Windows.Forms.Panel();
|
||||
this.labelRightToP = new System.Windows.Forms.Label();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panel_left)).BeginInit();
|
||||
this.panel_left.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit();
|
||||
this.xtraTabControl1.SuspendLayout();
|
||||
this.page_select.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PageSelect_tag1.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PageSelect_tag2.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PageSelect_picEdit.Properties)).BeginInit();
|
||||
this.page_add.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PageAdd_Tag1.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PageAdd_Tag2.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PageAdd_Brief.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PageAdd_picEdit.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
|
||||
this.panelControl1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panel_left
|
||||
//
|
||||
this.panel_left.Controls.Add(this.xtraTabControl1);
|
||||
this.panel_left.Controls.Add(this.lbTitle);
|
||||
this.panel_left.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.panel_left.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel_left.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.panel_left.Name = "panel_left";
|
||||
this.panel_left.Size = new System.Drawing.Size(372, 671);
|
||||
this.panel_left.TabIndex = 2;
|
||||
//
|
||||
// xtraTabControl1
|
||||
//
|
||||
this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.xtraTabControl1.Location = new System.Drawing.Point(2, 42);
|
||||
this.xtraTabControl1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.xtraTabControl1.Name = "xtraTabControl1";
|
||||
this.xtraTabControl1.SelectedTabPage = this.page_select;
|
||||
this.xtraTabControl1.Size = new System.Drawing.Size(368, 627);
|
||||
this.xtraTabControl1.TabIndex = 7;
|
||||
this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
|
||||
this.page_select,
|
||||
this.page_add});
|
||||
//
|
||||
// page_select
|
||||
//
|
||||
this.page_select.Appearance.PageClient.BackColor = System.Drawing.Color.White;
|
||||
this.page_select.Appearance.PageClient.Options.UseBackColor = true;
|
||||
this.page_select.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
|
||||
this.page_select.Controls.Add(this.panel1);
|
||||
this.page_select.Controls.Add(this.label1);
|
||||
this.page_select.Controls.Add(this.PageSelect_picEdit);
|
||||
this.page_select.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.page_select.Name = "page_select";
|
||||
this.page_select.Size = new System.Drawing.Size(361, 591);
|
||||
this.page_select.Text = "图片搜索";
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.BackColor = System.Drawing.Color.White;
|
||||
this.panel1.Controls.Add(this.PageSelect_tag1);
|
||||
this.panel1.Controls.Add(this.PageSelect_tag2);
|
||||
this.panel1.Controls.Add(this.labelControl6);
|
||||
this.panel1.Controls.Add(this.labelControl5);
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel1.Location = new System.Drawing.Point(0, 376);
|
||||
this.panel1.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(361, 215);
|
||||
this.panel1.TabIndex = 15;
|
||||
//
|
||||
// PageSelect_tag1
|
||||
//
|
||||
this.PageSelect_tag1.Location = new System.Drawing.Point(91, 54);
|
||||
this.PageSelect_tag1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.PageSelect_tag1.Name = "PageSelect_tag1";
|
||||
this.PageSelect_tag1.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.PageSelect_tag1.Properties.Appearance.Options.UseFont = true;
|
||||
this.PageSelect_tag1.Size = new System.Drawing.Size(247, 30);
|
||||
this.PageSelect_tag1.TabIndex = 14;
|
||||
//
|
||||
// PageSelect_tag2
|
||||
//
|
||||
this.PageSelect_tag2.Location = new System.Drawing.Point(91, 130);
|
||||
this.PageSelect_tag2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.PageSelect_tag2.Name = "PageSelect_tag2";
|
||||
this.PageSelect_tag2.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.PageSelect_tag2.Properties.Appearance.Options.UseFont = true;
|
||||
this.PageSelect_tag2.Size = new System.Drawing.Size(247, 30);
|
||||
this.PageSelect_tag2.TabIndex = 16;
|
||||
//
|
||||
// labelControl6
|
||||
//
|
||||
this.labelControl6.Appearance.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.labelControl6.Location = new System.Drawing.Point(23, 58);
|
||||
this.labelControl6.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.labelControl6.Name = "labelControl6";
|
||||
this.labelControl6.Size = new System.Drawing.Size(58, 24);
|
||||
this.labelControl6.TabIndex = 13;
|
||||
this.labelControl6.Text = "分类1:";
|
||||
//
|
||||
// labelControl5
|
||||
//
|
||||
this.labelControl5.Appearance.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.labelControl5.Location = new System.Drawing.Point(21, 134);
|
||||
this.labelControl5.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.labelControl5.Name = "labelControl5";
|
||||
this.labelControl5.Size = new System.Drawing.Size(58, 24);
|
||||
this.labelControl5.TabIndex = 15;
|
||||
this.labelControl5.Text = "分类2:";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(238)))), ((int)(((byte)(249)))));
|
||||
this.label1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft YaHei UI", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(108)))), ((int)(((byte)(206)))));
|
||||
this.label1.Location = new System.Drawing.Point(0, 336);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(361, 40);
|
||||
this.label1.TabIndex = 13;
|
||||
this.label1.Text = " 图片类别设置";
|
||||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// PageSelect_picEdit
|
||||
//
|
||||
this.PageSelect_picEdit.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.PageSelect_picEdit.Location = new System.Drawing.Point(0, 0);
|
||||
this.PageSelect_picEdit.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.PageSelect_picEdit.Name = "PageSelect_picEdit";
|
||||
this.PageSelect_picEdit.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
|
||||
this.PageSelect_picEdit.Properties.NullText = "点击选择图片";
|
||||
this.PageSelect_picEdit.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
|
||||
this.PageSelect_picEdit.Size = new System.Drawing.Size(361, 336);
|
||||
this.PageSelect_picEdit.TabIndex = 1;
|
||||
this.PageSelect_picEdit.Click += new System.EventHandler(this.OnPageSelectPicEdit_Click);
|
||||
//
|
||||
// page_add
|
||||
//
|
||||
this.page_add.Controls.Add(this.panel2);
|
||||
this.page_add.Controls.Add(this.label3);
|
||||
this.page_add.Controls.Add(this.PageAdd_picEdit);
|
||||
this.page_add.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.page_add.Name = "page_add";
|
||||
this.page_add.Size = new System.Drawing.Size(361, 591);
|
||||
this.page_add.Text = "图片新增";
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.BackColor = System.Drawing.Color.White;
|
||||
this.panel2.Controls.Add(this.PageAdd_Tag1);
|
||||
this.panel2.Controls.Add(this.PageAdd_btnClear);
|
||||
this.panel2.Controls.Add(this.PageAdd_Tag2);
|
||||
this.panel2.Controls.Add(this.labelControl2);
|
||||
this.panel2.Controls.Add(this.PageAdd_btnCheck);
|
||||
this.panel2.Controls.Add(this.labelControl3);
|
||||
this.panel2.Controls.Add(this.labelControl1);
|
||||
this.panel2.Controls.Add(this.PageAdd_Brief);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel2.Location = new System.Drawing.Point(0, 376);
|
||||
this.panel2.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(361, 215);
|
||||
this.panel2.TabIndex = 16;
|
||||
//
|
||||
// PageAdd_Tag1
|
||||
//
|
||||
this.PageAdd_Tag1.Location = new System.Drawing.Point(84, 12);
|
||||
this.PageAdd_Tag1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.PageAdd_Tag1.Name = "PageAdd_Tag1";
|
||||
this.PageAdd_Tag1.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F);
|
||||
this.PageAdd_Tag1.Properties.Appearance.Options.UseFont = true;
|
||||
this.PageAdd_Tag1.Size = new System.Drawing.Size(271, 30);
|
||||
this.PageAdd_Tag1.TabIndex = 2;
|
||||
//
|
||||
// PageAdd_btnClear
|
||||
//
|
||||
this.PageAdd_btnClear.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
|
||||
this.PageAdd_btnClear.Location = new System.Drawing.Point(227, 170);
|
||||
this.PageAdd_btnClear.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.PageAdd_btnClear.Name = "PageAdd_btnClear";
|
||||
this.PageAdd_btnClear.Size = new System.Drawing.Size(87, 38);
|
||||
this.PageAdd_btnClear.TabIndex = 8;
|
||||
this.PageAdd_btnClear.Text = "清空参数";
|
||||
this.PageAdd_btnClear.Click += new System.EventHandler(this.OnPageAddBtnClear_Click);
|
||||
//
|
||||
// PageAdd_Tag2
|
||||
//
|
||||
this.PageAdd_Tag2.Location = new System.Drawing.Point(83, 66);
|
||||
this.PageAdd_Tag2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.PageAdd_Tag2.Name = "PageAdd_Tag2";
|
||||
this.PageAdd_Tag2.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F);
|
||||
this.PageAdd_Tag2.Properties.Appearance.Options.UseFont = true;
|
||||
this.PageAdd_Tag2.Size = new System.Drawing.Size(272, 30);
|
||||
this.PageAdd_Tag2.TabIndex = 4;
|
||||
//
|
||||
// labelControl2
|
||||
//
|
||||
this.labelControl2.Appearance.Font = new System.Drawing.Font("Tahoma", 12F);
|
||||
this.labelControl2.Location = new System.Drawing.Point(11, 69);
|
||||
this.labelControl2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.labelControl2.Name = "labelControl2";
|
||||
this.labelControl2.Size = new System.Drawing.Size(58, 24);
|
||||
this.labelControl2.TabIndex = 3;
|
||||
this.labelControl2.Text = "分类2:";
|
||||
//
|
||||
// PageAdd_btnCheck
|
||||
//
|
||||
this.PageAdd_btnCheck.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
|
||||
this.PageAdd_btnCheck.Location = new System.Drawing.Point(45, 170);
|
||||
this.PageAdd_btnCheck.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.PageAdd_btnCheck.Name = "PageAdd_btnCheck";
|
||||
this.PageAdd_btnCheck.Size = new System.Drawing.Size(87, 38);
|
||||
this.PageAdd_btnCheck.TabIndex = 7;
|
||||
this.PageAdd_btnCheck.Text = "确认";
|
||||
this.PageAdd_btnCheck.Click += new System.EventHandler(this.OnPageAddBtnCheck_Click);
|
||||
//
|
||||
// labelControl3
|
||||
//
|
||||
this.labelControl3.Appearance.Font = new System.Drawing.Font("Tahoma", 12F);
|
||||
this.labelControl3.Location = new System.Drawing.Point(11, 120);
|
||||
this.labelControl3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.labelControl3.Name = "labelControl3";
|
||||
this.labelControl3.Size = new System.Drawing.Size(59, 24);
|
||||
this.labelControl3.TabIndex = 5;
|
||||
this.labelControl3.Text = "摘 要:";
|
||||
//
|
||||
// labelControl1
|
||||
//
|
||||
this.labelControl1.Appearance.Font = new System.Drawing.Font("Tahoma", 12F);
|
||||
this.labelControl1.Location = new System.Drawing.Point(11, 16);
|
||||
this.labelControl1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.labelControl1.Name = "labelControl1";
|
||||
this.labelControl1.Size = new System.Drawing.Size(58, 24);
|
||||
this.labelControl1.TabIndex = 1;
|
||||
this.labelControl1.Text = "分类1:";
|
||||
//
|
||||
// PageAdd_Brief
|
||||
//
|
||||
this.PageAdd_Brief.Location = new System.Drawing.Point(83, 118);
|
||||
this.PageAdd_Brief.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.PageAdd_Brief.Name = "PageAdd_Brief";
|
||||
this.PageAdd_Brief.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F);
|
||||
this.PageAdd_Brief.Properties.Appearance.Options.UseFont = true;
|
||||
this.PageAdd_Brief.Size = new System.Drawing.Size(273, 30);
|
||||
this.PageAdd_Brief.TabIndex = 6;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(238)))), ((int)(((byte)(249)))));
|
||||
this.label3.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.label3.Font = new System.Drawing.Font("Microsoft YaHei UI", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(108)))), ((int)(((byte)(206)))));
|
||||
this.label3.Location = new System.Drawing.Point(0, 336);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(361, 40);
|
||||
this.label3.TabIndex = 14;
|
||||
this.label3.Text = " 图片新增设置";
|
||||
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// PageAdd_picEdit
|
||||
//
|
||||
this.PageAdd_picEdit.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.PageAdd_picEdit.Location = new System.Drawing.Point(0, 0);
|
||||
this.PageAdd_picEdit.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.PageAdd_picEdit.Name = "PageAdd_picEdit";
|
||||
this.PageAdd_picEdit.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
|
||||
this.PageAdd_picEdit.Properties.NullText = "点击选择图片";
|
||||
this.PageAdd_picEdit.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
|
||||
this.PageAdd_picEdit.Size = new System.Drawing.Size(361, 336);
|
||||
this.PageAdd_picEdit.TabIndex = 0;
|
||||
this.PageAdd_picEdit.Click += new System.EventHandler(this.OnPageAddPicEdit_Click);
|
||||
//
|
||||
// lbTitle
|
||||
//
|
||||
this.lbTitle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(238)))), ((int)(((byte)(249)))));
|
||||
this.lbTitle.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.lbTitle.Font = new System.Drawing.Font("Microsoft YaHei UI", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lbTitle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(108)))), ((int)(((byte)(206)))));
|
||||
this.lbTitle.Location = new System.Drawing.Point(2, 2);
|
||||
this.lbTitle.Name = "lbTitle";
|
||||
this.lbTitle.Size = new System.Drawing.Size(368, 40);
|
||||
this.lbTitle.TabIndex = 6;
|
||||
this.lbTitle.Text = " 图片筛选及新增";
|
||||
this.lbTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// panelControl1
|
||||
//
|
||||
this.panelControl1.Controls.Add(this.panel_right);
|
||||
this.panelControl1.Controls.Add(this.labelRightToP);
|
||||
this.panelControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panelControl1.Location = new System.Drawing.Point(372, 0);
|
||||
this.panelControl1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.panelControl1.Name = "panelControl1";
|
||||
this.panelControl1.Size = new System.Drawing.Size(1097, 671);
|
||||
this.panelControl1.TabIndex = 4;
|
||||
//
|
||||
// panel_right
|
||||
//
|
||||
this.panel_right.AutoScroll = true;
|
||||
this.panel_right.BackColor = System.Drawing.Color.White;
|
||||
this.panel_right.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel_right.Location = new System.Drawing.Point(2, 42);
|
||||
this.panel_right.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.panel_right.Name = "panel_right";
|
||||
this.panel_right.Size = new System.Drawing.Size(1093, 627);
|
||||
this.panel_right.TabIndex = 8;
|
||||
//
|
||||
// labelRightToP
|
||||
//
|
||||
this.labelRightToP.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(238)))), ((int)(((byte)(249)))));
|
||||
this.labelRightToP.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.labelRightToP.Font = new System.Drawing.Font("Microsoft YaHei UI", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.labelRightToP.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(108)))), ((int)(((byte)(206)))));
|
||||
this.labelRightToP.Location = new System.Drawing.Point(2, 2);
|
||||
this.labelRightToP.Name = "labelRightToP";
|
||||
this.labelRightToP.Size = new System.Drawing.Size(1093, 40);
|
||||
this.labelRightToP.TabIndex = 7;
|
||||
this.labelRightToP.Text = " 返回结果";
|
||||
this.labelRightToP.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// FrmMain
|
||||
//
|
||||
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.Appearance.Options.UseBackColor = true;
|
||||
this.Appearance.Options.UseFont = true;
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.ClientSize = new System.Drawing.Size(1469, 671);
|
||||
this.Controls.Add(this.panelControl1);
|
||||
this.Controls.Add(this.panel_left);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "FrmMain";
|
||||
this.Text = "FrmMain";
|
||||
((System.ComponentModel.ISupportInitialize)(this.panel_left)).EndInit();
|
||||
this.panel_left.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit();
|
||||
this.xtraTabControl1.ResumeLayout(false);
|
||||
this.page_select.ResumeLayout(false);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PageSelect_tag1.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PageSelect_tag2.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PageSelect_picEdit.Properties)).EndInit();
|
||||
this.page_add.ResumeLayout(false);
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel2.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PageAdd_Tag1.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PageAdd_Tag2.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PageAdd_Brief.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PageAdd_picEdit.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
|
||||
this.panelControl1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.XtraEditors.PanelControl panel_left;
|
||||
private DevExpress.XtraEditors.PanelControl panelControl1;
|
||||
private DevExpress.XtraTab.XtraTabControl xtraTabControl1;
|
||||
private DevExpress.XtraTab.XtraTabPage page_select;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private DevExpress.XtraEditors.PictureEdit PageSelect_picEdit;
|
||||
private DevExpress.XtraTab.XtraTabPage page_add;
|
||||
private DevExpress.XtraEditors.PictureEdit PageAdd_picEdit;
|
||||
private System.Windows.Forms.Label lbTitle;
|
||||
private System.Windows.Forms.Panel panel_right;
|
||||
private System.Windows.Forms.Label labelRightToP;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private DevExpress.XtraEditors.TextEdit PageSelect_tag1;
|
||||
private DevExpress.XtraEditors.TextEdit PageSelect_tag2;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl6;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl5;
|
||||
private DevExpress.XtraEditors.TextEdit PageAdd_Tag1;
|
||||
private DevExpress.XtraEditors.SimpleButton PageAdd_btnClear;
|
||||
private DevExpress.XtraEditors.TextEdit PageAdd_Tag2;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl2;
|
||||
private DevExpress.XtraEditors.SimpleButton PageAdd_btnCheck;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl3;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl1;
|
||||
private DevExpress.XtraEditors.TextEdit PageAdd_Brief;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,559 @@
|
||||
using Baidu.Aip.ImageSearch;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Newtonsoft.Json;
|
||||
using DevExpress.XtraEditors.DXErrorProvider;
|
||||
using DevExpress.XtraEditors;
|
||||
using Lskj.Util;
|
||||
using Lskj.Core;
|
||||
using System.Data.SqlClient;
|
||||
using Lskj.Control.Model;
|
||||
using Lskj.Control;
|
||||
using Lskj.Business.Impl;
|
||||
using System.Drawing.Imaging;
|
||||
|
||||
|
||||
namespace Lskj.PictureComp
|
||||
{
|
||||
public partial class FrmMain : BaseForm
|
||||
{
|
||||
public FrmMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
Add_TextProvider.ValidationMode = ValidationMode.Auto;
|
||||
SetRequired(Add_TextProvider, PageAdd_Tag1, PageAdd_Tag2, PageAdd_Brief, PageAdd_picEdit);
|
||||
}
|
||||
#region 公有变量
|
||||
/// <summary>
|
||||
/// 选择文件
|
||||
/// </summary>
|
||||
public OpenFileDialog FileDialog;
|
||||
/// <summary>
|
||||
/// 右侧panel宽度
|
||||
/// </summary>
|
||||
int panleWidth;
|
||||
/// <summary>
|
||||
/// 构造文本填写约束
|
||||
/// </summary>
|
||||
DXValidationProvider Add_TextProvider = new DXValidationProvider();
|
||||
|
||||
/// <summary>
|
||||
/// 接口连接
|
||||
/// </summary>
|
||||
public ImageSearch client;
|
||||
#endregion
|
||||
#region 事件
|
||||
#region 窗体加载时
|
||||
/// <summary>
|
||||
/// <para>说明:窗体加载时</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2021-06-15 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (DBConfig.Instance.CreateConnection())
|
||||
{
|
||||
DataTable systemTab = SqlHelper.ExecuteDataTable("select * from p_systemtab");
|
||||
DataRow dataRow = systemTab != null && systemTab.Rows.Count > 0 ? systemTab.Rows[0] : null;
|
||||
string imageSearchApiKey = dataRow.Table.Columns.Contains("imageSearchApiKey") ? dataRow["imageSearchApiKey"] + "" : "";
|
||||
string imageSearchSecretKey = dataRow.Table.Columns.Contains("imageSearchSecretKey") ? dataRow["imageSearchSecretKey"] + "" : "";
|
||||
client = new Baidu.Aip.ImageSearch.ImageSearch(imageSearchApiKey, imageSearchSecretKey);
|
||||
if (!BaseImpl.HasExistsTable("p_PictureComptab"))
|
||||
{
|
||||
CreationPictureTable();
|
||||
this.panel_right.HorizontalScroll.Visible = false;//设置禁止水平滚动条
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageUtil.Show("数据初始化失败!");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
finally
|
||||
{
|
||||
Lskj.Control.Model.AutoSizeChange.ControllInitializeSize(this);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region 添加窗口图片点击事件
|
||||
/// <summary>
|
||||
/// <para>说明:添加窗口图片点击事件</para>
|
||||
/// <para>创建人:唐德馨</para>
|
||||
/// <para>创建日期:2021-07-19 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void OnPageAddPicEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
PageAdd_picEdit.Image = null;
|
||||
PageAdd_Tag1.Text = null;
|
||||
PageAdd_Tag2.Text = null;
|
||||
PageAdd_Brief.Text = null;
|
||||
panel_right.Controls.Clear();
|
||||
labelRightToP.Text = "返回结果";
|
||||
try
|
||||
{
|
||||
FileDialog = new OpenFileDialog();
|
||||
FileDialog.Filter = "Picture(*.jpg,*.png,*.jpeg,*.bmp,*.gif)|*.jpg;*.png;*.jpeg;*.bmp|All files(*.*)|*.*";
|
||||
if (FileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
Image image = Image.FromFile(FileDialog.FileName);
|
||||
Bitmap bm = new Bitmap(image, PageAdd_picEdit.Width, PageAdd_picEdit.Height);
|
||||
this.PageAdd_picEdit.Image = bm;
|
||||
image.Dispose();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
DevExpress.XtraEditors.LabelControl lable_ShowResult = new DevExpress.XtraEditors.LabelControl();
|
||||
lable_ShowResult.Parent = panel_right;
|
||||
lable_ShowResult.Text = ex.ToString();
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
//MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region 添加窗口确认按钮点击事件
|
||||
/// <summary>
|
||||
/// <para>说明:添加窗口确认按钮点击事件</para>
|
||||
/// <para>创建人:唐德馨</para>
|
||||
/// <para>创建日期:2021-07-19 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void OnPageAddBtnCheck_Click(object sender, EventArgs e)
|
||||
{
|
||||
WaitForm.ShowForm();
|
||||
try
|
||||
{
|
||||
if (Add_TextProvider.Validate())
|
||||
{
|
||||
var image = File.ReadAllBytes(FileDialog.FileName);
|
||||
var options = new Dictionary<string, object>();
|
||||
options.Add("brief", PageAdd_Brief.Text);
|
||||
options.Add("tags", string.Format("{0},{1}", PageAdd_Tag1.Text, PageAdd_Tag2.Text));
|
||||
JObject result = client.SimilarAdd(image, options);
|
||||
if (result.ContainsKey("error_code"))
|
||||
{
|
||||
switch (result["error_code"].ToString())
|
||||
{
|
||||
case "216681":
|
||||
CreateErrorForm("添加失败!", global::Lskj.PictureComp.Properties.Resources.ErrorImg, "完全相同的图片不能重复入库!");
|
||||
break;
|
||||
case "216202":
|
||||
CreateErrorForm("添加失败!", global::Lskj.PictureComp.Properties.Resources.ErrorImg, "上传的图片大小错误,请重新上传图片!");
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string insertField = "pic_contsign,pic_brief,pic_tag1,pic_tag2,picture";
|
||||
string insertValues = string.Format("'{0}','{1}','{2}','{3}',@Picture", result["cont_sign"].ToString(), PageAdd_Brief.Text, PageAdd_Tag1.Text, PageAdd_Tag2.Text);
|
||||
FileStream fs = new FileStream(FileDialog.FileName, FileMode.Open);
|
||||
BinaryReader br = new BinaryReader(fs);
|
||||
Byte[] byData = br.ReadBytes((int)fs.Length);
|
||||
fs.Close();
|
||||
SqlParameter[] cmdParams = new SqlParameter[]
|
||||
{
|
||||
new SqlParameter("@Picture",SqlDbType.Binary,byData.Length),
|
||||
};
|
||||
cmdParams[0].Value = byData;
|
||||
SqlHelper.ExecuteNonQuery(CommandType.Text, string.Format("insert into p_PictureComptab ({0}) values ({1})", insertField, insertValues), cmdParams);
|
||||
|
||||
CreateErrorForm("添加成功!", global::Lskj.PictureComp.Properties.Resources.RightImg);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
CreateErrorForm("添加失败!", global::Lskj.PictureComp.Properties.Resources.ErrorImg);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
//MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
WaitForm.HideForm();
|
||||
}
|
||||
#endregion
|
||||
#region 添加窗口清除按钮点击事件
|
||||
/// <summary>
|
||||
/// <para>说明:添加窗口清除按钮点击事件</para>
|
||||
/// <para>创建人:唐德馨</para>
|
||||
/// <para>创建日期:2021-07-19 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void OnPageAddBtnClear_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
PageAdd_picEdit.Image = null;
|
||||
PageAdd_Tag1.Text = null;
|
||||
PageAdd_Tag2.Text = null;
|
||||
PageAdd_Brief.Text = null;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region 搜索窗口图片点击事件
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:搜索窗口图片点击事件</para>
|
||||
/// <para>创建人:唐德馨</para>
|
||||
/// <para>创建日期:2021-07-19 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void OnPageSelectPicEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
panleWidth = this.panel_right.Width;//获取panel宽度
|
||||
FileDialog = new OpenFileDialog();
|
||||
FileDialog.Filter = "Picture(*.jpg,*.png,*.jpeg,*.bmp,*.gif)|*.jpg;*.png;*.jpeg;*.bmp|All files(*.*)|*.*";
|
||||
if (FileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
PageSelect_picEdit.Image = null;
|
||||
panel_right.Controls.Clear();
|
||||
Image image = Image.FromFile(FileDialog.FileName);
|
||||
Bitmap bitmap_File = new Bitmap(image, PageSelect_picEdit.Width, PageSelect_picEdit.Height);
|
||||
this.PageSelect_picEdit.Image = bitmap_File;
|
||||
image.Dispose();
|
||||
WaitForm.ShowForm();
|
||||
try
|
||||
{
|
||||
byte[] image_read = File.ReadAllBytes(FileDialog.FileName);
|
||||
Dictionary<string, object> options = new Dictionary<string, object>();
|
||||
JObject result;
|
||||
if (PageSelect_tag1.Text != "" && PageSelect_tag2.Text != "")
|
||||
{
|
||||
options.Add("tags", string.Format("{0},{1}", PageSelect_tag1.Text, PageSelect_tag2.Text));
|
||||
options.Add("tag_logic", "0");
|
||||
result = client.SimilarSearch(image_read, options);
|
||||
}
|
||||
else
|
||||
{
|
||||
result = client.SimilarSearch(image_read);
|
||||
}
|
||||
List<object> result_list = result["result"].ToList<object>();
|
||||
if (result_list.Count > 10)
|
||||
{
|
||||
result_list.RemoveRange(10, result_list.Count - 10);
|
||||
}
|
||||
List<string> col_list = new List<string>() { "brief", "score", "cont_sign" };
|
||||
DataTable table = new DataTable();//转换结果数据为datatable
|
||||
table.Columns.Add("brief", typeof(string));
|
||||
table.Columns.Add("score", typeof(double));
|
||||
table.Columns.Add("cont_sign", typeof(string));
|
||||
foreach (JObject resultRow in result_list)
|
||||
{
|
||||
DataRow row = table.NewRow();
|
||||
row["brief"] = (string)resultRow["brief"];
|
||||
row["score"] = (double)resultRow["score"];
|
||||
row["cont_sign"] = (string)resultRow["cont_sign"];
|
||||
table.Rows.Add(row);
|
||||
}
|
||||
string selectValue = "";
|
||||
if (result_list.Count <= 10)
|
||||
{
|
||||
for (int i = 0; i < result_list.Count; i++)
|
||||
{
|
||||
selectValue += "'" + (result_list[i] as JObject)["cont_sign"].ToString() + "'" + ',';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
selectValue += "'" + (result_list[i] as JObject)["cont_sign"].ToString() + "'" + ',';
|
||||
}
|
||||
}
|
||||
DataTable selectTable = SqlHelper.ExecuteDataTable(string.Format("select * from p_PictureComptab where pic_contsign in ({0})", selectValue.TrimEnd(',')));
|
||||
Color checkImageColor = GetImageAverageColor(bitmap_File);//获取当前选择图片的主颜色
|
||||
foreach (DataRow tableRow in table.Rows)
|
||||
{
|
||||
DataRow[] rows = selectTable.Select(string.Format("pic_contsign = '{0}'", tableRow["cont_sign"].ToString()));
|
||||
if (rows.Length > 0)
|
||||
{
|
||||
MemoryStream memoryStream = new MemoryStream(rows[0]["picture"] as byte[]);
|
||||
Image _Image = Image.FromStream(memoryStream);
|
||||
Bitmap bitmap_read = new Bitmap(_Image);
|
||||
Color ImageColor = GetImageAverageColor(bitmap_read);
|
||||
double colorComp = 1 - getColorComp(checkImageColor, ImageColor) / (double)(Math.Sqrt(255 * 255 * 3)) + 0.01;
|
||||
tableRow["score"] = (double)tableRow["score"] + colorComp;
|
||||
}
|
||||
}
|
||||
DataView dv = table.DefaultView;
|
||||
dv.Sort = "score DESC";
|
||||
table = dv.ToTable();
|
||||
int left = 10;
|
||||
int top = 5;
|
||||
int num = 1;
|
||||
foreach (DataRow row in table.Rows)
|
||||
{
|
||||
DataRow[] rows = selectTable.Select(string.Format("pic_contsign = '{0}'", row["cont_sign"].ToString()));
|
||||
if (rows.Length > 0)
|
||||
{
|
||||
control_ShowPic control_ShowPic = new control_ShowPic();
|
||||
control_ShowPic.textEdit_sign.Text = row["cont_sign"].ToString();
|
||||
control_ShowPic.textEdit_brief.Text = row["brief"].ToString();
|
||||
control_ShowPic.textEdit_score.Text = num.ToString();//((decimal)item["score"]).ToString("0.##%");
|
||||
control_ShowPic.textEdit_class1.Text = rows[0]["pic_tag1"].ToString();
|
||||
control_ShowPic.textEdit_class2.Text = rows[0]["pic_tag2"].ToString();
|
||||
control_ShowPic.picName = control_ShowPic.textEdit_brief.Text;
|
||||
control_ShowPic.pic_show.Tag = rows[0]["picture"];
|
||||
MemoryStream memoryStream = new MemoryStream(rows[0]["picture"] as byte[]);
|
||||
Image _Image = Image.FromStream(memoryStream);
|
||||
Bitmap bitmap_read = new Bitmap(_Image, control_ShowPic.pic_show.Width, control_ShowPic.pic_show.Height);
|
||||
control_ShowPic.picShowClickEventHandler picShowClickEvent = null;
|
||||
picShowClickEvent += new control_ShowPic.picShowClickEventHandler(createPictureForm);
|
||||
control_ShowPic.SetClickEvent(picShowClickEvent);
|
||||
_Image.Dispose();
|
||||
control_ShowPic.pic_show.Image = bitmap_read;
|
||||
if (left + control_ShowPic.Width > panleWidth)
|
||||
{
|
||||
top += control_ShowPic.Height;
|
||||
left = 10;
|
||||
}
|
||||
if (left == 10)
|
||||
{
|
||||
control_ShowPic.Left = left;
|
||||
control_ShowPic.Top = top;
|
||||
panel_right.Controls.Add(control_ShowPic);
|
||||
left += control_ShowPic.Width + 10;
|
||||
}
|
||||
else
|
||||
{
|
||||
control_ShowPic.Top = top;
|
||||
control_ShowPic.Left = left;
|
||||
panel_right.Controls.Add(control_ShowPic);
|
||||
left += control_ShowPic.Width + 10;
|
||||
}
|
||||
num++;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
CreateErrorForm("搜索失败!", global::Lskj.PictureComp.Properties.Resources.ErrorImg);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
//MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
finally
|
||||
{
|
||||
WaitForm.HideForm();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion\
|
||||
#endregion
|
||||
#region 方法
|
||||
#region 判断数据库中是否存在表
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:判断数据库中是否存在默认消息记录表</para>
|
||||
/// <para>创建人:唐德馨</para>
|
||||
/// <para>创建日期:2021-07-19 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns>DataTable.</returns>
|
||||
public static void CreationPictureTable()
|
||||
{
|
||||
string sqlValue = string.Format(@"Create Table p_PictureComptab -- 图片筛选表
|
||||
(
|
||||
pic_contsign varchar(50) NOT NULL primary key,
|
||||
pic_brief varchar(50) NOT NULL,
|
||||
pic_tag1 int NULL,
|
||||
pic_tag2 int NULL,
|
||||
picture image NULL,
|
||||
)");
|
||||
SqlHelper.ExecuteNonQuery(sqlValue);
|
||||
}
|
||||
#endregion
|
||||
#region 添加文本框填写规则
|
||||
/// <summary>
|
||||
/// 添加文本框填写规则
|
||||
/// </summary>
|
||||
/// <param name="validationProvider"></param>
|
||||
/// <param name="param"></param>
|
||||
public static void SetRequired(DXValidationProvider validationProvider, params BaseEdit[] param)
|
||||
{
|
||||
//实例化一个必填规则,错误提示为:该字段不能为空
|
||||
ConditionValidationRule required = new ConditionValidationRule("RequiredRule", ConditionOperator.IsNotBlank) { ErrorText = "该字段不能为空" };
|
||||
for (int i = 0; i < param.Length; i++)
|
||||
{
|
||||
//给控件对象设置规则
|
||||
validationProvider.SetValidationRule(param[i], required);
|
||||
//设置文本显示位置
|
||||
validationProvider.SetIconAlignment(param[i], ErrorIconAlignment.MiddleRight);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
#region 右侧panel创建正确或错误时的控件
|
||||
public void CreateErrorForm(string text, Image image, string errorText = "")
|
||||
{
|
||||
panel_right.Controls.Clear();
|
||||
ErrorForm errorForm = new ErrorForm();
|
||||
errorForm.buttonError.BackgroundImage = image;
|
||||
//global::Lskj.PictureComp.Properties.Resources.ErrorImg;
|
||||
errorForm.errorLable.Text = text;
|
||||
panel_right.Controls.Add(errorForm);
|
||||
errorForm.Location = new Point((panel_right.Width - errorForm.Width) / 2, (panel_right.Height - errorForm.Height) / 2);
|
||||
Label label = new Label();
|
||||
label.Text = errorText;
|
||||
label.Font = errorForm.errorLable.Font;
|
||||
label.TextAlign = ContentAlignment.MiddleCenter;
|
||||
label.AutoSize = true;
|
||||
panel_right.Controls.Add(label);
|
||||
label.Location = new Point((panel_right.Width - label.Width) / 2, (panel_right.Height - errorForm.Height) / 2 + errorForm.Height);
|
||||
}
|
||||
#endregion
|
||||
#region 图片点击放大方法
|
||||
/// <summary>
|
||||
/// <para>说明:图片点击放大方法</para>
|
||||
/// <para>创建人:唐德馨</para>
|
||||
/// <para>创建日期:2021-07-19 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns>DataTable.</returns>
|
||||
public void createPictureForm(string name, byte[] Byte)
|
||||
{
|
||||
Form Form = new Form();
|
||||
Form.Text = name;
|
||||
Form.Width = 600;
|
||||
Form.Height = 600;
|
||||
//Form.FormBorderStyle = FormBorderStyle.None;
|
||||
Form.StartPosition = FormStartPosition.CenterScreen;
|
||||
DevExpress.XtraEditors.PictureEdit picEdit = new DevExpress.XtraEditors.PictureEdit();
|
||||
picEdit.Dock = DockStyle.Fill;
|
||||
MemoryStream memoryStream = new MemoryStream(Byte);
|
||||
Image _Image = Image.FromStream(memoryStream);
|
||||
Bitmap bitmap_read = new Bitmap(_Image, Form.Width, Form.Height);
|
||||
_Image.Dispose();
|
||||
picEdit.Image = bitmap_read;
|
||||
Form.Controls.Add(picEdit);
|
||||
Form.ShowDialog();
|
||||
//picEdit.Click += OnPicEditClick;
|
||||
}
|
||||
#endregion
|
||||
#region 获取图片主颜色
|
||||
/// <summary>
|
||||
/// <para>说明:获取图片主颜色</para>
|
||||
/// <para>创建人:唐德馨</para>
|
||||
/// <para>创建日期:2021-07-19 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns>DataTable.</returns>
|
||||
public static unsafe Color GetImageAverageColor(Bitmap bitmap)
|
||||
{
|
||||
if (bitmap == null)
|
||||
{
|
||||
throw new ArgumentNullException("bitmap");
|
||||
}
|
||||
|
||||
int width = bitmap.Width;
|
||||
int height = bitmap.Height;
|
||||
Rectangle rect = new Rectangle(0, 0, width, height);
|
||||
|
||||
try
|
||||
{
|
||||
BitmapData bitmapData = bitmap.LockBits(
|
||||
rect, ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb);
|
||||
byte* scan0 = (byte*)bitmapData.Scan0;
|
||||
int strideOffset = bitmapData.Stride - bitmapData.Width * 4;
|
||||
|
||||
int sum = width * height;
|
||||
|
||||
int a = 0;
|
||||
int r = 0;
|
||||
int g = 0;
|
||||
int b = 0;
|
||||
|
||||
for (int i = 0; i < height; i++)
|
||||
{
|
||||
for (int j = 0; j < width; j++)
|
||||
{
|
||||
b += *scan0++;
|
||||
g += *scan0++;
|
||||
r += *scan0++;
|
||||
a += *scan0++;
|
||||
}
|
||||
scan0 += strideOffset;
|
||||
}
|
||||
|
||||
bitmap.UnlockBits(bitmapData);
|
||||
|
||||
a /= sum;
|
||||
r /= sum;
|
||||
g /= sum;
|
||||
b /= sum;
|
||||
|
||||
return Color.FromArgb(255, r, g, b);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return Color.FromArgb(127, 127, 127);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region 获取两张图片主颜色相似度
|
||||
/// <summary>
|
||||
/// <para>说明:获取两张图片主颜色相似度</para>
|
||||
/// <para>创建人:唐德馨</para>
|
||||
/// <para>创建日期:2021-07-19 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
public double getColorComp(Color a, Color b)
|
||||
{
|
||||
double result = Math.Sqrt((a.R - b.R) * (a.R - b.R) + (a.G - b.G) * (a.G - b.G) + (a.B - b.B) * (a.B - b.B));
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,156 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{520E790F-C59B-4AF6-B63C-7EA33CF6F7D9}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Lskj.PictureComp</RootNamespace>
|
||||
<AssemblyName>Lskj.PictureComp</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\Debug\Lib\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>3</WarningLevel>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<DocumentationFile>..\..\Debug\AllMethodXml\Lskj.PictureComp.XML</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<StartupObject />
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="AipSdk">
|
||||
<HintPath>C:\Users\粟小喵\Desktop\aip-csharp-sdk-3.6.7\net40\AipSdk.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.BonusSkins.v15.2" />
|
||||
<Reference Include="DevExpress.Data.v15.2" />
|
||||
<Reference Include="DevExpress.Utils.v15.2" />
|
||||
<Reference Include="DevExpress.Sparkline.v15.2.Core" />
|
||||
<Reference Include="DevExpress.XtraEditors.v15.2" />
|
||||
<Reference Include="Lskj.Control">
|
||||
<HintPath>D:\lserp_cs_6.0\Debug\Lib\Lskj.Control.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Lskj.Core">
|
||||
<HintPath>E:\lserp\lserp_cs_6.0\Debug\Lib\Lskj.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Lskj.Util">
|
||||
<HintPath>E:\lserp\lserp_cs_6.0\Debug\Lib\Lskj.Util.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.QualityTools.Testing.Fakes, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
|
||||
<Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\引用DLL\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Net" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="ErrorForm.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ErrorForm.Designer.cs">
|
||||
<DependentUpon>ErrorForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmMain.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmMain.Designer.cs">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="control_ShowPic.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="control_ShowPic.Designer.cs">
|
||||
<DependentUpon>control_ShowPic.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DllBaseClass.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="control_ShowPic.resx">
|
||||
<DependentUpon>control_ShowPic.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="ErrorForm.resx">
|
||||
<DependentUpon>ErrorForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmMain.resx">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\licenses.licx" />
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="app.config" />
|
||||
<Fakes Include="Fakes\AipSdk.fakes" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Lskj.Business\Lskj.Business.csproj">
|
||||
<Project>{7eafccc2-a18f-49e9-85c6-a984966cfd01}</Project>
|
||||
<Name>Lskj.Business</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Model\Lskj.Model.csproj">
|
||||
<Project>{52bc40e0-c0c6-4f78-996b-cae028d209ca}</Project>
|
||||
<Name>Lskj.Model</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
<None Include="Resources\ErrorImg.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\RightImg.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Lskj.PictureComp")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Lskj.PictureComp")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2013")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("9006f149-aa49-4b8e-ba69-386d945fa738")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,83 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Lskj.PictureComp.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 一个强类型的资源类,用于查找本地化的字符串等。
|
||||
/// </summary>
|
||||
// 此类是由 StronglyTypedResourceBuilder
|
||||
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||
// (以 /str 作为命令选项),或重新生成 VS 项目。
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回此类使用的缓存的 ResourceManager 实例。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lskj.PictureComp.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 使用此强类型资源类,为所有资源查找
|
||||
/// 重写当前线程的 CurrentUICulture 属性。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap ErrorImg {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("ErrorImg", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap RightImg {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("RightImg", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
<?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>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="ErrorImg" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ErrorImg.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="RightImg" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\RightImg.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Lskj.PictureComp.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 5.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.2 KiB |
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /></startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="NPOI" publicKeyToken="0df73ec7942b34e1" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.1.3.1" newVersion="2.1.3.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
+189
@@ -0,0 +1,189 @@
|
||||
namespace Lskj.PictureComp
|
||||
{
|
||||
partial class control_ShowPic
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.pic_show = new DevExpress.XtraEditors.PictureEdit();
|
||||
this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.textEdit_sign = new DevExpress.XtraEditors.TextEdit();
|
||||
this.labelControl2 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.textEdit_class1 = new DevExpress.XtraEditors.TextEdit();
|
||||
this.labelControl3 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.textEdit_class2 = new DevExpress.XtraEditors.TextEdit();
|
||||
this.labelControl4 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.textEdit_brief = new DevExpress.XtraEditors.TextEdit();
|
||||
this.labelControl5 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.textEdit_score = new DevExpress.XtraEditors.TextEdit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pic_show.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.textEdit_sign.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.textEdit_class1.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.textEdit_class2.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.textEdit_brief.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.textEdit_score.Properties)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pic_show
|
||||
//
|
||||
this.pic_show.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.pic_show.Location = new System.Drawing.Point(5, 5);
|
||||
this.pic_show.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.pic_show.Name = "pic_show";
|
||||
this.pic_show.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
|
||||
this.pic_show.Size = new System.Drawing.Size(263, 234);
|
||||
this.pic_show.TabIndex = 0;
|
||||
this.pic_show.Click += new System.EventHandler(this.pic_show_Click);
|
||||
//
|
||||
// labelControl1
|
||||
//
|
||||
this.labelControl1.Location = new System.Drawing.Point(5, 248);
|
||||
this.labelControl1.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.labelControl1.Name = "labelControl1";
|
||||
this.labelControl1.Size = new System.Drawing.Size(75, 18);
|
||||
this.labelControl1.TabIndex = 1;
|
||||
this.labelControl1.Text = "图片签名:";
|
||||
//
|
||||
// textEdit_sign
|
||||
//
|
||||
this.textEdit_sign.Location = new System.Drawing.Point(93, 246);
|
||||
this.textEdit_sign.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.textEdit_sign.Name = "textEdit_sign";
|
||||
this.textEdit_sign.Size = new System.Drawing.Size(175, 24);
|
||||
this.textEdit_sign.TabIndex = 2;
|
||||
//
|
||||
// labelControl2
|
||||
//
|
||||
this.labelControl2.Location = new System.Drawing.Point(5, 282);
|
||||
this.labelControl2.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.labelControl2.Name = "labelControl2";
|
||||
this.labelControl2.Size = new System.Drawing.Size(45, 18);
|
||||
this.labelControl2.TabIndex = 3;
|
||||
this.labelControl2.Text = "分类:";
|
||||
//
|
||||
// textEdit_class1
|
||||
//
|
||||
this.textEdit_class1.Location = new System.Drawing.Point(61, 279);
|
||||
this.textEdit_class1.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.textEdit_class1.Name = "textEdit_class1";
|
||||
this.textEdit_class1.Size = new System.Drawing.Size(67, 24);
|
||||
this.textEdit_class1.TabIndex = 4;
|
||||
//
|
||||
// labelControl3
|
||||
//
|
||||
this.labelControl3.Location = new System.Drawing.Point(136, 282);
|
||||
this.labelControl3.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.labelControl3.Name = "labelControl3";
|
||||
this.labelControl3.Size = new System.Drawing.Size(45, 18);
|
||||
this.labelControl3.TabIndex = 5;
|
||||
this.labelControl3.Text = "分类:";
|
||||
//
|
||||
// textEdit_class2
|
||||
//
|
||||
this.textEdit_class2.Location = new System.Drawing.Point(192, 279);
|
||||
this.textEdit_class2.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.textEdit_class2.Name = "textEdit_class2";
|
||||
this.textEdit_class2.Size = new System.Drawing.Size(76, 24);
|
||||
this.textEdit_class2.TabIndex = 6;
|
||||
//
|
||||
// labelControl4
|
||||
//
|
||||
this.labelControl4.Location = new System.Drawing.Point(5, 315);
|
||||
this.labelControl4.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.labelControl4.Name = "labelControl4";
|
||||
this.labelControl4.Size = new System.Drawing.Size(45, 18);
|
||||
this.labelControl4.TabIndex = 7;
|
||||
this.labelControl4.Text = "摘要:";
|
||||
//
|
||||
// textEdit_brief
|
||||
//
|
||||
this.textEdit_brief.Location = new System.Drawing.Point(61, 311);
|
||||
this.textEdit_brief.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.textEdit_brief.Name = "textEdit_brief";
|
||||
this.textEdit_brief.Size = new System.Drawing.Size(207, 24);
|
||||
this.textEdit_brief.TabIndex = 8;
|
||||
//
|
||||
// labelControl5
|
||||
//
|
||||
this.labelControl5.Location = new System.Drawing.Point(5, 348);
|
||||
this.labelControl5.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.labelControl5.Name = "labelControl5";
|
||||
this.labelControl5.Size = new System.Drawing.Size(75, 18);
|
||||
this.labelControl5.TabIndex = 9;
|
||||
this.labelControl5.Text = "相似排名:";
|
||||
//
|
||||
// textEdit_score
|
||||
//
|
||||
this.textEdit_score.Location = new System.Drawing.Point(77, 344);
|
||||
this.textEdit_score.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.textEdit_score.Name = "textEdit_score";
|
||||
this.textEdit_score.Size = new System.Drawing.Size(191, 24);
|
||||
this.textEdit_score.TabIndex = 10;
|
||||
//
|
||||
// control_ShowPic
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.Controls.Add(this.textEdit_score);
|
||||
this.Controls.Add(this.labelControl5);
|
||||
this.Controls.Add(this.textEdit_brief);
|
||||
this.Controls.Add(this.labelControl4);
|
||||
this.Controls.Add(this.textEdit_class2);
|
||||
this.Controls.Add(this.labelControl3);
|
||||
this.Controls.Add(this.textEdit_class1);
|
||||
this.Controls.Add(this.labelControl2);
|
||||
this.Controls.Add(this.textEdit_sign);
|
||||
this.Controls.Add(this.labelControl1);
|
||||
this.Controls.Add(this.pic_show);
|
||||
this.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.Name = "control_ShowPic";
|
||||
this.Size = new System.Drawing.Size(272, 380);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pic_show.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.textEdit_sign.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.textEdit_class1.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.textEdit_class2.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.textEdit_brief.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.textEdit_score.Properties)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.XtraEditors.LabelControl labelControl1;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl2;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl3;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl4;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl5;
|
||||
public DevExpress.XtraEditors.PictureEdit pic_show;
|
||||
public DevExpress.XtraEditors.TextEdit textEdit_sign;
|
||||
public DevExpress.XtraEditors.TextEdit textEdit_class1;
|
||||
public DevExpress.XtraEditors.TextEdit textEdit_class2;
|
||||
public DevExpress.XtraEditors.TextEdit textEdit_brief;
|
||||
public DevExpress.XtraEditors.TextEdit textEdit_score;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.IO;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
|
||||
namespace Lskj.PictureComp
|
||||
{
|
||||
public partial class control_ShowPic : UserControl
|
||||
{
|
||||
public string picName;
|
||||
private picShowClickEventHandler picShowClick;
|
||||
public delegate void picShowClickEventHandler(string name, byte[] Byte);
|
||||
public control_ShowPic()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.textEdit_sign.Properties.ReadOnly = true;
|
||||
this.textEdit_class1.Properties.ReadOnly = true;
|
||||
this.textEdit_class2.Properties.ReadOnly = true;
|
||||
this.textEdit_score.Properties.ReadOnly = true;
|
||||
this.textEdit_brief.Properties.ReadOnly = true;
|
||||
this.pic_show.Properties.ReadOnly = true;
|
||||
}
|
||||
|
||||
public void SetClickEvent(picShowClickEventHandler clickEvent)
|
||||
{
|
||||
this.picShowClick = clickEvent;
|
||||
}
|
||||
private void pic_show_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
DevExpress.XtraEditors.PictureEdit picEdit = (DevExpress.XtraEditors.PictureEdit)sender;
|
||||
picShowClick(picName, picEdit.Tag as byte[]);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
namespace PictureComp
|
||||
{
|
||||
partial class control_Text
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.lable_sign = new DevExpress.XtraEditors.LabelControl();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// lable_sign
|
||||
//
|
||||
this.lable_sign.Location = new System.Drawing.Point(3, 30);
|
||||
this.lable_sign.Name = "lable_sign";
|
||||
this.lable_sign.Size = new System.Drawing.Size(70, 14);
|
||||
this.lable_sign.TabIndex = 0;
|
||||
this.lable_sign.Text = "labelControl1";
|
||||
//
|
||||
// control_Text
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.lable_sign);
|
||||
this.Name = "control_Text";
|
||||
this.Size = new System.Drawing.Size(149, 106);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.XtraEditors.LabelControl lable_sign;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace PictureComp
|
||||
{
|
||||
public partial class control_Text : UserControl
|
||||
{
|
||||
public control_Text()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
Reference in New Issue
Block a user