Commit d2cd7cc8 HZH

增加开关

1 个父辈 e9a49109
......@@ -105,6 +105,7 @@ namespace HZH_Controls.Controls
if (m_navigations != null && m_navigations.Length > 0)
{
var g = e.Graphics;
g.SetGDIHigh();
int intLastX = 0;
int intLength = m_navigations.Length;
for (int i = 0; i < m_navigations.Length; i++)
......
......@@ -217,9 +217,7 @@ namespace HZH_Controls.Controls
base.OnPaint(e);
var g = e.Graphics;
g.SmoothingMode = SmoothingMode.AntiAlias; //使绘图质量最高,即消除锯齿
g.InterpolationMode = InterpolationMode.HighQualityBicubic;
g.CompositingQuality = CompositingQuality.HighQuality;
g.SetGDIHigh();
int intWidth = Math.Min(this.Size.Width, this.Size.Height) - 1;
//底圆
......
......@@ -10,6 +10,7 @@ using System.Drawing.Drawing2D;
namespace HZH_Controls.Controls
{
[DefaultEvent("IndexChecked")]
public partial class UCStep : UserControl
{
......@@ -152,9 +153,7 @@ namespace HZH_Controls.Controls
{
base.OnPaint(e);
var g = e.Graphics;
g.SmoothingMode = SmoothingMode.AntiAlias; //使绘图质量最高,即消除锯齿
g.InterpolationMode = InterpolationMode.HighQualityBicubic;
g.CompositingQuality = CompositingQuality.HighQuality;
g.SetGDIHigh();
if (m_steps != null && m_steps.Length > 0)
{
......
namespace HZH_Controls.Controls
{
partial class UCSwitch
{
/// <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();
//
// UCSwitch
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.Transparent;
this.Name = "UCSwitch";
this.Size = new System.Drawing.Size(83, 31);
this.ResumeLayout(false);
}
#endregion
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
namespace HZH_Controls.Controls
{
[DefaultEvent("CheckedChanged")]
public partial class UCSwitch : UserControl
{
[Description("选中改变事件"), Category("自定义")]
public event EventHandler CheckedChanged;
private Color m_trueColor = Color.FromArgb(34, 163, 169);
[Description("选中时颜色"), Category("自定义")]
public Color TrueColor
{
get { return m_trueColor; }
set
{
m_trueColor = value;
Refresh();
}
}
private Color m_falseColor = Color.FromArgb(111, 122, 126);
[Description("没有选中时颜色"), Category("自定义")]
public Color FalseColor
{
get { return m_falseColor; }
set
{
m_falseColor = value;
Refresh();
}
}
private bool m_checked;
[Description("是否选中"), Category("自定义")]
public bool Checked
{
get { return m_checked; }
set
{
m_checked = value;
Refresh();
if (CheckedChanged != null)
{
CheckedChanged(this, null);
}
}
}
private string[] m_texts;
[Description("文本值,当选中或没有选中时显示,必须是长度为2的数组"), Category("自定义")]
public string[] Texts
{
get { return m_texts; }
set
{
m_texts = value;
Refresh();
}
}
private SwitchType m_switchType = SwitchType.Ellipse;
[Description("显示类型"), Category("自定义")]
public SwitchType SwitchType
{
get { return m_switchType; }
set
{
m_switchType = value;
Refresh();
}
}
public override Font Font
{
get
{
return base.Font;
}
set
{
base.Font = value;
Refresh();
}
}
public UCSwitch()
{
InitializeComponent();
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.DoubleBuffer, true);
this.SetStyle(ControlStyles.ResizeRedraw, true);
this.SetStyle(ControlStyles.Selectable, true);
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
this.SetStyle(ControlStyles.UserPaint, true);
this.MouseDown += UCSwitch_MouseDown;
}
void UCSwitch_MouseDown(object sender, MouseEventArgs e)
{
Checked = !Checked;
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
var g = e.Graphics;
g.SetGDIHigh();
if (m_switchType == HZH_Controls.Controls.SwitchType.Ellipse)
{
var fillColor = m_checked ? m_trueColor : m_falseColor;
GraphicsPath path = new GraphicsPath();
path.AddLine(new Point(this.Height / 2, 1), new Point(this.Width - this.Height / 2, 1));
path.AddArc(new Rectangle(this.Width - this.Height - 1, 1, this.Height - 2, this.Height - 2), -90, 180);
path.AddLine(new Point(this.Width - this.Height / 2, this.Height - 1), new Point(this.Height / 2, this.Height - 1));
path.AddArc(new Rectangle(1, 1, this.Height - 2, this.Height - 2), 90, 180);
g.FillPath(new SolidBrush(fillColor), path);
string strText = string.Empty;
if (m_texts != null && m_texts.Length == 2)
{
if (m_checked)
{
strText = m_texts[0];
}
else
{
strText = m_texts[1];
}
}
if (m_checked)
{
g.FillEllipse(Brushes.White, new Rectangle(this.Width - this.Height - 1 + 2, 1 + 2, this.Height - 2 - 4, this.Height - 2 - 4));
if (string.IsNullOrEmpty(strText))
{
g.DrawEllipse(new Pen(Color.White, 2), new Rectangle((this.Height - 2 - 4) / 2 - ((this.Height - 2 - 4) / 2) / 2, (this.Height - 2 - (this.Height - 2 - 4) / 2) / 2 + 1, (this.Height - 2 - 4) / 2, (this.Height - 2 - 4) / 2));
}
else
{
System.Drawing.SizeF sizeF = g.MeasureString(strText.Replace(" ", "A"), Font);
int intTextY = (this.Height - (int)sizeF.Height) / 2 + 2;
g.DrawString(strText, Font, Brushes.White, new Point((this.Height - 2 - 4) / 2, intTextY));
}
}
else
{
g.FillEllipse(Brushes.White, new Rectangle(1 + 2, 1 + 2, this.Height - 2 - 4, this.Height - 2 - 4));
if (string.IsNullOrEmpty(strText))
{
g.DrawEllipse(new Pen(Color.White, 2), new Rectangle(this.Width - 2 - (this.Height - 2 - 4) / 2 - ((this.Height - 2 - 4) / 2) / 2, (this.Height - 2 - (this.Height - 2 - 4) / 2) / 2 + 1, (this.Height - 2 - 4) / 2, (this.Height - 2 - 4) / 2));
}
else
{
System.Drawing.SizeF sizeF = g.MeasureString(strText.Replace(" ", "A"), Font);
int intTextY = (this.Height - (int)sizeF.Height) / 2 + 2;
g.DrawString(strText, Font, Brushes.White, new Point(this.Width - 2 - (this.Height - 2 - 4) / 2 - ((this.Height - 2 - 4) / 2) / 2 - (int)sizeF.Width / 2, intTextY));
}
}
}
else if (m_switchType == HZH_Controls.Controls.SwitchType.Quadrilateral)
{
var fillColor = m_checked ? m_trueColor : m_falseColor;
GraphicsPath path = new GraphicsPath();
int intRadius = 5;
path.AddArc(0, 0, intRadius, intRadius, 180f, 90f);
path.AddArc(this.Width - intRadius - 1, 0, intRadius, intRadius, 270f, 90f);
path.AddArc(this.Width - intRadius - 1, this.Height - intRadius - 1, intRadius, intRadius, 0f, 90f);
path.AddArc(0, this.Height - intRadius - 1, intRadius, intRadius, 90f, 90f);
g.FillPath(new SolidBrush(fillColor), path);
string strText = string.Empty;
if (m_texts != null && m_texts.Length == 2)
{
if (m_checked)
{
strText = m_texts[0];
}
else
{
strText = m_texts[1];
}
}
if (m_checked)
{
GraphicsPath path2 = new GraphicsPath();
path2.AddArc(this.Width - this.Height - 1 + 2, 1 + 2, intRadius, intRadius, 180f, 90f);
path2.AddArc(this.Width - 1 - 2 - intRadius, 1 + 2, intRadius, intRadius, 270f, 90f);
path2.AddArc(this.Width - 1 - 2 - intRadius, this.Height - 2 - intRadius - 1, intRadius, intRadius, 0f, 90f);
path2.AddArc(this.Width - this.Height - 1 + 2, this.Height - 2 - intRadius - 1, intRadius, intRadius, 90f, 90f);
g.FillPath(Brushes.White, path2);
if (string.IsNullOrEmpty(strText))
{
g.DrawEllipse(new Pen(Color.White, 2), new Rectangle((this.Height - 2 - 4) / 2 - ((this.Height - 2 - 4) / 2) / 2, (this.Height - 2 - (this.Height - 2 - 4) / 2) / 2 + 1, (this.Height - 2 - 4) / 2, (this.Height - 2 - 4) / 2));
}
else
{
System.Drawing.SizeF sizeF = g.MeasureString(strText.Replace(" ", "A"), Font);
int intTextY = (this.Height - (int)sizeF.Height) / 2 + 2;
g.DrawString(strText, Font, Brushes.White, new Point((this.Height - 2 - 4) / 2, intTextY));
}
}
else
{
GraphicsPath path2 = new GraphicsPath();
path2.AddArc(1 + 2, 1 + 2, intRadius, intRadius, 180f, 90f);
path2.AddArc(this.Height - 2 - intRadius, 1 + 2, intRadius, intRadius, 270f, 90f);
path2.AddArc(this.Height - 2 - intRadius, this.Height - 2 - intRadius - 1, intRadius, intRadius, 0f, 90f);
path2.AddArc(1 + 2, this.Height - 2 - intRadius - 1, intRadius, intRadius, 90f, 90f);
g.FillPath(Brushes.White, path2);
//g.FillEllipse(Brushes.White, new Rectangle(1 + 2, 1 + 2, this.Height - 2 - 4, this.Height - 2 - 4));
if (string.IsNullOrEmpty(strText))
{
g.DrawEllipse(new Pen(Color.White, 2), new Rectangle(this.Width - 2 - (this.Height - 2 - 4) / 2 - ((this.Height - 2 - 4) / 2) / 2, (this.Height - 2 - (this.Height - 2 - 4) / 2) / 2 + 1, (this.Height - 2 - 4) / 2, (this.Height - 2 - 4) / 2));
}
else
{
System.Drawing.SizeF sizeF = g.MeasureString(strText.Replace(" ", "A"), Font);
int intTextY = (this.Height - (int)sizeF.Height) / 2 + 2;
g.DrawString(strText, Font, Brushes.White, new Point(this.Width - 2 - (this.Height - 2 - 4) / 2 - ((this.Height - 2 - 4) / 2) / 2 - (int)sizeF.Width / 2, intTextY));
}
}
}
else
{
var fillColor = m_checked ? m_trueColor : m_falseColor;
int intLineHeight = (this.Height - 2 - 4) / 2;
GraphicsPath path = new GraphicsPath();
path.AddLine(new Point(this.Height / 2, (this.Height - intLineHeight) / 2), new Point(this.Width - this.Height / 2, (this.Height - intLineHeight) / 2));
path.AddArc(new Rectangle(this.Width - this.Height / 2 - intLineHeight - 1, (this.Height - intLineHeight) / 2, intLineHeight, intLineHeight), -90, 180);
path.AddLine(new Point(this.Width - this.Height / 2, (this.Height - intLineHeight) / 2 + intLineHeight), new Point(this.Width - this.Height / 2, (this.Height - intLineHeight) / 2 + intLineHeight));
path.AddArc(new Rectangle(this.Height / 2, (this.Height - intLineHeight) / 2, intLineHeight, intLineHeight), 90, 180);
g.FillPath(new SolidBrush(fillColor), path);
if (m_checked)
{
g.FillEllipse(new SolidBrush(fillColor), new Rectangle(this.Width - this.Height - 1 + 2, 1 + 2, this.Height - 2 - 4, this.Height - 2 - 4));
g.FillEllipse(Brushes.White, new Rectangle(this.Width - 2 - (this.Height - 2 - 4) / 2 - ((this.Height - 2 - 4) / 2) / 2 - 4, (this.Height - 2 - (this.Height - 2 - 4) / 2) / 2 + 1, (this.Height - 2 - 4) / 2, (this.Height - 2 - 4) / 2));
}
else
{
g.FillEllipse(new SolidBrush(fillColor), new Rectangle(1 + 2, 1 + 2, this.Height - 2 - 4, this.Height - 2 - 4));
g.FillEllipse(Brushes.White, new Rectangle((this.Height - 2 - 4) / 2 - ((this.Height - 2 - 4) / 2) / 2 + 4, (this.Height - 2 - (this.Height - 2 - 4) / 2) / 2 + 1, (this.Height - 2 - 4) / 2, (this.Height - 2 - 4) / 2));
}
}
}
}
public enum SwitchType
{
/// <summary>
/// 椭圆
/// </summary>
Ellipse,
/// <summary>
/// 四边形
/// </summary>
Quadrilateral,
/// <summary>
/// 横线
/// </summary>
Line
}
}
<?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>
\ No newline at end of file
......@@ -122,6 +122,12 @@
<Compile Include="Controls\Step\UCStep.Designer.cs">
<DependentUpon>UCStep.cs</DependentUpon>
</Compile>
<Compile Include="Controls\Switch\UCSwitch.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Controls\Switch\UCSwitch.Designer.cs">
<DependentUpon>UCSwitch.cs</DependentUpon>
</Compile>
<Compile Include="Controls\Tab\TabControlExt.cs">
<SubType>Component</SubType>
</Compile>
......@@ -450,6 +456,9 @@
<EmbeddedResource Include="Controls\Step\UCStep.resx">
<DependentUpon>UCStep.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\Switch\UCSwitch.resx">
<DependentUpon>UCSwitch.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\Text\TextBoxTransparent.resx">
<DependentUpon>TextBoxTransparent.cs</DependentUpon>
</EmbeddedResource>
......
......@@ -5,6 +5,8 @@
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
......@@ -630,5 +632,15 @@ namespace HZH_Controls
}
#endregion
/// <summary>
/// 设置GDI高质量模式抗锯齿
/// </summary>
/// <param name="g"></param>
public static void SetGDIHigh(this Graphics g)
{
g.SmoothingMode = SmoothingMode.AntiAlias; //使绘图质量最高,即消除锯齿
g.InterpolationMode = InterpolationMode.HighQualityBicubic;
g.CompositingQuality = CompositingQuality.HighQuality;
}
}
}
......@@ -31,10 +31,20 @@
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form2));
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.ucSwitch1 = new HZH_Controls.Controls.UCSwitch();
this.ucCrumbNavigation1 = new HZH_Controls.Controls.UCCrumbNavigation();
this.ucProcessEllipse1 = new HZH_Controls.Controls.UCProcessEllipse();
this.ucPanelTitle1 = new HZH_Controls.Controls.UCPanelTitle();
this.ucStep1 = new HZH_Controls.Controls.UCStep();
this.ucSwitch2 = new HZH_Controls.Controls.UCSwitch();
this.ucSwitch3 = new HZH_Controls.Controls.UCSwitch();
this.ucSwitch4 = new HZH_Controls.Controls.UCSwitch();
this.ucSwitch5 = new HZH_Controls.Controls.UCSwitch();
this.ucSwitch6 = new HZH_Controls.Controls.UCSwitch();
this.ucSwitch7 = new HZH_Controls.Controls.UCSwitch();
this.ucSwitch8 = new HZH_Controls.Controls.UCSwitch();
this.ucSwitch9 = new HZH_Controls.Controls.UCSwitch();
this.ucSwitch10 = new HZH_Controls.Controls.UCSwitch();
this.SuspendLayout();
//
// timer1
......@@ -42,11 +52,24 @@
this.timer1.Enabled = true;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// ucSwitch1
//
this.ucSwitch1.BackColor = System.Drawing.Color.Transparent;
this.ucSwitch1.Checked = true;
this.ucSwitch1.FalseColor = System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(122)))), ((int)(((byte)(126)))));
this.ucSwitch1.Location = new System.Drawing.Point(12, 503);
this.ucSwitch1.Name = "ucSwitch1";
this.ucSwitch1.Size = new System.Drawing.Size(86, 34);
this.ucSwitch1.SwitchType = HZH_Controls.Controls.SwitchType.Line;
this.ucSwitch1.TabIndex = 4;
this.ucSwitch1.Texts = new string[0];
this.ucSwitch1.TrueColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(163)))), ((int)(((byte)(169)))));
//
// ucCrumbNavigation1
//
this.ucCrumbNavigation1.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucCrumbNavigation1.ForeColor = System.Drawing.Color.White;
this.ucCrumbNavigation1.Location = new System.Drawing.Point(224, 254);
this.ucCrumbNavigation1.Location = new System.Drawing.Point(177, 159);
this.ucCrumbNavigation1.MinimumSize = new System.Drawing.Size(0, 25);
this.ucCrumbNavigation1.Name = "ucCrumbNavigation1";
this.ucCrumbNavigation1.NavColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
......@@ -115,11 +138,146 @@
this.ucStep1.StepWidth = 50;
this.ucStep1.TabIndex = 0;
//
// ucSwitch2
//
this.ucSwitch2.BackColor = System.Drawing.Color.Transparent;
this.ucSwitch2.Checked = false;
this.ucSwitch2.FalseColor = System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(122)))), ((int)(((byte)(126)))));
this.ucSwitch2.Location = new System.Drawing.Point(126, 503);
this.ucSwitch2.Name = "ucSwitch2";
this.ucSwitch2.Size = new System.Drawing.Size(86, 34);
this.ucSwitch2.SwitchType = HZH_Controls.Controls.SwitchType.Line;
this.ucSwitch2.TabIndex = 4;
this.ucSwitch2.Texts = new string[0];
this.ucSwitch2.TrueColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(163)))), ((int)(((byte)(169)))));
//
// ucSwitch3
//
this.ucSwitch3.BackColor = System.Drawing.Color.Transparent;
this.ucSwitch3.Checked = true;
this.ucSwitch3.FalseColor = System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(122)))), ((int)(((byte)(126)))));
this.ucSwitch3.Location = new System.Drawing.Point(12, 337);
this.ucSwitch3.Name = "ucSwitch3";
this.ucSwitch3.Size = new System.Drawing.Size(86, 34);
this.ucSwitch3.SwitchType = HZH_Controls.Controls.SwitchType.Ellipse;
this.ucSwitch3.TabIndex = 4;
this.ucSwitch3.Texts = new string[0];
this.ucSwitch3.TrueColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(163)))), ((int)(((byte)(169)))));
//
// ucSwitch4
//
this.ucSwitch4.BackColor = System.Drawing.Color.Transparent;
this.ucSwitch4.Checked = false;
this.ucSwitch4.FalseColor = System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(122)))), ((int)(((byte)(126)))));
this.ucSwitch4.Location = new System.Drawing.Point(12, 377);
this.ucSwitch4.Name = "ucSwitch4";
this.ucSwitch4.Size = new System.Drawing.Size(86, 34);
this.ucSwitch4.SwitchType = HZH_Controls.Controls.SwitchType.Ellipse;
this.ucSwitch4.TabIndex = 4;
this.ucSwitch4.Texts = new string[0];
this.ucSwitch4.TrueColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(163)))), ((int)(((byte)(169)))));
//
// ucSwitch5
//
this.ucSwitch5.BackColor = System.Drawing.Color.Transparent;
this.ucSwitch5.Checked = true;
this.ucSwitch5.FalseColor = System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(122)))), ((int)(((byte)(126)))));
this.ucSwitch5.Location = new System.Drawing.Point(126, 337);
this.ucSwitch5.Name = "ucSwitch5";
this.ucSwitch5.Size = new System.Drawing.Size(86, 34);
this.ucSwitch5.SwitchType = HZH_Controls.Controls.SwitchType.Quadrilateral;
this.ucSwitch5.TabIndex = 4;
this.ucSwitch5.Texts = new string[0];
this.ucSwitch5.TrueColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(163)))), ((int)(((byte)(169)))));
//
// ucSwitch6
//
this.ucSwitch6.BackColor = System.Drawing.Color.Transparent;
this.ucSwitch6.Checked = false;
this.ucSwitch6.FalseColor = System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(122)))), ((int)(((byte)(126)))));
this.ucSwitch6.Location = new System.Drawing.Point(126, 377);
this.ucSwitch6.Name = "ucSwitch6";
this.ucSwitch6.Size = new System.Drawing.Size(86, 34);
this.ucSwitch6.SwitchType = HZH_Controls.Controls.SwitchType.Quadrilateral;
this.ucSwitch6.TabIndex = 4;
this.ucSwitch6.Texts = new string[0];
this.ucSwitch6.TrueColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(163)))), ((int)(((byte)(169)))));
//
// ucSwitch7
//
this.ucSwitch7.BackColor = System.Drawing.Color.Transparent;
this.ucSwitch7.Checked = true;
this.ucSwitch7.FalseColor = System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(122)))), ((int)(((byte)(126)))));
this.ucSwitch7.Location = new System.Drawing.Point(12, 423);
this.ucSwitch7.Name = "ucSwitch7";
this.ucSwitch7.Size = new System.Drawing.Size(86, 34);
this.ucSwitch7.SwitchType = HZH_Controls.Controls.SwitchType.Ellipse;
this.ucSwitch7.TabIndex = 4;
this.ucSwitch7.Texts = new string[] {
"确定",
"取消"};
this.ucSwitch7.TrueColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(163)))), ((int)(((byte)(169)))));
//
// ucSwitch8
//
this.ucSwitch8.BackColor = System.Drawing.Color.Transparent;
this.ucSwitch8.Checked = false;
this.ucSwitch8.FalseColor = System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(122)))), ((int)(((byte)(126)))));
this.ucSwitch8.Location = new System.Drawing.Point(12, 463);
this.ucSwitch8.Name = "ucSwitch8";
this.ucSwitch8.Size = new System.Drawing.Size(86, 34);
this.ucSwitch8.SwitchType = HZH_Controls.Controls.SwitchType.Ellipse;
this.ucSwitch8.TabIndex = 4;
this.ucSwitch8.Texts = new string[] {
"确定",
"取消"};
this.ucSwitch8.TrueColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(163)))), ((int)(((byte)(169)))));
//
// ucSwitch9
//
this.ucSwitch9.BackColor = System.Drawing.Color.Transparent;
this.ucSwitch9.Checked = true;
this.ucSwitch9.FalseColor = System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(122)))), ((int)(((byte)(126)))));
this.ucSwitch9.Location = new System.Drawing.Point(126, 423);
this.ucSwitch9.Name = "ucSwitch9";
this.ucSwitch9.Size = new System.Drawing.Size(86, 34);
this.ucSwitch9.SwitchType = HZH_Controls.Controls.SwitchType.Quadrilateral;
this.ucSwitch9.TabIndex = 4;
this.ucSwitch9.Texts = new string[] {
"确定",
"取消"};
this.ucSwitch9.TrueColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(163)))), ((int)(((byte)(169)))));
//
// ucSwitch10
//
this.ucSwitch10.BackColor = System.Drawing.Color.Transparent;
this.ucSwitch10.Checked = false;
this.ucSwitch10.FalseColor = System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(122)))), ((int)(((byte)(126)))));
this.ucSwitch10.Location = new System.Drawing.Point(126, 463);
this.ucSwitch10.Name = "ucSwitch10";
this.ucSwitch10.Size = new System.Drawing.Size(86, 34);
this.ucSwitch10.SwitchType = HZH_Controls.Controls.SwitchType.Quadrilateral;
this.ucSwitch10.TabIndex = 4;
this.ucSwitch10.Texts = new string[] {
"确定",
"取消"};
this.ucSwitch10.TrueColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(163)))), ((int)(((byte)(169)))));
//
// Form2
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(825, 594);
this.Controls.Add(this.ucSwitch10);
this.Controls.Add(this.ucSwitch9);
this.Controls.Add(this.ucSwitch6);
this.Controls.Add(this.ucSwitch8);
this.Controls.Add(this.ucSwitch5);
this.Controls.Add(this.ucSwitch7);
this.Controls.Add(this.ucSwitch4);
this.Controls.Add(this.ucSwitch3);
this.Controls.Add(this.ucSwitch2);
this.Controls.Add(this.ucSwitch1);
this.Controls.Add(this.ucCrumbNavigation1);
this.Controls.Add(this.ucProcessEllipse1);
this.Controls.Add(this.ucPanelTitle1);
......@@ -138,5 +296,15 @@
private HZH_Controls.Controls.UCProcessEllipse ucProcessEllipse1;
private System.Windows.Forms.Timer timer1;
private HZH_Controls.Controls.UCCrumbNavigation ucCrumbNavigation1;
private HZH_Controls.Controls.UCSwitch ucSwitch1;
private HZH_Controls.Controls.UCSwitch ucSwitch2;
private HZH_Controls.Controls.UCSwitch ucSwitch3;
private HZH_Controls.Controls.UCSwitch ucSwitch4;
private HZH_Controls.Controls.UCSwitch ucSwitch5;
private HZH_Controls.Controls.UCSwitch ucSwitch6;
private HZH_Controls.Controls.UCSwitch ucSwitch7;
private HZH_Controls.Controls.UCSwitch ucSwitch8;
private HZH_Controls.Controls.UCSwitch ucSwitch9;
private HZH_Controls.Controls.UCSwitch ucSwitch10;
}
}
\ No newline at end of file
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!