Commit db74c549 HZH

解决stepbug

1 个父辈 d078dd5e
......@@ -214,12 +214,12 @@ namespace HZH_Controls.Controls
{
if (m_stepIndex == i + 1)
{
g.DrawLine(new Pen(m_stepForeColor, m_lineWidth), new Point(intLeft + i * (m_stepWidth + intSplitWidth) + m_stepWidth - 3, y + ((m_stepWidth) / 2)), new Point((i + 1) * (m_stepWidth + intSplitWidth) - intSplitWidth / 2, y + ((m_stepWidth) / 2)));
g.DrawLine(new Pen(m_stepBackColor, m_lineWidth), new Point(intLeft + i * (m_stepWidth + intSplitWidth) + m_stepWidth + intSplitWidth / 2, y + ((m_stepWidth) / 2)), new Point((i + 1) * (m_stepWidth + intSplitWidth) + 3, y + ((m_stepWidth) / 2)));
g.DrawLine(new Pen(m_stepForeColor, m_lineWidth), new Point(intLeft + i * (m_stepWidth + intSplitWidth) + m_stepWidth - 3, y + ((m_stepWidth) / 2)), new Point((i + 1) * (m_stepWidth + intSplitWidth) - intSplitWidth / 2 + 10, y + ((m_stepWidth) / 2)));
g.DrawLine(new Pen(m_stepBackColor, m_lineWidth), new Point(intLeft + i * (m_stepWidth + intSplitWidth) + m_stepWidth + intSplitWidth / 2, y + ((m_stepWidth) / 2)), new Point((i + 1) * (m_stepWidth + intSplitWidth) + 10, y + ((m_stepWidth) / 2)));
}
else
{
g.DrawLine(new Pen(m_stepForeColor, m_lineWidth), new Point(intLeft + i * (m_stepWidth + intSplitWidth) + m_stepWidth - 3, y + ((m_stepWidth) / 2)), new Point((i + 1) * (m_stepWidth + intSplitWidth) + 3, y + ((m_stepWidth) / 2)));
g.DrawLine(new Pen(m_stepForeColor, m_lineWidth), new Point(intLeft + i * (m_stepWidth + intSplitWidth) + m_stepWidth - 3, y + ((m_stepWidth) / 2)), new Point((i + 1) * (m_stepWidth + intSplitWidth) + 10, y + ((m_stepWidth) / 2)));
}
}
}
......@@ -227,7 +227,7 @@ namespace HZH_Controls.Controls
{
if (i != m_steps.Length - 1)
{
g.DrawLine(new Pen(m_stepBackColor, m_lineWidth), new Point(intLeft + i * (m_stepWidth + intSplitWidth) + m_stepWidth - 3, y + ((m_stepWidth) / 2)), new Point((i + 1) * (m_stepWidth + intSplitWidth) + 3, y + ((m_stepWidth) / 2)));
g.DrawLine(new Pen(m_stepBackColor, m_lineWidth), new Point(intLeft + i * (m_stepWidth + intSplitWidth) + m_stepWidth - 3, y + ((m_stepWidth) / 2)), new Point((i + 1) * (m_stepWidth + intSplitWidth) + 10, y + ((m_stepWidth) / 2)));
}
}
}
......
......@@ -2,7 +2,7 @@
<package >
<metadata>
<id>$id$</id>
<version>1.0.0</version>
<version>1.0.1</version>
<title>HZHControls</title>
<authors>HuangZhengHui</authors>
<owners>HuangZhengHui</owners>
......@@ -13,6 +13,6 @@
<description>C# winfrom custom control, has better operation support for touch screen. The project is based on framework 4.0, completely native control development, without using any third-party control, you can rest assured that it is used in your project.</description>
<releaseNotes></releaseNotes>
<copyright>Copyright 2019</copyright>
<tags>c# winfrom custom control</tags>
<tags>c# winfrom custom control HZH_Controls HZHControls</tags>
</metadata>
</package>
\ No newline at end of file
......@@ -31,20 +31,22 @@
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.ucSwitch10 = new HZH_Controls.Controls.UCSwitch();
this.ucSwitch9 = new HZH_Controls.Controls.UCSwitch();
this.ucSwitch6 = new HZH_Controls.Controls.UCSwitch();
this.ucSwitch8 = new HZH_Controls.Controls.UCSwitch();
this.ucSwitch5 = new HZH_Controls.Controls.UCSwitch();
this.ucSwitch7 = new HZH_Controls.Controls.UCSwitch();
this.ucSwitch4 = new HZH_Controls.Controls.UCSwitch();
this.ucSwitch3 = new HZH_Controls.Controls.UCSwitch();
this.ucSwitch2 = new HZH_Controls.Controls.UCSwitch();
this.ucSwitch1 = new HZH_Controls.Controls.UCSwitch();
this.ucCrumbNavigation1 = new HZH_Controls.Controls.UCCrumbNavigation();
this.ucProcessEllipse2 = new HZH_Controls.Controls.UCProcessEllipse();
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.ucStep2 = new HZH_Controls.Controls.UCStep();
this.SuspendLayout();
//
// timer1
......@@ -52,6 +54,131 @@
this.timer1.Enabled = true;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// 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)))));
//
// 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)))));
//
// 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)))));
//
// 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)))));
//
// 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)))));
//
// 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)))));
//
// 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)))));
//
// 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)))));
//
// 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)))));
//
// ucSwitch1
//
this.ucSwitch1.BackColor = System.Drawing.Color.Transparent;
......@@ -69,7 +196,7 @@
//
this.ucCrumbNavigation1.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucCrumbNavigation1.ForeColor = System.Drawing.Color.White;
this.ucCrumbNavigation1.Location = new System.Drawing.Point(177, 159);
this.ucCrumbNavigation1.Location = new System.Drawing.Point(12, 557);
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)))));
......@@ -81,6 +208,23 @@
this.ucCrumbNavigation1.Size = new System.Drawing.Size(222, 25);
this.ucCrumbNavigation1.TabIndex = 3;
//
// ucProcessEllipse2
//
this.ucProcessEllipse2.BackEllipseColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(160)))), ((int)(((byte)(133)))));
this.ucProcessEllipse2.CoreEllipseColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))));
this.ucProcessEllipse2.IsShowCoreEllipseBorder = true;
this.ucProcessEllipse2.Location = new System.Drawing.Point(202, 173);
this.ucProcessEllipse2.MaxValue = 100;
this.ucProcessEllipse2.Name = "ucProcessEllipse2";
this.ucProcessEllipse2.ShowType = HZH_Controls.Controls.ShowType.Sector;
this.ucProcessEllipse2.Size = new System.Drawing.Size(150, 150);
this.ucProcessEllipse2.TabIndex = 2;
this.ucProcessEllipse2.Value = 0;
this.ucProcessEllipse2.ValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucProcessEllipse2.ValueMargin = 5;
this.ucProcessEllipse2.ValueType = HZH_Controls.Controls.ValueType.Percent;
this.ucProcessEllipse2.ValueWidth = 30;
//
// ucProcessEllipse1
//
this.ucProcessEllipse1.BackEllipseColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(160)))), ((int)(((byte)(133)))));
......@@ -122,9 +266,9 @@
this.ucStep1.Font = new System.Drawing.Font("微软雅黑", 12F);
this.ucStep1.ImgCompleted = ((System.Drawing.Image)(resources.GetObject("ucStep1.ImgCompleted")));
this.ucStep1.LineWidth = 10;
this.ucStep1.Location = new System.Drawing.Point(12, 12);
this.ucStep1.Location = new System.Drawing.Point(12, -2);
this.ucStep1.Name = "ucStep1";
this.ucStep1.Size = new System.Drawing.Size(360, 130);
this.ucStep1.Size = new System.Drawing.Size(362, 77);
this.ucStep1.StepBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
this.ucStep1.StepFontColor = System.Drawing.Color.White;
this.ucStep1.StepForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(184)))), ((int)(((byte)(255)))));
......@@ -135,133 +279,30 @@
"step3",
"step4",
"step5"};
this.ucStep1.StepWidth = 50;
this.ucStep1.StepWidth = 35;
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)))));
// ucStep2
//
this.ucStep2.BackColor = System.Drawing.Color.Transparent;
this.ucStep2.Font = new System.Drawing.Font("微软雅黑", 12F);
this.ucStep2.ImgCompleted = null;
this.ucStep2.LineWidth = 10;
this.ucStep2.Location = new System.Drawing.Point(12, 81);
this.ucStep2.Name = "ucStep2";
this.ucStep2.Size = new System.Drawing.Size(362, 86);
this.ucStep2.StepBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
this.ucStep2.StepFontColor = System.Drawing.Color.White;
this.ucStep2.StepForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(184)))), ((int)(((byte)(255)))));
this.ucStep2.StepIndex = 2;
this.ucStep2.Steps = new string[] {
"step1",
"step2",
"step3",
"step4",
"step5"};
this.ucStep2.StepWidth = 35;
this.ucStep2.TabIndex = 0;
//
// Form2
//
......@@ -279,8 +320,10 @@
this.Controls.Add(this.ucSwitch2);
this.Controls.Add(this.ucSwitch1);
this.Controls.Add(this.ucCrumbNavigation1);
this.Controls.Add(this.ucProcessEllipse2);
this.Controls.Add(this.ucProcessEllipse1);
this.Controls.Add(this.ucPanelTitle1);
this.Controls.Add(this.ucStep2);
this.Controls.Add(this.ucStep1);
this.Name = "Form2";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
......@@ -306,5 +349,7 @@
private HZH_Controls.Controls.UCSwitch ucSwitch8;
private HZH_Controls.Controls.UCSwitch ucSwitch9;
private HZH_Controls.Controls.UCSwitch ucSwitch10;
private HZH_Controls.Controls.UCProcessEllipse ucProcessEllipse2;
private HZH_Controls.Controls.UCStep ucStep2;
}
}
\ No newline at end of file
......@@ -24,8 +24,11 @@ namespace Test
private void timer1_Tick(object sender, EventArgs e)
{
this.ucProcessEllipse1.Value++;
this.ucProcessEllipse2.Value++;
if (this.ucProcessEllipse1.Value == 100)
timer1.Enabled = false;
this.ucProcessEllipse1.Value = 0;
if (this.ucProcessEllipse2.Value == 100)
this.ucProcessEllipse2.Value = 0;
}
}
}
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!