Commit 710ddb41 Leo

step控件支持一个步骤

1 个父辈 b60631b4
...@@ -25,310 +25,312 @@ using System.Drawing.Drawing2D; ...@@ -25,310 +25,312 @@ using System.Drawing.Drawing2D;
namespace HZH_Controls.Controls namespace HZH_Controls.Controls
{ {
/// <summary> /// <summary>
/// Class UCStep. /// Class UCStep.
/// Implements the <see cref="System.Windows.Forms.UserControl" /> /// Implements the <see cref="System.Windows.Forms.UserControl" />
/// </summary> /// </summary>
/// <seealso cref="System.Windows.Forms.UserControl" /> /// <seealso cref="System.Windows.Forms.UserControl" />
[DefaultEvent("IndexChecked")] [DefaultEvent("IndexChecked")]
public partial class UCStep : UserControl public partial class UCStep : UserControl
{ {
/// <summary> /// <summary>
/// Occurs when [index checked]. /// Occurs when [index checked].
/// </summary> /// </summary>
[Description("步骤更改事件"), Category("自定义")] [Description("步骤更改事件"), Category("自定义")]
public event EventHandler IndexChecked; public event EventHandler IndexChecked;
/// <summary> /// <summary>
/// The m step back color /// The m step back color
/// </summary> /// </summary>
private Color m_stepBackColor = Color.FromArgb(189, 189, 189); private Color m_stepBackColor = Color.FromArgb(189, 189, 189);
/// <summary> /// <summary>
/// 步骤背景色 /// 步骤背景色
/// </summary> /// </summary>
/// <value>The color of the step back.</value> /// <value>The color of the step back.</value>
[Description("步骤背景色"), Category("自定义")] [Description("步骤背景色"), Category("自定义")]
public Color StepBackColor public Color StepBackColor
{ {
get { return m_stepBackColor; } get { return m_stepBackColor; }
set set
{ {
m_stepBackColor = value; m_stepBackColor = value;
Refresh(); Refresh();
} }
} }
/// <summary> /// <summary>
/// The m step fore color /// The m step fore color
/// </summary> /// </summary>
private Color m_stepForeColor = Color.FromArgb(255, 77, 59); private Color m_stepForeColor = Color.FromArgb(255, 77, 59);
/// <summary> /// <summary>
/// 步骤前景色 /// 步骤前景色
/// </summary> /// </summary>
/// <value>The color of the step fore.</value> /// <value>The color of the step fore.</value>
[Description("步骤前景色"), Category("自定义")] [Description("步骤前景色"), Category("自定义")]
public Color StepForeColor public Color StepForeColor
{ {
get { return m_stepForeColor; } get { return m_stepForeColor; }
set set
{ {
m_stepForeColor = value; m_stepForeColor = value;
Refresh(); Refresh();
} }
} }
/// <summary> /// <summary>
/// The m step font color /// The m step font color
/// </summary> /// </summary>
private Color m_stepFontColor = Color.White; private Color m_stepFontColor = Color.White;
/// <summary> /// <summary>
/// 步骤文字颜色 /// 步骤文字颜色
/// </summary> /// </summary>
/// <value>The color of the step font.</value> /// <value>The color of the step font.</value>
[Description("步骤文字景色"), Category("自定义")] [Description("步骤文字景色"), Category("自定义")]
public Color StepFontColor public Color StepFontColor
{ {
get { return m_stepFontColor; } get { return m_stepFontColor; }
set set
{ {
m_stepFontColor = value; m_stepFontColor = value;
Refresh(); Refresh();
} }
} }
/// <summary> /// <summary>
/// The m step width /// The m step width
/// </summary> /// </summary>
private int m_stepWidth = 35; private int m_stepWidth = 35;
/// <summary> /// <summary>
/// 步骤宽度 /// 步骤宽度
/// </summary> /// </summary>
/// <value>The width of the step.</value> /// <value>The width of the step.</value>
[Description("步骤宽度景色"), Category("自定义")] [Description("步骤宽度景色"), Category("自定义")]
public int StepWidth public int StepWidth
{ {
get { return m_stepWidth; } get { return m_stepWidth; }
set set
{ {
m_stepWidth = value; m_stepWidth = value;
Refresh(); Refresh();
} }
} }
/// <summary> /// <summary>
/// The m steps /// The m steps
/// </summary> /// </summary>
private string[] m_steps = new string[] { "step1", "step2", "step3" }; private string[] m_steps = new string[] { "step1", "step2", "step3" };
/// <summary> /// <summary>
/// Gets or sets the steps. /// Gets or sets the steps.
/// </summary> /// </summary>
/// <value>The steps.</value> /// <value>The steps.</value>
[Description("步骤"), Category("自定义")] [Description("步骤"), Category("自定义")]
public string[] Steps public string[] Steps
{ {
get { return m_steps; } get { return m_steps; }
set set
{ {
if (m_steps == null || m_steps.Length <= 1) if (m_steps == null || m_steps.Length < 1)
return; return;
m_steps = value; m_steps = value;
Refresh(); Refresh();
} }
} }
/// <summary> /// <summary>
/// The m step index /// The m step index
/// </summary> /// </summary>
private int m_stepIndex = 0; private int m_stepIndex = 0;
/// <summary> /// <summary>
/// Gets or sets the index of the step. /// Gets or sets the index of the step.
/// </summary> /// </summary>
/// <value>The index of the step.</value> /// <value>The index of the step.</value>
[Description("步骤位置"), Category("自定义")] [Description("步骤位置"), Category("自定义")]
public int StepIndex public int StepIndex
{ {
get { return m_stepIndex; } get { return m_stepIndex; }
set set
{ {
if (value > Steps.Length) if (value > Steps.Length)
return; return;
m_stepIndex = value; m_stepIndex = value;
Refresh(); Refresh();
if (IndexChecked != null) if (IndexChecked != null)
{ {
IndexChecked(this, null); IndexChecked(this, null);
} }
} }
} }
/// <summary> /// <summary>
/// The m line width /// The m line width
/// </summary> /// </summary>
private int m_lineWidth = 2; private int m_lineWidth = 2;
/// <summary> /// <summary>
/// Gets or sets the width of the line. /// Gets or sets the width of the line.
/// </summary> /// </summary>
/// <value>The width of the line.</value> /// <value>The width of the line.</value>
[Description("连接线宽度,最小2"), Category("自定义")] [Description("连接线宽度,最小2"), Category("自定义")]
public int LineWidth public int LineWidth
{ {
get { return m_lineWidth; } get { return m_lineWidth; }
set set
{ {
if (value < 2) if (value < 2)
return; return;
m_lineWidth = value; m_lineWidth = value;
Refresh(); Refresh();
} }
} }
/// <summary> /// <summary>
/// The m img completed /// The m img completed
/// </summary> /// </summary>
private Image m_imgCompleted = null; private Image m_imgCompleted = null;
/// <summary> /// <summary>
/// Gets or sets the img completed. /// Gets or sets the img completed.
/// </summary> /// </summary>
/// <value>The img completed.</value> /// <value>The img completed.</value>
[Description("已完成步骤图片,当不为空时,已完成步骤将不再显示数字,建议24*24大小"), Category("自定义")] [Description("已完成步骤图片,当不为空时,已完成步骤将不再显示数字,建议24*24大小"), Category("自定义")]
public Image ImgCompleted public Image ImgCompleted
{ {
get { return m_imgCompleted; } get { return m_imgCompleted; }
set set
{ {
m_imgCompleted = value; m_imgCompleted = value;
Refresh(); Refresh();
} }
} }
/// <summary> /// <summary>
/// The m LST cache rect /// The m LST cache rect
/// </summary> /// </summary>
List<Rectangle> m_lstCacheRect = new List<Rectangle>(); List<Rectangle> m_lstCacheRect = new List<Rectangle>();
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="UCStep" /> class. /// Initializes a new instance of the <see cref="UCStep" /> class.
/// </summary> /// </summary>
public UCStep() public UCStep()
{ {
InitializeComponent(); InitializeComponent();
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.DoubleBuffer, true); this.SetStyle(ControlStyles.DoubleBuffer, true);
this.SetStyle(ControlStyles.ResizeRedraw, true); this.SetStyle(ControlStyles.ResizeRedraw, true);
this.SetStyle(ControlStyles.Selectable, true); this.SetStyle(ControlStyles.Selectable, true);
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true); this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
this.SetStyle(ControlStyles.UserPaint, true); this.SetStyle(ControlStyles.UserPaint, true);
this.MouseDown += UCStep_MouseDown; this.MouseDown += UCStep_MouseDown;
} }
/// <summary> /// <summary>
/// Handles the MouseDown event of the UCStep control. /// Handles the MouseDown event of the UCStep control.
/// </summary> /// </summary>
/// <param name="sender">The source of the event.</param> /// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="MouseEventArgs" /> instance containing the event data.</param> /// <param name="e">The <see cref="MouseEventArgs" /> instance containing the event data.</param>
void UCStep_MouseDown(object sender, MouseEventArgs e) void UCStep_MouseDown(object sender, MouseEventArgs e)
{ {
var index = m_lstCacheRect.FindIndex(p => p.Contains(e.Location)); var index = m_lstCacheRect.FindIndex(p => p.Contains(e.Location));
if (index >= 0) if (index >= 0)
{ {
StepIndex = index + 1; StepIndex = index + 1;
} }
} }
/// <summary> /// <summary>
/// 引发 <see cref="E:System.Windows.Forms.Control.Paint" /> 事件。 /// 引发 <see cref="E:System.Windows.Forms.Control.Paint" /> 事件。
/// </summary> /// </summary>
/// <param name="e">包含事件数据的 <see cref="T:System.Windows.Forms.PaintEventArgs" />。</param> /// <param name="e">包含事件数据的 <see cref="T:System.Windows.Forms.PaintEventArgs" />。</param>
protected override void OnPaint(PaintEventArgs e) protected override void OnPaint(PaintEventArgs e)
{ {
base.OnPaint(e); base.OnPaint(e);
var g = e.Graphics; var g = e.Graphics;
g.SetGDIHigh(); g.SetGDIHigh();
if (m_steps != null && m_steps.Length > 0) if (m_steps != null && m_steps.Length > 0)
{ {
System.Drawing.SizeF sizeFirst = g.MeasureString(m_steps[0], this.Font); System.Drawing.SizeF sizeFirst = g.MeasureString(m_steps[0], this.Font);
int y = (this.Height - m_stepWidth - 10 - (int)sizeFirst.Height) / 2; int y = (this.Height - m_stepWidth - 10 - (int)sizeFirst.Height) / 2;
if (y < 0) if (y < 0)
y = 0; y = 0;
int intTxtY = y + m_stepWidth + 10; int intTxtY = y + m_stepWidth + 10;
int intLeft = 0; int intLeft = 0;
if (sizeFirst.Width > m_stepWidth) if (sizeFirst.Width > m_stepWidth)
{ {
intLeft = (int)(sizeFirst.Width - m_stepWidth) / 2 + 1; intLeft = (int)(sizeFirst.Width - m_stepWidth) / 2 + 1;
} }
int intRight = 0; int intRight = 0;
System.Drawing.SizeF sizeEnd = g.MeasureString(m_steps[m_steps.Length - 1], this.Font); System.Drawing.SizeF sizeEnd = g.MeasureString(m_steps[m_steps.Length - 1], this.Font);
if (sizeEnd.Width > m_stepWidth) if (sizeEnd.Width > m_stepWidth)
{ {
intRight = (int)(sizeEnd.Width - m_stepWidth) / 2 + 1; intRight = (int)(sizeEnd.Width - m_stepWidth) / 2 + 1;
} }
int intSplitWidth = 20; int intSplitWidth = 20;
intSplitWidth = (this.Width - m_steps.Length - (m_steps.Length * m_stepWidth) - intRight - intLeft) / (m_steps.Length - 1); if (m_steps.Length > 1)
if (intSplitWidth < 20) {
intSplitWidth = 20; intSplitWidth = (this.Width - m_steps.Length - (m_steps.Length * m_stepWidth) - intRight - intLeft) / (m_steps.Length - 1);
m_lstCacheRect = new List<Rectangle>(); }
for (int i = 0; i < m_steps.Length; i++)
{ m_lstCacheRect = new List<Rectangle>();
#region 画圆,横线 for (int i = 0; i < m_steps.Length; i++)
Rectangle rectEllipse = new Rectangle(new Point(intLeft + i * (m_stepWidth + intSplitWidth), y), new Size(m_stepWidth, m_stepWidth)); {
m_lstCacheRect.Add(rectEllipse); #region 画圆,横线
g.FillEllipse(new SolidBrush(m_stepBackColor), rectEllipse); Rectangle rectEllipse = new Rectangle(new Point(intLeft + i * (m_stepWidth + intSplitWidth), y), new Size(m_stepWidth, m_stepWidth));
m_lstCacheRect.Add(rectEllipse);
g.FillEllipse(new SolidBrush(m_stepBackColor), rectEllipse);
if (m_stepIndex > i) if (m_stepIndex > i)
{ {
g.FillEllipse(new SolidBrush(m_stepForeColor), new Rectangle(new Point(intLeft + i * (m_stepWidth + intSplitWidth) + 2, y + 2), new Size(m_stepWidth - 4, m_stepWidth - 4))); g.FillEllipse(new SolidBrush(m_stepForeColor), new Rectangle(new Point(intLeft + i * (m_stepWidth + intSplitWidth) + 2, y + 2), new Size(m_stepWidth - 4, m_stepWidth - 4)));
} }
if (m_stepIndex > i && m_imgCompleted != null) if (m_stepIndex > i && m_imgCompleted != null)
{ {
g.DrawImage(m_imgCompleted, new Rectangle(new Point((intLeft + i * (m_stepWidth + intSplitWidth) + (m_stepWidth - 24) / 2), y + (m_stepWidth - 24) / 2), new Size(24, 24)), 0, 0, m_imgCompleted.Width, m_imgCompleted.Height, GraphicsUnit.Pixel, null); g.DrawImage(m_imgCompleted, new Rectangle(new Point((intLeft + i * (m_stepWidth + intSplitWidth) + (m_stepWidth - 24) / 2), y + (m_stepWidth - 24) / 2), new Size(24, 24)), 0, 0, m_imgCompleted.Width, m_imgCompleted.Height, GraphicsUnit.Pixel, null);
} }
else else
{ {
System.Drawing.SizeF _numSize = g.MeasureString((i + 1).ToString(), this.Font); System.Drawing.SizeF _numSize = g.MeasureString((i + 1).ToString(), this.Font);
g.DrawString((i + 1).ToString(), Font, new SolidBrush(m_stepFontColor), new Point(intLeft + i * (m_stepWidth + intSplitWidth) + (m_stepWidth - (int)_numSize.Width) / 2 + 1, y + (m_stepWidth - (int)_numSize.Height) / 2 + 1)); g.DrawString((i + 1).ToString(), Font, new SolidBrush(m_stepFontColor), new Point(intLeft + i * (m_stepWidth + intSplitWidth) + (m_stepWidth - (int)_numSize.Width) / 2 + 1, y + (m_stepWidth - (int)_numSize.Height) / 2 + 1));
} }
#endregion #endregion
System.Drawing.SizeF sizeTxt = g.MeasureString(m_steps[i], this.Font); System.Drawing.SizeF sizeTxt = g.MeasureString(m_steps[i], this.Font);
g.DrawString(m_steps[i], Font, new SolidBrush(m_stepIndex > i ? m_stepForeColor : m_stepBackColor), new Point(intLeft + i * (m_stepWidth + intSplitWidth) + (m_stepWidth - (int)sizeTxt.Width) / 2 + 1, intTxtY)); g.DrawString(m_steps[i], Font, new SolidBrush(m_stepIndex > i ? m_stepForeColor : m_stepBackColor), new Point(intLeft + i * (m_stepWidth + intSplitWidth) + (m_stepWidth - (int)sizeTxt.Width) / 2 + 1, intTxtY));
} }
for (int i = 0; i < m_steps.Length; i++) for (int i = 0; i < m_steps.Length; i++)
{ {
if (m_stepIndex > i) if (m_stepIndex > i)
{ {
if (i != m_steps.Length - 1) if (i != m_steps.Length - 1)
{ {
if (m_stepIndex == i + 1) 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(intLeft + i * (m_stepWidth + intSplitWidth) + m_stepWidth + intSplitWidth / 2, 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(intLeft + i * (m_stepWidth + intSplitWidth) + m_stepWidth + 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(intLeft + (i + 1) * (m_stepWidth + intSplitWidth) + 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(intLeft + (i + 1) * (m_stepWidth + intSplitWidth) + 10, y + ((m_stepWidth) / 2)));
} }
else 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(intLeft + (i + 1) * (m_stepWidth + intSplitWidth) + 10, 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(intLeft + (i + 1) * (m_stepWidth + intSplitWidth) + 10, y + ((m_stepWidth) / 2)));
} }
} }
} }
else else
{ {
if (i != m_steps.Length - 1) 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(intLeft + (i + 1) * (m_stepWidth + intSplitWidth) + 10, 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(intLeft + (i + 1) * (m_stepWidth + intSplitWidth) + 10, y + ((m_stepWidth) / 2)));
} }
} }
} }
} }
} }
} }
} }
...@@ -28,160 +28,156 @@ ...@@ -28,160 +28,156 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UCTestStep)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UCTestStep));
this.ucStep4 = new HZH_Controls.Controls.UCStep(); this.ucStep4 = new HZH_Controls.Controls.UCStep();
this.ucStep6 = new HZH_Controls.Controls.UCStep(); this.ucStep6 = new HZH_Controls.Controls.UCStep();
this.ucStep5 = new HZH_Controls.Controls.UCStep(); this.ucStep5 = new HZH_Controls.Controls.UCStep();
this.ucStep2 = new HZH_Controls.Controls.UCStep(); this.ucStep2 = new HZH_Controls.Controls.UCStep();
this.ucStep3 = new HZH_Controls.Controls.UCStep(); this.ucStep3 = new HZH_Controls.Controls.UCStep();
this.ucStep1 = new HZH_Controls.Controls.UCStep(); this.ucStep1 = new HZH_Controls.Controls.UCStep();
this.SuspendLayout(); this.SuspendLayout();
// //
// ucStep4 // ucStep4
// //
this.ucStep4.BackColor = System.Drawing.Color.Transparent; this.ucStep4.BackColor = System.Drawing.Color.Transparent;
this.ucStep4.Font = new System.Drawing.Font("微软雅黑", 12F); this.ucStep4.Font = new System.Drawing.Font("微软雅黑", 12F);
this.ucStep4.ImgCompleted = null; this.ucStep4.ImgCompleted = null;
this.ucStep4.LineWidth = 10; this.ucStep4.LineWidth = 10;
this.ucStep4.Location = new System.Drawing.Point(409, 133); this.ucStep4.Location = new System.Drawing.Point(409, 133);
this.ucStep4.Name = "ucStep4"; this.ucStep4.Name = "ucStep4";
this.ucStep4.Size = new System.Drawing.Size(362, 86); this.ucStep4.Size = new System.Drawing.Size(362, 86);
this.ucStep4.StepBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(189)))), ((int)(((byte)(189))))); this.ucStep4.StepBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(189)))), ((int)(((byte)(189)))));
this.ucStep4.StepFontColor = System.Drawing.Color.White; this.ucStep4.StepFontColor = System.Drawing.Color.White;
this.ucStep4.StepForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(16)))), ((int)(((byte)(157)))), ((int)(((byte)(144))))); this.ucStep4.StepForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(16)))), ((int)(((byte)(157)))), ((int)(((byte)(144)))));
this.ucStep4.StepIndex = 2; this.ucStep4.StepIndex = 2;
this.ucStep4.Steps = new string[] { this.ucStep4.Steps = new string[] {
"step1", "step1",
"step2", "step2",
"step3", "step3",
"step4", "step4",
"step5"}; "step5"};
this.ucStep4.StepWidth = 35; this.ucStep4.StepWidth = 35;
this.ucStep4.TabIndex = 1; this.ucStep4.TabIndex = 1;
// //
// ucStep6 // ucStep6
// //
this.ucStep6.BackColor = System.Drawing.Color.Transparent; this.ucStep6.BackColor = System.Drawing.Color.Transparent;
this.ucStep6.Font = new System.Drawing.Font("微软雅黑", 12F); this.ucStep6.Font = new System.Drawing.Font("微软雅黑", 12F);
this.ucStep6.ImgCompleted = null; this.ucStep6.ImgCompleted = null;
this.ucStep6.LineWidth = 10; this.ucStep6.LineWidth = 10;
this.ucStep6.Location = new System.Drawing.Point(29, 340); this.ucStep6.Location = new System.Drawing.Point(29, 340);
this.ucStep6.Name = "ucStep6"; this.ucStep6.Name = "ucStep6";
this.ucStep6.Size = new System.Drawing.Size(742, 109); this.ucStep6.Size = new System.Drawing.Size(742, 109);
this.ucStep6.StepBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(189)))), ((int)(((byte)(189))))); this.ucStep6.StepBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(189)))), ((int)(((byte)(189)))));
this.ucStep6.StepFontColor = System.Drawing.Color.White; this.ucStep6.StepFontColor = System.Drawing.Color.White;
this.ucStep6.StepForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(16)))), ((int)(((byte)(157)))), ((int)(((byte)(144))))); this.ucStep6.StepForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(16)))), ((int)(((byte)(157)))), ((int)(((byte)(144)))));
this.ucStep6.StepIndex = 2; this.ucStep6.StepIndex = 2;
this.ucStep6.Steps = new string[] { this.ucStep6.Steps = new string[] {
"step1", "step1",
"step2", "step2",
"step3", "step3",
"step4", "step4",
"step5"}; "step5"};
this.ucStep6.StepWidth = 35; this.ucStep6.StepWidth = 35;
this.ucStep6.TabIndex = 1; this.ucStep6.TabIndex = 1;
// //
// ucStep5 // ucStep5
// //
this.ucStep5.BackColor = System.Drawing.Color.Transparent; this.ucStep5.BackColor = System.Drawing.Color.Transparent;
this.ucStep5.Font = new System.Drawing.Font("微软雅黑", 12F); this.ucStep5.Font = new System.Drawing.Font("微软雅黑", 12F);
this.ucStep5.ImgCompleted = null; this.ucStep5.ImgCompleted = null;
this.ucStep5.LineWidth = 10; this.ucStep5.LineWidth = 10;
this.ucStep5.Location = new System.Drawing.Point(29, 225); this.ucStep5.Location = new System.Drawing.Point(29, 225);
this.ucStep5.Name = "ucStep5"; this.ucStep5.Name = "ucStep5";
this.ucStep5.Size = new System.Drawing.Size(742, 109); this.ucStep5.Size = new System.Drawing.Size(742, 109);
this.ucStep5.StepBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(189)))), ((int)(((byte)(189))))); this.ucStep5.StepBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(189)))), ((int)(((byte)(189)))));
this.ucStep5.StepFontColor = System.Drawing.Color.White; this.ucStep5.StepFontColor = System.Drawing.Color.White;
this.ucStep5.StepForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59))))); this.ucStep5.StepForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucStep5.StepIndex = 2; this.ucStep5.StepIndex = 2;
this.ucStep5.Steps = new string[] { this.ucStep5.Steps = new string[] {
"step1"};
this.ucStep5.StepWidth = 35;
this.ucStep5.TabIndex = 1;
//
// 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(29, 133);
this.ucStep2.Name = "ucStep2";
this.ucStep2.Size = new System.Drawing.Size(362, 86);
this.ucStep2.StepBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(189)))), ((int)(((byte)(189)))));
this.ucStep2.StepFontColor = System.Drawing.Color.White;
this.ucStep2.StepForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucStep2.StepIndex = 2;
this.ucStep2.Steps = new string[] {
"step1", "step1",
"step2", "step2",
"step3", "step3",
"step4", "step4",
"step5"}; "step5"};
this.ucStep5.StepWidth = 35; this.ucStep2.StepWidth = 35;
this.ucStep5.TabIndex = 1; this.ucStep2.TabIndex = 1;
// //
// ucStep2 // ucStep3
// //
this.ucStep2.BackColor = System.Drawing.Color.Transparent; this.ucStep3.BackColor = System.Drawing.Color.Transparent;
this.ucStep2.Font = new System.Drawing.Font("微软雅黑", 12F); this.ucStep3.Font = new System.Drawing.Font("微软雅黑", 12F);
this.ucStep2.ImgCompleted = null; this.ucStep3.ImgCompleted = ((System.Drawing.Image)(resources.GetObject("ucStep3.ImgCompleted")));
this.ucStep2.LineWidth = 10; this.ucStep3.LineWidth = 10;
this.ucStep2.Location = new System.Drawing.Point(29, 133); this.ucStep3.Location = new System.Drawing.Point(409, 40);
this.ucStep2.Name = "ucStep2"; this.ucStep3.Name = "ucStep3";
this.ucStep2.Size = new System.Drawing.Size(362, 86); this.ucStep3.Size = new System.Drawing.Size(362, 77);
this.ucStep2.StepBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(189)))), ((int)(((byte)(189))))); this.ucStep3.StepBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(189)))), ((int)(((byte)(189)))));
this.ucStep2.StepFontColor = System.Drawing.Color.White; this.ucStep3.StepFontColor = System.Drawing.Color.White;
this.ucStep2.StepForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59))))); this.ucStep3.StepForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(16)))), ((int)(((byte)(157)))), ((int)(((byte)(144)))));
this.ucStep2.StepIndex = 2; this.ucStep3.StepIndex = 2;
this.ucStep2.Steps = new string[] { this.ucStep3.Steps = new string[] {
"step1", "step1",
"step2", "step2",
"step3", "step3",
"step4", "step4",
"step5"}; "step5"};
this.ucStep2.StepWidth = 35; this.ucStep3.StepWidth = 35;
this.ucStep2.TabIndex = 1; this.ucStep3.TabIndex = 2;
// //
// ucStep3 // ucStep1
// //
this.ucStep3.BackColor = System.Drawing.Color.Transparent; this.ucStep1.BackColor = System.Drawing.Color.Transparent;
this.ucStep3.Font = new System.Drawing.Font("微软雅黑", 12F); this.ucStep1.Font = new System.Drawing.Font("微软雅黑", 12F);
this.ucStep3.ImgCompleted = ((System.Drawing.Image)(resources.GetObject("ucStep3.ImgCompleted"))); this.ucStep1.ImgCompleted = ((System.Drawing.Image)(resources.GetObject("ucStep1.ImgCompleted")));
this.ucStep3.LineWidth = 10; this.ucStep1.LineWidth = 10;
this.ucStep3.Location = new System.Drawing.Point(409, 40); this.ucStep1.Location = new System.Drawing.Point(29, 40);
this.ucStep3.Name = "ucStep3"; this.ucStep1.Name = "ucStep1";
this.ucStep3.Size = new System.Drawing.Size(362, 77); this.ucStep1.Size = new System.Drawing.Size(362, 77);
this.ucStep3.StepBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(189)))), ((int)(((byte)(189))))); this.ucStep1.StepBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(189)))), ((int)(((byte)(189)))));
this.ucStep3.StepFontColor = System.Drawing.Color.White; this.ucStep1.StepFontColor = System.Drawing.Color.White;
this.ucStep3.StepForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(16)))), ((int)(((byte)(157)))), ((int)(((byte)(144))))); this.ucStep1.StepForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucStep3.StepIndex = 2; this.ucStep1.StepIndex = 2;
this.ucStep3.Steps = new string[] { this.ucStep1.Steps = new string[] {
"step1", "step1",
"step2", "step2",
"step3", "step3",
"step4", "step4",
"step5"}; "step5"};
this.ucStep3.StepWidth = 35; this.ucStep1.StepWidth = 35;
this.ucStep3.TabIndex = 2; this.ucStep1.TabIndex = 2;
// //
// ucStep1 // UCTestStep
// //
this.ucStep1.BackColor = System.Drawing.Color.Transparent; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ucStep1.Font = new System.Drawing.Font("微软雅黑", 12F); this.BackColor = System.Drawing.Color.White;
this.ucStep1.ImgCompleted = ((System.Drawing.Image)(resources.GetObject("ucStep1.ImgCompleted"))); this.Controls.Add(this.ucStep4);
this.ucStep1.LineWidth = 10; this.Controls.Add(this.ucStep6);
this.ucStep1.Location = new System.Drawing.Point(29, 40); this.Controls.Add(this.ucStep5);
this.ucStep1.Name = "ucStep1"; this.Controls.Add(this.ucStep2);
this.ucStep1.Size = new System.Drawing.Size(362, 77); this.Controls.Add(this.ucStep3);
this.ucStep1.StepBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(189)))), ((int)(((byte)(189))))); this.Controls.Add(this.ucStep1);
this.ucStep1.StepFontColor = System.Drawing.Color.White; this.Name = "UCTestStep";
this.ucStep1.StepForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59))))); this.Size = new System.Drawing.Size(1280, 526);
this.ucStep1.StepIndex = 2; this.ResumeLayout(false);
this.ucStep1.Steps = new string[] {
"step1",
"step2",
"step3",
"step4",
"step5"};
this.ucStep1.StepWidth = 35;
this.ucStep1.TabIndex = 2;
//
// UCTestStep
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.ucStep4);
this.Controls.Add(this.ucStep6);
this.Controls.Add(this.ucStep5);
this.Controls.Add(this.ucStep2);
this.Controls.Add(this.ucStep3);
this.Controls.Add(this.ucStep1);
this.Name = "UCTestStep";
this.Size = new System.Drawing.Size(1280, 526);
this.ResumeLayout(false);
} }
......
...@@ -120,20 +120,20 @@ ...@@ -120,20 +120,20 @@
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="ucStep3.ImgCompleted" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="ucStep3.ImgCompleted" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAK9JREFUSEvt
YQUAAACvSURBVEhL7ZLRDYMwDEQzQkfoaB2hIzBCNygbMEpHSu/IGZEIRa1x+4F40kmWY78AIp0ci5zz ktENgzAMRDNCR+hoHaEjMEI3KBswSkdK78gZkQhFrXH7gXjSSZZjvwAinRyLnPNVZTyQj8gLuagVh+RG
VWU8kI/IC7moFYfkRtwlFCETrQ2DRvxAQjmftmXUiB9I/HIMdb8fzxG/HOHyU62K1XnLV3KD9fI2rNVr 3CUUIROtDYNG/EBCOZ+2ZdSIH0j8cgx1vx/PEb8c4fJTrYrVectXcoP18jas1Wu5a6QPBocyXzFfomzJ
uWukDwaHMl8xX6JsyW9a/wwsrP9ng+L9cgOLj7LfxSc3KCieTfbJDYqKryJGblBYvDOxcoPin8lP/kBK b1r/DCys/2eD4v1yA4uPst/FJzcoKJ5N9skNioqvIkZuUFi8M7Fyg+KfyU/+QEpvWnW1kRgi/AQAAAAA
b1p1tZEYIvwEAAAAAElFTkSuQmCC SUVORK5CYII=
</value> </value>
</data> </data>
<data name="ucStep1.ImgCompleted" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="ucStep1.ImgCompleted" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAK9JREFUSEvt
YQUAAACvSURBVEhL7ZLRDYMwDEQzQkfoaB2hIzBCNygbMEpHSu/IGZEIRa1x+4F40kmWY78AIp0ci5zz ktENgzAMRDNCR+hoHaEjMEI3KBswSkdK78gZkQhFrXH7gXjSSZZjvwAinRyLnPNVZTyQj8gLuagVh+RG
VWU8kI/IC7moFYfkRtwlFCETrQ2DRvxAQjmftmXUiB9I/HIMdb8fzxG/HOHyU62K1XnLV3KD9fI2rNVr 3CUUIROtDYNG/EBCOZ+2ZdSIH0j8cgx1vx/PEb8c4fJTrYrVectXcoP18jas1Wu5a6QPBocyXzFfomzJ
uWukDwaHMl8xX6JsyW9a/wwsrP9ng+L9cgOLj7LfxSc3KCieTfbJDYqKryJGblBYvDOxcoPin8lP/kBK b1r/DCys/2eD4v1yA4uPst/FJzcoKJ5N9skNioqvIkZuUFi8M7Fyg+KfyU/+QEpvWnW1kRgi/AQAAAAA
b1p1tZEYIvwEAAAAAElFTkSuQmCC SUVORK5CYII=
</value> </value>
</data> </data>
</root> </root>
\ No newline at end of file \ No newline at end of file
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!