#总装移交版本

This commit is contained in:
HM-CN\zhengxuan.zhang
2025-03-07 11:44:37 +08:00
commit 8cf3fb42d6
654 changed files with 773421 additions and 0 deletions
+140
View File
@@ -0,0 +1,140 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{128F6EA4-E5B5-4B32-8A4F-BD820B83398F}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>UserControlClass</RootNamespace>
<AssemblyName>UserControlClass</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="Telerik.WinControls, Version=2018.3.1016.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e" />
<Reference Include="Telerik.WinControls.UI, Version=2018.3.1016.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL" />
<Reference Include="TelerikCommon, Version=2018.3.1016.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e" />
</ItemGroup>
<ItemGroup>
<Compile Include="LabPictureControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="LabPictureControl.designer.cs">
<DependentUpon>LabPictureControl.cs</DependentUpon>
</Compile>
<Compile Include="Lamp.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Lamp.Designer.cs">
<DependentUpon>Lamp.cs</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="UCFixedStorage.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="UCFixedStorage.Designer.cs">
<DependentUpon>UCFixedStorage.cs</DependentUpon>
</Compile>
<Compile Include="UCMeasureTask.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="UCMeasureTask.Designer.cs">
<DependentUpon>UCMeasureTask.cs</DependentUpon>
</Compile>
<Compile Include="UCVWNextSense.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="UCVWNextSense.Designer.cs">
<DependentUpon>UCVWNextSense.cs</DependentUpon>
</Compile>
<Compile Include="UCNextSenseOneItem.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="UCNextSenseOneItem.Designer.cs">
<DependentUpon>UCNextSenseOneItem.cs</DependentUpon>
</Compile>
<Compile Include="UCNextSense.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="UCNextSense.Designer.cs">
<DependentUpon>UCNextSense.cs</DependentUpon>
</Compile>
<Compile Include="UCUnloadTask.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="UCUnloadTask.Designer.cs">
<DependentUpon>UCUnloadTask.cs</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="LabPictureControl.resx">
<DependentUpon>LabPictureControl.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Lamp.resx">
<DependentUpon>Lamp.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\licenses.licx" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="UCFixedStorage.resx">
<DependentUpon>UCFixedStorage.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UCMeasureTask.resx">
<DependentUpon>UCMeasureTask.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UCVWNextSense.resx">
<DependentUpon>UCVWNextSense.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UCNextSenseOneItem.resx">
<DependentUpon>UCNextSenseOneItem.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UCNextSense.resx">
<DependentUpon>UCNextSense.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UCUnloadTask.resx">
<DependentUpon>UCUnloadTask.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="Resources\3011OK.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
+82
View File
@@ -0,0 +1,82 @@
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 UserControlClass
{
public partial class LabPictureControl : UserControl
{
public LabPictureControl()
{
InitializeComponent();
}
/// <summary>
/// 添加LabelText属性,可以对labelText进行设置
/// </summary>
public string LabelText
{
get { return labText.Text; }
set { labText.Text = value; }
}
/// <summary>
/// 上面Label的图片图片连接
/// </summary>
public Image LabelTopImage
{
get { return labPicture.Image; }
set { labPicture.Image = value; }
}
/// <summary>
/// 文字位置坐标
/// </summary>
public Point LabelPoint
{
get { return labText.Location; }
set { labText.Location = value; }
}
private void labPicture_MouseHover(object sender, EventArgs e)
{
LabPictureControl lpc = (LabPictureControl)(sender as Label).Parent;
lpc.BackColor = Color.FromArgb(0, 151, 186);
}
private void labPicture_MouseLeave(object sender, EventArgs e)
{
LabPictureControl lpc = (LabPictureControl)(sender as Label).Parent;
lpc.BackColor = Color.FromArgb(19, 46, 53);
}
private void labText_MouseHover(object sender, EventArgs e)
{
LabPictureControl lpc = (LabPictureControl)(sender as Label).Parent;
lpc.BackColor = Color.FromArgb(0, 151, 186);
}
private void labText_MouseLeave(object sender, EventArgs e)
{
LabPictureControl lpc = (LabPictureControl)(sender as Label).Parent;
lpc.BackColor = Color.FromArgb(19, 46, 53);
}
private void LabPictureControl_MouseHover(object sender, EventArgs e)
{
LabPictureControl lpc = sender as LabPictureControl;
lpc.BackColor = Color.FromArgb(0, 151, 186);
}
private void LabPictureControl_MouseLeave(object sender, EventArgs e)
{
LabPictureControl lpc = sender as LabPictureControl;
lpc.BackColor = Color.FromArgb(19, 46, 53);
}
}
}
+84
View File
@@ -0,0 +1,84 @@
namespace UserControlClass
{
public partial class LabPictureControl
{
/// <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.labText = new System.Windows.Forms.Label();
this.labPicture = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// labText
//
this.labText.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labText.Location = new System.Drawing.Point(2, 59);
this.labText.Name = "labText";
this.labText.Size = new System.Drawing.Size(83, 25);
this.labText.TabIndex = 1;
this.labText.Text = "添加抽屉";
this.labText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.labText.MouseLeave += new System.EventHandler(this.labText_MouseLeave);
this.labText.MouseHover += new System.EventHandler(this.labText_MouseHover);
//
// labPicture
//
this.labPicture.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labPicture.Location = new System.Drawing.Point(0, 3);
this.labPicture.Name = "labPicture";
this.labPicture.Padding = new System.Windows.Forms.Padding(17, 21, 17, 21);
this.labPicture.Size = new System.Drawing.Size(86, 54);
this.labPicture.TabIndex = 0;
this.labPicture.MouseLeave += new System.EventHandler(this.labPicture_MouseLeave);
this.labPicture.MouseHover += new System.EventHandler(this.labPicture_MouseHover);
//
// LabPictureControl
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(46)))), ((int)(((byte)(53)))));
this.Controls.Add(this.labText);
this.Controls.Add(this.labPicture);
this.Font = new System.Drawing.Font("Segoe UI", 9.75F);
this.ForeColor = System.Drawing.Color.White;
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.Name = "LabPictureControl";
this.Size = new System.Drawing.Size(86, 85);
this.MouseLeave += new System.EventHandler(this.LabPictureControl_MouseLeave);
this.MouseHover += new System.EventHandler(this.LabPictureControl_MouseHover);
this.ResumeLayout(false);
}
#endregion
public System.Windows.Forms.Label labPicture;
public System.Windows.Forms.Label labText;
}
}
+120
View File
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
+49
View File
@@ -0,0 +1,49 @@
namespace UserControlClass
{
partial class Lamp
{
/// <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.SuspendLayout();
//
// Lamp
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Font = new System.Drawing.Font("宋体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
this.ForeColor = System.Drawing.Color.White;
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.Name = "Lamp";
this.Size = new System.Drawing.Size(144, 121);
this.Load += new System.EventHandler(this.Lamp_Load);
this.ResumeLayout(false);
}
#endregion
}
}
+180
View File
@@ -0,0 +1,180 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
namespace UserControlClass
{
public partial class Lamp : UserControl
{
public Lamp()
{
InitializeComponent();
base.SetStyle(ControlStyles.ResizeRedraw, true);
this.DoubleBuffered = true;
}
private void Lamp_Load(object sender, EventArgs e)
{
}
private static Color[] COLORS = new Color[]
{
Color.Green,
Color.Orange,
Color.Red,
Color.White,
Color.Silver,
Color.Transparent,
Color.Yellow,
Color.Blue
};
private const int OK = 0;
private const int WARN = 1;
private const int ERROR = 2;
private const int DEBUG = 4;
private const int UNDEF = -1;
private int _state = -1;
private string Dtext = "";
private bool _shadow = false;
/// <summary> 设置颜色 </summary>
public int State
{
get
{
return this._state;
}
set
{
this._state = value;
this.Refresh();
}
}
/// <summary> 设置文字 </summary>
public string LText
{
get
{
return this.Dtext;
}
set
{
this.Dtext = value;
}
}
/// <summary> 设置阴影 </summary>
public bool Shadow
{
get
{
return this._shadow;
}
set
{
this._shadow = value;
}
}
protected override void OnPaint(PaintEventArgs gr)
{
base.OnPaint(gr);
int num = Math.Min(base.Width, base.Height);
bool flag = num >= 8;
if (flag)
{
this.DrawLamp(gr.Graphics, num);
}
}
private void DrawLamp(Graphics g, int rad)
{
g.SmoothingMode = SmoothingMode.AntiAlias;
RectangleF rect = new RectangleF(1f, 1f, (float)(rad - 5), (float)(rad - 5));
float num = rect.Width / 12f;
RectangleF rect2 = new RectangleF(rect.Location, rect.Size);
rect2.Inflate(1f, 1f);
if (_shadow)
{
rect2.X += num;
rect2.Y += num;
g.FillEllipse(Brushes.Gray, rect2);
rect2.X -= num;
rect2.Y -= num;
}
g.FillEllipse(Brushes.Black, rect2);
if (_state != -1)
{
using (GraphicsPath graphicsPath = new GraphicsPath())
{
graphicsPath.AddEllipse(rect);
int x = (int)(rect.X + rect.Width / 3f);
int y = (int)(rect.Y + rect.Height / 3f);
Color color = Lamp.COLORS[_state];
using (PathGradientBrush pathGradientBrush = new PathGradientBrush(graphicsPath))
{
pathGradientBrush.CenterColor = Color.Snow;
pathGradientBrush.CenterPoint = new Point(x, y);
pathGradientBrush.SurroundColors = new Color[]
{
color
};
g.FillPath(pathGradientBrush, graphicsPath);
}
}
}
else
{
using (Brush brush = new SolidBrush(this.BackColor))
{
g.FillEllipse(brush, rect);
}
}
if (Dtext.Length > 0)
{
float emSize = rect.Height / 6f;
Font font = new Font("Microsoft Sans Serif", emSize, FontStyle.Bold, GraphicsUnit.Point, 0);
int num2 = (int)font.GetHeight();
int y2 = (int)rect.Height / 2 - num2 / 2;
int num3 = (int)g.MeasureString(Dtext, font).Width;
int num4 = (int)(rect.Width - (float)num3) / 2;
bool flag3 = num4 < 0;
if (flag3)
{
num4 = 0;
}
g.DrawString(Dtext, font, Brushes.Black, new Point(num4, y2));
}
}
}
public class LampColor
{
public const int OK = 0;
public const int WARN = 1;
public const int ERROR = 2;
public const int DEBUG = 4;
public const int UNDEF = -1;
public const int Green = 0;
public const int Orange = 1;
public const int Red = 2;
public const int White = 3;
public const int Silver = 4;
public const int Transparent = 5;
public const int Yellow = 6;
public const int Blue = 7;
}
}
+120
View File
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("UserControlClass")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("UserControlClass")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("128f6ea4-e5b5-4b32-8a4f-bd820b83398f")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("2024.09.23.1")]
+73
View File
@@ -0,0 +1,73 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace UserControlClass.Properties {
using System;
/// <summary>
/// 一个强类型的资源类,用于查找本地化的字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.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("UserControlClass.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 _3011OK {
get {
object obj = ResourceManager.GetObject("3011OK", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}
+124
View File
@@ -0,0 +1,124 @@
<?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="3011OK" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\3011OK.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
@@ -0,0 +1 @@
Telerik.WinControls.UI.RadButton, Telerik.WinControls.UI, Version=2018.3.1016.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e
Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

+111
View File
@@ -0,0 +1,111 @@
namespace UserControlClass
{
partial class UCFixedLocation
{
/// <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.cbSelect = new System.Windows.Forms.CheckBox();
this.labSNo = new System.Windows.Forms.Label();
this.rlePLCStatus = new Telerik.WinControls.UI.RadLabelElement();
this.radLabelElement1 = new Telerik.WinControls.UI.RadLabelElement();
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// cbSelect
//
this.cbSelect.AutoSize = true;
this.cbSelect.Location = new System.Drawing.Point(4, 2);
this.cbSelect.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.cbSelect.Name = "cbSelect";
this.cbSelect.Size = new System.Drawing.Size(15, 14);
this.cbSelect.TabIndex = 0;
this.cbSelect.UseVisualStyleBackColor = true;
//
// labSNo
//
this.labSNo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labSNo.AutoSize = true;
this.labSNo.ForeColor = System.Drawing.Color.White;
this.labSNo.Location = new System.Drawing.Point(3, 40);
this.labSNo.Name = "labSNo";
this.labSNo.Size = new System.Drawing.Size(33, 19);
this.labSNo.TabIndex = 1;
this.labSNo.Text = "240";
//
// rlePLCStatus
//
this.rlePLCStatus.Font = new System.Drawing.Font("宋体", 11F);
this.rlePLCStatus.Name = "rlePLCStatus";
this.rlePLCStatus.Text = "●";
this.rlePLCStatus.TextWrap = true;
this.rlePLCStatus.UseCompatibleTextRendering = false;
//
// radLabelElement1
//
this.radLabelElement1.Font = new System.Drawing.Font("宋体", 11F);
this.radLabelElement1.Name = "radLabelElement1";
this.radLabelElement1.Text = "●";
this.radLabelElement1.TextWrap = true;
this.radLabelElement1.UseCompatibleTextRendering = false;
//
// label1
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label1.AutoSize = true;
this.label1.ForeColor = System.Drawing.Color.White;
this.label1.Location = new System.Drawing.Point(22, 20);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(17, 19);
this.label1.TabIndex = 2;
this.label1.Text = "●";
//
// UCFixedLocation
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(19)))), ((int)(((byte)(46)))), ((int)(((byte)(53)))));
this.Controls.Add(this.label1);
this.Controls.Add(this.labSNo);
this.Controls.Add(this.cbSelect);
this.Font = new System.Drawing.Font("Segoe UI", 10F);
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.Name = "UCFixedLocation";
this.Size = new System.Drawing.Size(76, 59);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.CheckBox cbSelect;
private System.Windows.Forms.Label labSNo;
private Telerik.WinControls.UI.RadLabelElement rlePLCStatus;
private Telerik.WinControls.UI.RadLabelElement radLabelElement1;
private System.Windows.Forms.Label label1;
}
}
+20
View File
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UserControlClass
{
public partial class UCFixedLocation : UserControl
{
public UCFixedLocation()
{
InitializeComponent();
}
}
}
+120
View File
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
+114
View File
@@ -0,0 +1,114 @@
namespace UserControlClass
{
partial class UCFixedStorage
{
/// <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.cbSelect = new System.Windows.Forms.CheckBox();
this.labID = new System.Windows.Forms.Label();
this.labStatus = new System.Windows.Forms.Label();
this.labInfo = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// cbSelect
//
this.cbSelect.AutoSize = true;
this.cbSelect.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbSelect.Location = new System.Drawing.Point(3, 3);
this.cbSelect.Name = "cbSelect";
this.cbSelect.Size = new System.Drawing.Size(15, 14);
this.cbSelect.TabIndex = 0;
this.cbSelect.UseVisualStyleBackColor = true;
//
// labID
//
this.labID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labID.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labID.ForeColor = System.Drawing.Color.White;
this.labID.Location = new System.Drawing.Point(0, 36);
this.labID.Name = "labID";
this.labID.Size = new System.Drawing.Size(55, 19);
this.labID.TabIndex = 1;
this.labID.Text = "1";
this.labID.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.labID.Click += new System.EventHandler(this.labID_Click);
//
// labStatus
//
this.labStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labStatus.Font = new System.Drawing.Font("宋体", 27F);
this.labStatus.ForeColor = System.Drawing.Color.White;
this.labStatus.Location = new System.Drawing.Point(16, 0);
this.labStatus.Name = "labStatus";
this.labStatus.Size = new System.Drawing.Size(37, 41);
this.labStatus.TabIndex = 2;
this.labStatus.Text = "●";
this.labStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.labStatus.Click += new System.EventHandler(this.labStatus_Click);
//
// labInfo
//
this.labInfo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labInfo.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labInfo.ForeColor = System.Drawing.Color.White;
this.labInfo.Location = new System.Drawing.Point(0, 38);
this.labInfo.Name = "labInfo";
this.labInfo.Size = new System.Drawing.Size(10, 14);
this.labInfo.TabIndex = 3;
this.labInfo.Text = "index";
this.labInfo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.labInfo.Visible = false;
//
// UCFixedStorage
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
this.Controls.Add(this.labStatus);
this.Controls.Add(this.labID);
this.Controls.Add(this.cbSelect);
this.Controls.Add(this.labInfo);
this.Font = new System.Drawing.Font("Segoe UI", 8.25F);
this.Name = "UCFixedStorage";
this.Size = new System.Drawing.Size(55, 55);
this.Click += new System.EventHandler(this.UCFixedStorage_Click);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.CheckBox cbSelect;
private System.Windows.Forms.Label labID;
private System.Windows.Forms.Label labStatus;
private System.Windows.Forms.Label labInfo;
}
}
+84
View File
@@ -0,0 +1,84 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UserControlClass
{
public partial class UCFixedStorage : UserControl
{
public UCFixedStorage()
{
InitializeComponent();
}
[Description(" 库位编号")]
public string labStorageIDText
{
get { return labID.Text; }
set { labID.Text = value; }
}
[Description(" 库位Info")]
public string labInfoText
{
get { return labInfo.Text; }
set { labInfo.Text = value; }
}
[Description(" 库位状态颜色")]
public Color labStorageStutusColor
{
get { return labStatus.ForeColor; }
set { labStatus.ForeColor = value; }
}
[Description("库位是否选中状态")]
public bool cbSelectStatus
{
get { return cbSelect.Checked; }
set { cbSelect.Checked = value; }
}
private void labStatus_Click(object sender, EventArgs e)
{
if (cbSelect.Checked)
{
cbSelect.Checked = false;
}
else
{
cbSelect.Checked = true;
}
}
private void labID_Click(object sender, EventArgs e)
{
if (cbSelect.Checked)
{
cbSelect.Checked = false;
}
else
{
cbSelect.Checked = true;
}
}
private void UCFixedStorage_Click(object sender, EventArgs e)
{
if (cbSelect.Checked)
{
cbSelect.Checked = false;
}
else
{
cbSelect.Checked = true;
}
}
}
}
+120
View File
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
+280
View File
@@ -0,0 +1,280 @@
namespace UserControlClass
{
partial class UCMeasureTask
{
/// <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.label10 = new System.Windows.Forms.Label();
this.labStorageType = new System.Windows.Forms.Label();
this.labSID = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.labWID = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.labWType = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.labUnloadStatus = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.labMeasureResult = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.labUnloadMColor = new System.Windows.Forms.Label();
this.pbResult = new System.Windows.Forms.PictureBox();
this.radButton1 = new Telerik.WinControls.UI.RadButton();
((System.ComponentModel.ISupportInitialize)(this.pbResult)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radButton1)).BeginInit();
this.SuspendLayout();
//
// label10
//
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label10.ForeColor = System.Drawing.Color.White;
this.label10.Location = new System.Drawing.Point(33, 15);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(90, 21);
this.label10.TabIndex = 123;
this.label10.Text = "料库类型:";
//
// labStorageType
//
this.labStorageType.AutoSize = true;
this.labStorageType.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labStorageType.ForeColor = System.Drawing.Color.White;
this.labStorageType.Location = new System.Drawing.Point(120, 15);
this.labStorageType.Name = "labStorageType";
this.labStorageType.Size = new System.Drawing.Size(74, 21);
this.labStorageType.TabIndex = 124;
this.labStorageType.Text = "固定料库";
//
// labSID
//
this.labSID.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labSID.AutoSize = true;
this.labSID.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labSID.ForeColor = System.Drawing.Color.White;
this.labSID.Location = new System.Drawing.Point(120, 50);
this.labSID.Name = "labSID";
this.labSID.Size = new System.Drawing.Size(37, 21);
this.labSID.TabIndex = 126;
this.labSID.Text = "125";
//
// label3
//
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.ForeColor = System.Drawing.Color.White;
this.label3.Location = new System.Drawing.Point(33, 50);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(90, 21);
this.label3.TabIndex = 125;
this.label3.Text = "料库编号:";
//
// labWID
//
this.labWID.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labWID.AutoSize = true;
this.labWID.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labWID.ForeColor = System.Drawing.Color.White;
this.labWID.Location = new System.Drawing.Point(307, 51);
this.labWID.Name = "labWID";
this.labWID.Size = new System.Drawing.Size(73, 21);
this.labWID.TabIndex = 130;
this.labWID.Text = "2023001";
//
// label5
//
this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.ForeColor = System.Drawing.Color.White;
this.label5.Location = new System.Drawing.Point(220, 51);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(90, 21);
this.label5.TabIndex = 129;
this.label5.Text = "工件编号:";
//
// labWType
//
this.labWType.AutoSize = true;
this.labWType.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labWType.ForeColor = System.Drawing.Color.White;
this.labWType.Location = new System.Drawing.Point(307, 16);
this.labWType.Name = "labWType";
this.labWType.Size = new System.Drawing.Size(46, 21);
this.labWType.TabIndex = 128;
this.labWType.Text = "3011";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.ForeColor = System.Drawing.Color.White;
this.label7.Location = new System.Drawing.Point(220, 16);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(90, 21);
this.label7.TabIndex = 127;
this.label7.Text = "工件类型:";
//
// labUnloadStatus
//
this.labUnloadStatus.AutoSize = true;
this.labUnloadStatus.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labUnloadStatus.ForeColor = System.Drawing.Color.White;
this.labUnloadStatus.Location = new System.Drawing.Point(489, 16);
this.labUnloadStatus.Name = "labUnloadStatus";
this.labUnloadStatus.Size = new System.Drawing.Size(74, 21);
this.labUnloadStatus.TabIndex = 132;
this.labUnloadStatus.Text = "等待测量";
//
// label9
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label9.ForeColor = System.Drawing.Color.White;
this.label9.Location = new System.Drawing.Point(402, 16);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(90, 21);
this.label9.TabIndex = 131;
this.label9.Text = "测量状态:";
//
// labMeasureResult
//
this.labMeasureResult.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labMeasureResult.AutoSize = true;
this.labMeasureResult.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labMeasureResult.ForeColor = System.Drawing.Color.White;
this.labMeasureResult.Location = new System.Drawing.Point(489, 50);
this.labMeasureResult.Name = "labMeasureResult";
this.labMeasureResult.Size = new System.Drawing.Size(58, 21);
this.labMeasureResult.TabIndex = 135;
this.labMeasureResult.Text = "未测量";
//
// label12
//
this.label12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label12.AutoSize = true;
this.label12.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label12.ForeColor = System.Drawing.Color.White;
this.label12.Location = new System.Drawing.Point(402, 50);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(90, 21);
this.label12.TabIndex = 134;
this.label12.Text = "测量结果:";
//
// labUnloadMColor
//
this.labUnloadMColor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.labUnloadMColor.AutoSize = true;
this.labUnloadMColor.BackColor = System.Drawing.Color.White;
this.labUnloadMColor.ForeColor = System.Drawing.Color.White;
this.labUnloadMColor.Location = new System.Drawing.Point(1, -15);
this.labUnloadMColor.Name = "labUnloadMColor";
this.labUnloadMColor.Padding = new System.Windows.Forms.Padding(5, 50, 5, 50);
this.labUnloadMColor.Size = new System.Drawing.Size(10, 112);
this.labUnloadMColor.TabIndex = 136;
//
// pbResult
//
this.pbResult.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.pbResult.Image = global::UserControlClass.Properties.Resources._3011OK;
this.pbResult.Location = new System.Drawing.Point(601, 1);
this.pbResult.Name = "pbResult";
this.pbResult.Size = new System.Drawing.Size(100, 83);
this.pbResult.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbResult.TabIndex = 133;
this.pbResult.TabStop = false;
//
// radButton1
//
this.radButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.radButton1.Font = new System.Drawing.Font("Segoe UI", 11F);
this.radButton1.ForeColor = System.Drawing.Color.White;
this.radButton1.Location = new System.Drawing.Point(732, 22);
this.radButton1.Name = "radButton1";
this.radButton1.Size = new System.Drawing.Size(113, 40);
this.radButton1.TabIndex = 137;
this.radButton1.Text = "优先插队测量";
((Telerik.WinControls.UI.RadButtonElement)(this.radButton1.GetChildAt(0))).Text = "优先插队测量";
((Telerik.WinControls.UI.RadButtonElement)(this.radButton1.GetChildAt(0))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(10)))), ((int)(((byte)(246)))));
((Telerik.WinControls.Primitives.FillPrimitive)(this.radButton1.GetChildAt(0).GetChildAt(0))).BackColor2 = System.Drawing.Color.Transparent;
((Telerik.WinControls.Primitives.FillPrimitive)(this.radButton1.GetChildAt(0).GetChildAt(0))).BackColor3 = System.Drawing.Color.Transparent;
((Telerik.WinControls.Primitives.FillPrimitive)(this.radButton1.GetChildAt(0).GetChildAt(0))).BackColor4 = System.Drawing.Color.Transparent;
((Telerik.WinControls.Primitives.FillPrimitive)(this.radButton1.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.Transparent;
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radButton1.GetChildAt(0).GetChildAt(2))).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(151)))), ((int)(((byte)(186)))));
//
// UCMeasureTask
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
this.Controls.Add(this.radButton1);
this.Controls.Add(this.labUnloadMColor);
this.Controls.Add(this.labMeasureResult);
this.Controls.Add(this.label12);
this.Controls.Add(this.pbResult);
this.Controls.Add(this.labUnloadStatus);
this.Controls.Add(this.label9);
this.Controls.Add(this.labWID);
this.Controls.Add(this.label5);
this.Controls.Add(this.labWType);
this.Controls.Add(this.label7);
this.Controls.Add(this.labSID);
this.Controls.Add(this.label3);
this.Controls.Add(this.labStorageType);
this.Controls.Add(this.label10);
this.Name = "UCMeasureTask";
this.Size = new System.Drawing.Size(872, 85);
((System.ComponentModel.ISupportInitialize)(this.pbResult)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radButton1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label labStorageType;
private System.Windows.Forms.Label labSID;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label labWID;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label labWType;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label labUnloadStatus;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.PictureBox pbResult;
private System.Windows.Forms.Label labMeasureResult;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label labUnloadMColor;
private Telerik.WinControls.UI.RadButton radButton1;
}
}
+76
View File
@@ -0,0 +1,76 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UserControlClass
{
public partial class UCMeasureTask : UserControl
{
public UCMeasureTask()
{
InitializeComponent();
}
[Description(" 库位编号")]
public string labStorageIDText
{
get { return labSID.Text; }
set { labSID.Text = value; }
}
[Description("料库类型")]
public string labStorageTypeText
{
get { return labStorageType.Text; }
set { labStorageType.Text = value; }
}
[Description("工件类型")]
public string llabWTypeText
{
get { return labWType.Text; }
set { labWType.Text = value; }
}
[Description("工件编号")]
public string labWIDText
{
get { return labWID.Text; }
set { labWID.Text = value; }
}
[Description("下料状态")]
public string labUnloadStatusText
{
get { return labUnloadStatus.Text; }
set { labUnloadStatus.Text = value; }
}
[Description("测量结果")]
public string labMeasureResultText
{
get { return labMeasureResult.Text; }
set { labMeasureResult.Text = value; }
}
[Description(" 下料状态颜色")]
public Color labStorageStutusColor
{
get { return labUnloadMColor.BackColor; }
set { labUnloadMColor.BackColor = value; }
}
[Description(" 测量结果图片")]
public Image pbResultImage
{
get { return pbResult.Image; }
set { pbResult.Image = value; }
}
}
}
+120
View File
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
+208
View File
@@ -0,0 +1,208 @@
namespace UserControlClass
{
partial class UCNextSense
{
/// <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.tlpTitle = new System.Windows.Forms.TableLayoutPanel();
this.labTitle = new System.Windows.Forms.Label();
this.labF = new System.Windows.Forms.Label();
this.tlpF = new System.Windows.Forms.TableLayoutPanel();
this.labFLU = new System.Windows.Forms.Label();
this.labFValue = new System.Windows.Forms.Label();
this.tlpG = new System.Windows.Forms.TableLayoutPanel();
this.labGLU = new System.Windows.Forms.Label();
this.labGValue = new System.Windows.Forms.Label();
this.labG = new System.Windows.Forms.Label();
this.tlpTitle.SuspendLayout();
this.tlpF.SuspendLayout();
this.tlpG.SuspendLayout();
this.SuspendLayout();
//
// tlpTitle
//
this.tlpTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tlpTitle.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
this.tlpTitle.ColumnCount = 1;
this.tlpTitle.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tlpTitle.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tlpTitle.Controls.Add(this.labTitle, 0, 0);
this.tlpTitle.Location = new System.Drawing.Point(1, 2);
this.tlpTitle.Name = "tlpTitle";
this.tlpTitle.RowCount = 1;
this.tlpTitle.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tlpTitle.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 41F));
this.tlpTitle.Size = new System.Drawing.Size(218, 42);
this.tlpTitle.TabIndex = 0;
//
// labTitle
//
this.labTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labTitle.Font = new System.Drawing.Font("Segoe UI", 16F);
this.labTitle.Location = new System.Drawing.Point(4, 1);
this.labTitle.Name = "labTitle";
this.labTitle.Size = new System.Drawing.Size(210, 40);
this.labTitle.TabIndex = 0;
this.labTitle.Text = "R-05";
this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// labF
//
this.labF.Font = new System.Drawing.Font("Segoe UI", 12F);
this.labF.Location = new System.Drawing.Point(4, 1);
this.labF.Name = "labF";
this.labF.Size = new System.Drawing.Size(13, 30);
this.labF.TabIndex = 0;
this.labF.Text = "F";
this.labF.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tlpF
//
this.tlpF.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tlpF.BackColor = System.Drawing.Color.White;
this.tlpF.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
this.tlpF.ColumnCount = 3;
this.tlpF.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.29368F));
this.tlpF.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 38.76652F));
this.tlpF.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 51.98238F));
this.tlpF.Controls.Add(this.labFLU, 0, 0);
this.tlpF.Controls.Add(this.labFValue, 0, 0);
this.tlpF.Controls.Add(this.labF, 0, 0);
this.tlpF.Location = new System.Drawing.Point(1, 44);
this.tlpF.Name = "tlpF";
this.tlpF.RowCount = 1;
this.tlpF.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tlpF.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 31F));
this.tlpF.Size = new System.Drawing.Size(218, 32);
this.tlpF.TabIndex = 1;
//
// labFLU
//
this.labFLU.Font = new System.Drawing.Font("Segoe UI", 12F);
this.labFLU.Location = new System.Drawing.Point(107, 1);
this.labFLU.Name = "labFLU";
this.labFLU.Size = new System.Drawing.Size(107, 30);
this.labFLU.TabIndex = 2;
this.labFLU.Text = "-20.5/-23.1";
this.labFLU.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// labFValue
//
this.labFValue.Font = new System.Drawing.Font("Segoe UI", 12F);
this.labFValue.Location = new System.Drawing.Point(24, 1);
this.labFValue.Name = "labFValue";
this.labFValue.Size = new System.Drawing.Size(76, 30);
this.labFValue.TabIndex = 1;
this.labFValue.Text = "-23.5mm";
this.labFValue.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tlpG
//
this.tlpG.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tlpG.BackColor = System.Drawing.Color.White;
this.tlpG.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
this.tlpG.ColumnCount = 3;
this.tlpG.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.29368F));
this.tlpG.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 38.76652F));
this.tlpG.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 51.98238F));
this.tlpG.Controls.Add(this.labGLU, 0, 0);
this.tlpG.Controls.Add(this.labGValue, 0, 0);
this.tlpG.Controls.Add(this.labG, 0, 0);
this.tlpG.Location = new System.Drawing.Point(1, 76);
this.tlpG.Name = "tlpG";
this.tlpG.RowCount = 1;
this.tlpG.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tlpG.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tlpG.Size = new System.Drawing.Size(218, 31);
this.tlpG.TabIndex = 2;
//
// labGLU
//
this.labGLU.Font = new System.Drawing.Font("Segoe UI", 12F);
this.labGLU.Location = new System.Drawing.Point(107, 1);
this.labGLU.Name = "labGLU";
this.labGLU.Size = new System.Drawing.Size(107, 29);
this.labGLU.TabIndex = 2;
this.labGLU.Text = "-20.2/-23.5";
this.labGLU.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// labGValue
//
this.labGValue.Font = new System.Drawing.Font("Segoe UI", 12F);
this.labGValue.Location = new System.Drawing.Point(24, 1);
this.labGValue.Name = "labGValue";
this.labGValue.Size = new System.Drawing.Size(76, 29);
this.labGValue.TabIndex = 1;
this.labGValue.Text = "-23.5mm";
this.labGValue.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// labG
//
this.labG.Font = new System.Drawing.Font("Segoe UI", 12F);
this.labG.Location = new System.Drawing.Point(4, 1);
this.labG.Name = "labG";
this.labG.Size = new System.Drawing.Size(13, 29);
this.labG.TabIndex = 0;
this.labG.Text = "G";
this.labG.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// UCNextSense
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.tlpG);
this.Controls.Add(this.tlpF);
this.Controls.Add(this.tlpTitle);
this.ForeColor = System.Drawing.Color.Black;
this.Name = "UCNextSense";
this.Size = new System.Drawing.Size(220, 108);
this.tlpTitle.ResumeLayout(false);
this.tlpF.ResumeLayout(false);
this.tlpG.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TableLayoutPanel tlpTitle;
private System.Windows.Forms.Label labTitle;
private System.Windows.Forms.Label labF;
private System.Windows.Forms.TableLayoutPanel tlpF;
private System.Windows.Forms.Label labFLU;
private System.Windows.Forms.Label labFValue;
private System.Windows.Forms.TableLayoutPanel tlpG;
private System.Windows.Forms.Label labGLU;
private System.Windows.Forms.Label labGValue;
private System.Windows.Forms.Label labG;
}
}
+80
View File
@@ -0,0 +1,80 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UserControlClass
{
public partial class UCNextSense : UserControl
{
public UCNextSense()
{
InitializeComponent();
}
public string labTitleText
{
get { return labTitle.Text; }
set { labTitle.Text = value; }
}
public string labFText
{
get { return labF.Text; }
set { labF.Text = value; }
}
public string labGText
{
get { return labG.Text; }
set { labG.Text = value; }
}
public string labFVal
{
get { return labFValue.Text; }
set { labFValue.Text = value; }
}
public string labGVal
{
get { return labGValue.Text; }
set { labGValue.Text = value; }
}
public string labFLowerUpper
{
get { return labFLU.Text; }
set { labFLU.Text = value; }
}
public string labGLowerUpper
{
get { return labGLU.Text; }
set { labGLU.Text = value; }
}
public Color tlpBackColor
{
get { return tlpTitle.BackColor; }
set { tlpTitle.BackColor = value; }
}
public Color tlpFBackColor
{
get { return tlpF.BackColor; }
set { tlpF.BackColor = value; }
}
public Color tlpGBackColor
{
get { return tlpG.BackColor; }
set { tlpG.BackColor = value; }
}
}
}
+120
View File
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
+147
View File
@@ -0,0 +1,147 @@
namespace UserControlClass
{
partial class UCNextSenseOneItem
{
/// <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.tlpTitle = new System.Windows.Forms.TableLayoutPanel();
this.labTitle = new System.Windows.Forms.Label();
this.tlpFG = new System.Windows.Forms.TableLayoutPanel();
this.labFGLU = new System.Windows.Forms.Label();
this.labFGValue = new System.Windows.Forms.Label();
this.labFGName = new System.Windows.Forms.Label();
this.tlpTitle.SuspendLayout();
this.tlpFG.SuspendLayout();
this.SuspendLayout();
//
// tlpTitle
//
this.tlpTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tlpTitle.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
this.tlpTitle.ColumnCount = 1;
this.tlpTitle.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tlpTitle.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tlpTitle.Controls.Add(this.labTitle, 0, 0);
this.tlpTitle.Location = new System.Drawing.Point(1, 2);
this.tlpTitle.Name = "tlpTitle";
this.tlpTitle.RowCount = 1;
this.tlpTitle.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tlpTitle.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 41F));
this.tlpTitle.Size = new System.Drawing.Size(218, 42);
this.tlpTitle.TabIndex = 0;
//
// labTitle
//
this.labTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labTitle.Font = new System.Drawing.Font("Segoe UI", 16F);
this.labTitle.ForeColor = System.Drawing.Color.Black;
this.labTitle.Location = new System.Drawing.Point(4, 1);
this.labTitle.Name = "labTitle";
this.labTitle.Size = new System.Drawing.Size(210, 40);
this.labTitle.TabIndex = 0;
this.labTitle.Text = "R-05";
this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tlpFG
//
this.tlpFG.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tlpFG.BackColor = System.Drawing.Color.White;
this.tlpFG.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
this.tlpFG.ColumnCount = 3;
this.tlpFG.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.29368F));
this.tlpFG.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 42.85714F));
this.tlpFG.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 47.92627F));
this.tlpFG.Controls.Add(this.labFGLU, 0, 0);
this.tlpFG.Controls.Add(this.labFGValue, 0, 0);
this.tlpFG.Controls.Add(this.labFGName, 0, 0);
this.tlpFG.Location = new System.Drawing.Point(1, 44);
this.tlpFG.Name = "tlpFG";
this.tlpFG.RowCount = 1;
this.tlpFG.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tlpFG.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tlpFG.Size = new System.Drawing.Size(218, 31);
this.tlpFG.TabIndex = 2;
//
// labFGLU
//
this.labFGLU.Font = new System.Drawing.Font("Segoe UI", 12F);
this.labFGLU.Location = new System.Drawing.Point(116, 1);
this.labFGLU.Name = "labFGLU";
this.labFGLU.Size = new System.Drawing.Size(98, 29);
this.labFGLU.TabIndex = 2;
this.labFGLU.Text = "-20.5/-23.1";
this.labFGLU.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// labFGValue
//
this.labFGValue.Font = new System.Drawing.Font("Segoe UI", 12F);
this.labFGValue.Location = new System.Drawing.Point(24, 1);
this.labFGValue.Name = "labFGValue";
this.labFGValue.Size = new System.Drawing.Size(85, 29);
this.labFGValue.TabIndex = 1;
this.labFGValue.Text = "-23.6mm";
this.labFGValue.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// labFGName
//
this.labFGName.Font = new System.Drawing.Font("Segoe UI", 12F);
this.labFGName.Location = new System.Drawing.Point(4, 1);
this.labFGName.Name = "labFGName";
this.labFGName.Size = new System.Drawing.Size(13, 29);
this.labFGName.TabIndex = 0;
this.labFGName.Text = "G";
this.labFGName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// UCNextSenseOneItem
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.tlpFG);
this.Controls.Add(this.tlpTitle);
this.ForeColor = System.Drawing.Color.Black;
this.Name = "UCNextSenseOneItem";
this.Size = new System.Drawing.Size(220, 76);
this.tlpTitle.ResumeLayout(false);
this.tlpFG.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TableLayoutPanel tlpTitle;
private System.Windows.Forms.Label labTitle;
private System.Windows.Forms.TableLayoutPanel tlpFG;
private System.Windows.Forms.Label labFGLU;
private System.Windows.Forms.Label labFGValue;
private System.Windows.Forms.Label labFGName;
}
}
+55
View File
@@ -0,0 +1,55 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UserControlClass
{
public partial class UCNextSenseOneItem : UserControl
{
public UCNextSenseOneItem()
{
InitializeComponent();
}
public string labTitleText
{
get { return labTitle.Text; }
set { labTitle.Text = value; }
}
public string labFGText
{
get { return labFGName.Text; }
set { labFGName.Text = value; }
}
public string labValue
{
get { return labFGValue.Text; }
set { labFGValue.Text = value; }
}
public string labLowerUpper
{
get { return labFGLU.Text; }
set { labFGLU.Text = value; }
}
public Color tlpBackColor
{
get { return tlpTitle.BackColor; }
set { tlpTitle.BackColor = value; }
}
public Color tlpFGBackColor
{
get { return tlpFG.BackColor; }
set { tlpFG.BackColor = value; }
}
}
}
+120
View File
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
+249
View File
@@ -0,0 +1,249 @@
namespace UserControlClass
{
partial class UCUnloadTask
{
/// <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.label10 = new System.Windows.Forms.Label();
this.labStorageType = new System.Windows.Forms.Label();
this.labSID = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.labWID = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.labWType = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.labUnloadStatus = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.labMeasureResult = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.labUnloadMColor = new System.Windows.Forms.Label();
this.pbResult = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pbResult)).BeginInit();
this.SuspendLayout();
//
// label10
//
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label10.ForeColor = System.Drawing.Color.White;
this.label10.Location = new System.Drawing.Point(33, 15);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(90, 21);
this.label10.TabIndex = 123;
this.label10.Text = "料库类型:";
//
// labStorageType
//
this.labStorageType.AutoSize = true;
this.labStorageType.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labStorageType.ForeColor = System.Drawing.Color.White;
this.labStorageType.Location = new System.Drawing.Point(120, 15);
this.labStorageType.Name = "labStorageType";
this.labStorageType.Size = new System.Drawing.Size(74, 21);
this.labStorageType.TabIndex = 124;
this.labStorageType.Text = "固定料库";
//
// labSID
//
this.labSID.AutoSize = true;
this.labSID.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labSID.ForeColor = System.Drawing.Color.White;
this.labSID.Location = new System.Drawing.Point(120, 50);
this.labSID.Name = "labSID";
this.labSID.Size = new System.Drawing.Size(37, 21);
this.labSID.TabIndex = 126;
this.labSID.Text = "125";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.ForeColor = System.Drawing.Color.White;
this.label3.Location = new System.Drawing.Point(33, 50);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(90, 21);
this.label3.TabIndex = 125;
this.label3.Text = "料库编号:";
//
// labWID
//
this.labWID.AutoSize = true;
this.labWID.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labWID.ForeColor = System.Drawing.Color.White;
this.labWID.Location = new System.Drawing.Point(307, 51);
this.labWID.Name = "labWID";
this.labWID.Size = new System.Drawing.Size(73, 21);
this.labWID.TabIndex = 130;
this.labWID.Text = "2023001";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.ForeColor = System.Drawing.Color.White;
this.label5.Location = new System.Drawing.Point(220, 51);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(90, 21);
this.label5.TabIndex = 129;
this.label5.Text = "工件编号:";
//
// labWType
//
this.labWType.AutoSize = true;
this.labWType.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labWType.ForeColor = System.Drawing.Color.White;
this.labWType.Location = new System.Drawing.Point(307, 16);
this.labWType.Name = "labWType";
this.labWType.Size = new System.Drawing.Size(46, 21);
this.labWType.TabIndex = 128;
this.labWType.Text = "3011";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.ForeColor = System.Drawing.Color.White;
this.label7.Location = new System.Drawing.Point(220, 16);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(90, 21);
this.label7.TabIndex = 127;
this.label7.Text = "工件类型:";
//
// labUnloadStatus
//
this.labUnloadStatus.AutoSize = true;
this.labUnloadStatus.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labUnloadStatus.ForeColor = System.Drawing.Color.White;
this.labUnloadStatus.Location = new System.Drawing.Point(489, 16);
this.labUnloadStatus.Name = "labUnloadStatus";
this.labUnloadStatus.Size = new System.Drawing.Size(74, 21);
this.labUnloadStatus.TabIndex = 132;
this.labUnloadStatus.Text = "等待下料";
//
// label9
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label9.ForeColor = System.Drawing.Color.White;
this.label9.Location = new System.Drawing.Point(402, 16);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(90, 21);
this.label9.TabIndex = 131;
this.label9.Text = "下料状态:";
//
// labMeasureResult
//
this.labMeasureResult.AutoSize = true;
this.labMeasureResult.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labMeasureResult.ForeColor = System.Drawing.Color.White;
this.labMeasureResult.Location = new System.Drawing.Point(489, 50);
this.labMeasureResult.Name = "labMeasureResult";
this.labMeasureResult.Size = new System.Drawing.Size(65, 21);
this.labMeasureResult.TabIndex = 135;
this.labMeasureResult.Text = "测量OK";
//
// label12
//
this.label12.AutoSize = true;
this.label12.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label12.ForeColor = System.Drawing.Color.White;
this.label12.Location = new System.Drawing.Point(402, 50);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(90, 21);
this.label12.TabIndex = 134;
this.label12.Text = "测量结果:";
//
// labUnloadMColor
//
this.labUnloadMColor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.labUnloadMColor.AutoSize = true;
this.labUnloadMColor.BackColor = System.Drawing.Color.White;
this.labUnloadMColor.ForeColor = System.Drawing.Color.White;
this.labUnloadMColor.Location = new System.Drawing.Point(1, -15);
this.labUnloadMColor.Name = "labUnloadMColor";
this.labUnloadMColor.Padding = new System.Windows.Forms.Padding(5, 50, 5, 50);
this.labUnloadMColor.Size = new System.Drawing.Size(10, 112);
this.labUnloadMColor.TabIndex = 136;
//
// pbResult
//
this.pbResult.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.pbResult.Image = global::UserControlClass.Properties.Resources._3011OK;
this.pbResult.Location = new System.Drawing.Point(587, 1);
this.pbResult.Name = "pbResult";
this.pbResult.Size = new System.Drawing.Size(100, 83);
this.pbResult.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbResult.TabIndex = 133;
this.pbResult.TabStop = false;
//
// UCUnloadTask
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(109)))), ((int)(((byte)(124)))));
this.Controls.Add(this.labUnloadMColor);
this.Controls.Add(this.labMeasureResult);
this.Controls.Add(this.label12);
this.Controls.Add(this.pbResult);
this.Controls.Add(this.labUnloadStatus);
this.Controls.Add(this.label9);
this.Controls.Add(this.labWID);
this.Controls.Add(this.label5);
this.Controls.Add(this.labWType);
this.Controls.Add(this.label7);
this.Controls.Add(this.labSID);
this.Controls.Add(this.label3);
this.Controls.Add(this.labStorageType);
this.Controls.Add(this.label10);
this.Name = "UCUnloadTask";
this.Size = new System.Drawing.Size(700, 85);
((System.ComponentModel.ISupportInitialize)(this.pbResult)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label labStorageType;
private System.Windows.Forms.Label labSID;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label labWID;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label labWType;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label labUnloadStatus;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.PictureBox pbResult;
private System.Windows.Forms.Label labMeasureResult;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label labUnloadMColor;
}
}
+76
View File
@@ -0,0 +1,76 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UserControlClass
{
public partial class UCUnloadTask : UserControl
{
public UCUnloadTask()
{
InitializeComponent();
}
[Description(" 库位编号")]
public string labStorageIDText
{
get { return labSID.Text; }
set { labSID.Text = value; }
}
[Description("料库类型")]
public string labStorageTypeText
{
get { return labStorageType.Text; }
set { labStorageType.Text = value; }
}
[Description("工件类型")]
public string llabWTypeText
{
get { return labWType.Text; }
set { labWType.Text = value; }
}
[Description("工件编号")]
public string labWIDText
{
get { return labWID.Text; }
set { labWID.Text = value; }
}
[Description("下料状态")]
public string labUnloadStatusText
{
get { return labUnloadStatus.Text; }
set { labUnloadStatus.Text = value; }
}
[Description("测量结果")]
public string labMeasureResultText
{
get { return labMeasureResult.Text; }
set { labMeasureResult.Text = value; }
}
[Description(" 下料状态颜色")]
public Color labStorageStutusColor
{
get { return labUnloadMColor.BackColor; }
set { labUnloadMColor.BackColor = value; }
}
[Description(" 测量结果图片")]
public Image pbResultImage
{
get { return pbResult.Image; }
set { pbResult.Image = value; }
}
}
}
+120
View File
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
+214
View File
@@ -0,0 +1,214 @@
namespace UserControlClass
{
partial class UCVWNextSense
{
/// <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.labF = new System.Windows.Forms.Label();
this.tlpF = new System.Windows.Forms.TableLayoutPanel();
this.labFLU = new System.Windows.Forms.Label();
this.labFValue = new System.Windows.Forms.Label();
this.labG = new System.Windows.Forms.Label();
this.labGValue = new System.Windows.Forms.Label();
this.labGLU = new System.Windows.Forms.Label();
this.tlpG = new System.Windows.Forms.TableLayoutPanel();
this.labTitle = new System.Windows.Forms.Label();
this.tlpTitle = new System.Windows.Forms.TableLayoutPanel();
this.tlpF.SuspendLayout();
this.tlpG.SuspendLayout();
this.tlpTitle.SuspendLayout();
this.SuspendLayout();
//
// labF
//
this.labF.Dock = System.Windows.Forms.DockStyle.Fill;
this.labF.Font = new System.Drawing.Font("Segoe UI", 15F, System.Drawing.FontStyle.Bold);
this.labF.Location = new System.Drawing.Point(4, 1);
this.labF.Name = "labF";
this.labF.Size = new System.Drawing.Size(23, 47);
this.labF.TabIndex = 0;
this.labF.Text = "F";
this.labF.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tlpF
//
this.tlpF.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tlpF.BackColor = System.Drawing.Color.White;
this.tlpF.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
this.tlpF.ColumnCount = 3;
this.tlpF.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.57143F));
this.tlpF.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 36F));
this.tlpF.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50.95487F));
this.tlpF.Controls.Add(this.labFLU, 0, 0);
this.tlpF.Controls.Add(this.labFValue, 0, 0);
this.tlpF.Controls.Add(this.labF, 0, 0);
this.tlpF.Location = new System.Drawing.Point(2, 50);
this.tlpF.Name = "tlpF";
this.tlpF.RowCount = 1;
this.tlpF.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tlpF.Size = new System.Drawing.Size(236, 49);
this.tlpF.TabIndex = 1;
//
// labFLU
//
this.labFLU.Dock = System.Windows.Forms.DockStyle.Fill;
this.labFLU.Font = new System.Drawing.Font("Segoe UI", 15F);
this.labFLU.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.labFLU.Location = new System.Drawing.Point(118, 1);
this.labFLU.Name = "labFLU";
this.labFLU.Size = new System.Drawing.Size(114, 47);
this.labFLU.TabIndex = 2;
this.labFLU.Text = "-20.5/-23.1";
this.labFLU.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// labFValue
//
this.labFValue.Dock = System.Windows.Forms.DockStyle.Fill;
this.labFValue.Font = new System.Drawing.Font("Segoe UI", 15F);
this.labFValue.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.labFValue.Location = new System.Drawing.Point(34, 1);
this.labFValue.Name = "labFValue";
this.labFValue.Size = new System.Drawing.Size(77, 47);
this.labFValue.TabIndex = 1;
this.labFValue.Text = "-23.6";
this.labFValue.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// labG
//
this.labG.Dock = System.Windows.Forms.DockStyle.Fill;
this.labG.Font = new System.Drawing.Font("Segoe UI", 15F, System.Drawing.FontStyle.Bold);
this.labG.Location = new System.Drawing.Point(4, 1);
this.labG.Name = "labG";
this.labG.Size = new System.Drawing.Size(23, 47);
this.labG.TabIndex = 0;
this.labG.Text = "G";
this.labG.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// labGValue
//
this.labGValue.Dock = System.Windows.Forms.DockStyle.Fill;
this.labGValue.Font = new System.Drawing.Font("Segoe UI", 15F);
this.labGValue.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.labGValue.Location = new System.Drawing.Point(34, 1);
this.labGValue.Name = "labGValue";
this.labGValue.Size = new System.Drawing.Size(77, 47);
this.labGValue.TabIndex = 1;
this.labGValue.Text = "-23.6";
this.labGValue.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// labGLU
//
this.labGLU.Dock = System.Windows.Forms.DockStyle.Fill;
this.labGLU.Font = new System.Drawing.Font("Segoe UI", 15F);
this.labGLU.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.labGLU.Location = new System.Drawing.Point(118, 1);
this.labGLU.Name = "labGLU";
this.labGLU.Size = new System.Drawing.Size(114, 47);
this.labGLU.TabIndex = 2;
this.labGLU.Text = "-20.5/-23.1";
this.labGLU.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tlpG
//
this.tlpG.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tlpG.BackColor = System.Drawing.Color.White;
this.tlpG.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
this.tlpG.ColumnCount = 3;
this.tlpG.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.57143F));
this.tlpG.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 36F));
this.tlpG.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50.97224F));
this.tlpG.Controls.Add(this.labGLU, 0, 0);
this.tlpG.Controls.Add(this.labGValue, 0, 0);
this.tlpG.Controls.Add(this.labG, 0, 0);
this.tlpG.Location = new System.Drawing.Point(2, 99);
this.tlpG.Name = "tlpG";
this.tlpG.RowCount = 1;
this.tlpG.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tlpG.Size = new System.Drawing.Size(236, 49);
this.tlpG.TabIndex = 2;
//
// labTitle
//
this.labTitle.Dock = System.Windows.Forms.DockStyle.Fill;
this.labTitle.Font = new System.Drawing.Font("Segoe UI", 20F, System.Drawing.FontStyle.Bold);
this.labTitle.Location = new System.Drawing.Point(4, 1);
this.labTitle.Name = "labTitle";
this.labTitle.Size = new System.Drawing.Size(228, 47);
this.labTitle.TabIndex = 0;
this.labTitle.Text = "R-05";
this.labTitle.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// tlpTitle
//
this.tlpTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tlpTitle.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
this.tlpTitle.ColumnCount = 1;
this.tlpTitle.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tlpTitle.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tlpTitle.Controls.Add(this.labTitle, 0, 0);
this.tlpTitle.Location = new System.Drawing.Point(2, 1);
this.tlpTitle.Name = "tlpTitle";
this.tlpTitle.RowCount = 1;
this.tlpTitle.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tlpTitle.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 41F));
this.tlpTitle.Size = new System.Drawing.Size(236, 49);
this.tlpTitle.TabIndex = 0;
//
// UCVWNextSense
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.tlpG);
this.Controls.Add(this.tlpF);
this.Controls.Add(this.tlpTitle);
this.ForeColor = System.Drawing.Color.Black;
this.Name = "UCVWNextSense";
this.Size = new System.Drawing.Size(240, 150);
this.tlpF.ResumeLayout(false);
this.tlpG.ResumeLayout(false);
this.tlpTitle.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label labF;
private System.Windows.Forms.TableLayoutPanel tlpF;
private System.Windows.Forms.Label labFLU;
private System.Windows.Forms.Label labFValue;
private System.Windows.Forms.Label labG;
private System.Windows.Forms.Label labGValue;
private System.Windows.Forms.Label labGLU;
private System.Windows.Forms.TableLayoutPanel tlpG;
private System.Windows.Forms.Label labTitle;
private System.Windows.Forms.TableLayoutPanel tlpTitle;
}
}
+84
View File
@@ -0,0 +1,84 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UserControlClass
{
public partial class UCVWNextSense : UserControl
{
public UCVWNextSense()
{
InitializeComponent();
}
public string labTitleText
{
get { return labTitle.Text; }
set { labTitle.Text = value; }
}
public string labFText
{
get { return labF.Text; }
set { labF.Text = value; }
}
public string labGText
{
get { return labG.Text; }
set { labG.Text = value; }
}
public string labFVal
{
get { return labFValue.Text; }
set { labFValue.Text = value; }
}
public string labGVal
{
get { return labGValue.Text; }
set { labGValue.Text = value; }
}
public string labFLowerUpper
{
get { return labFLU.Text; }
set { labFLU.Text = value; }
}
public string labGLowerUpper
{
get { return labGLU.Text; }
set { labGLU.Text = value; }
}
public Color tlpBackColor
{
get { return tlpTitle.BackColor; }
set { tlpTitle.BackColor = value; }
}
public Size tlpTitleBackSize
{
get { return tlpTitle.Size; }
set { tlpTitle.Size = value; }
}
public Color tlpFBackColor
{
get { return tlpF.BackColor; }
set { tlpF.BackColor = value; }
}
public Color tlpGBackColor
{
get { return tlpG.BackColor; }
set { tlpG.BackColor = value; }
}
}
}
+120
View File
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.