Commit 709189b7 HZH

修改名称

1 个父辈 304b32d8
...@@ -17,7 +17,7 @@ using System.Windows.Forms; ...@@ -17,7 +17,7 @@ using System.Windows.Forms;
namespace HZH_Controls.Controls namespace HZH_Controls.Controls
{ {
public class UCWaveWithSource : UCControlBase public class UCWaveChart : UCControlBase
{ {
private int m_waveActualWidth = 50; private int m_waveActualWidth = 50;
...@@ -78,7 +78,7 @@ namespace HZH_Controls.Controls ...@@ -78,7 +78,7 @@ namespace HZH_Controls.Controls
} }
} }
private Color m_lineColor = Color.FromArgb(150, 73, 119, 232); private Color m_lineColor = Color.FromArgb(150, 255, 77, 59);
[Description("曲线颜色"), Category("自定义")] [Description("曲线颜色"), Category("自定义")]
public Color LineColor public Color LineColor
...@@ -92,7 +92,7 @@ namespace HZH_Controls.Controls ...@@ -92,7 +92,7 @@ namespace HZH_Controls.Controls
} }
} }
private Color m_gridLineColor = Color.FromArgb(50, 73, 119, 232); private Color m_gridLineColor = Color.FromArgb(50, 255, 77, 59);
[Description("网格线颜色"), Category("自定义")] [Description("网格线颜色"), Category("自定义")]
public Color GridLineColor public Color GridLineColor
...@@ -105,7 +105,7 @@ namespace HZH_Controls.Controls ...@@ -105,7 +105,7 @@ namespace HZH_Controls.Controls
} }
} }
private Color m_gridLineTextColor = Color.FromArgb(150, 73, 119, 232); private Color m_gridLineTextColor = Color.FromArgb(150, 255, 77, 59);
[Description("网格文本颜色"), Category("自定义")] [Description("网格文本颜色"), Category("自定义")]
public Color GridLineTextColor public Color GridLineTextColor
...@@ -144,7 +144,7 @@ namespace HZH_Controls.Controls ...@@ -144,7 +144,7 @@ namespace HZH_Controls.Controls
Rectangle m_drawRect; Rectangle m_drawRect;
int m_waveCount = 0; int m_waveCount = 0;
public UCWaveWithSource() public UCWaveChart()
{ {
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.DoubleBuffer, true); this.SetStyle(ControlStyles.DoubleBuffer, true);
...@@ -156,7 +156,7 @@ namespace HZH_Controls.Controls ...@@ -156,7 +156,7 @@ namespace HZH_Controls.Controls
this.SizeChanged += UCWaveWithSource_SizeChanged; this.SizeChanged += UCWaveWithSource_SizeChanged;
this.IsShowRect = true; this.IsShowRect = true;
this.RectColor = Color.FromArgb(232, 232, 232); this.RectColor = Color.FromArgb(232, 232, 232);
this.FillColor = Color.FromArgb(197, 229, 250); this.FillColor = Color.FromArgb(50, 255, 77, 59);
this.RectWidth = 1; this.RectWidth = 1;
this.ConerRadius = 10; this.ConerRadius = 10;
this.IsRadius = true; this.IsRadius = true;
......
...@@ -47,7 +47,7 @@ namespace Test ...@@ -47,7 +47,7 @@ namespace Test
Random r = new Random(); Random r = new Random();
int i = r.Next(100, 1000); int i = r.Next(100, 1000);
this.ucWaveWithSource1.AddSource(i.ToString(), i); this.ucWaveChart1.AddSource(i.ToString(), i);
ucledDataTime1.Value = DateTime.Now; ucledDataTime1.Value = DateTime.Now;
ucledTime2.Value = DateTime.Now; ucledTime2.Value = DateTime.Now;
...@@ -81,5 +81,15 @@ namespace Test ...@@ -81,5 +81,15 @@ namespace Test
HZH_Controls.Forms.FrmAnchorTips.ShowTips(button1, "测试提示信息\nTOP", AnchorTipsLocation.TOP); HZH_Controls.Forms.FrmAnchorTips.ShowTips(button1, "测试提示信息\nTOP", AnchorTipsLocation.TOP);
HZH_Controls.Forms.FrmAnchorTips.ShowTips(button1, "测试提示信息\nBOTTOM", AnchorTipsLocation.BOTTOM); HZH_Controls.Forms.FrmAnchorTips.ShowTips(button1, "测试提示信息\nBOTTOM", AnchorTipsLocation.BOTTOM);
} }
private void timer2_Tick(object sender, EventArgs e)
{
Random r = new Random();
int i = r.Next(1, 10000);
double dbl = ((double)i) / 100.0000;
string str = dbl.ToString("0.000");
this.ucledNums1.Value = str;
this.ucledNums2.Value = str;
}
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -120,6 +120,9 @@ ...@@ -120,6 +120,9 @@
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
<metadata name="timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>107, 17</value>
</metadata>
<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="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>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!