Form2.cs
2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using HZH_Controls.Forms;
namespace Test
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
this.ucStep1.StepIndex = 3;
}
private void timer1_Tick(object sender, EventArgs e)
{
this.ucProcessEllipse1.Value++;
this.ucProcessEllipse2.Value++;
this.ucProcessLine1.Value++;
ucProcessLineExt1.Value++;
this.ucProcessWave1.Value++;
this.ucProcessWave2.Value++;
if (this.ucProcessEllipse1.Value == 100)
this.ucProcessEllipse1.Value = 0;
if (this.ucProcessEllipse2.Value == 100)
this.ucProcessEllipse2.Value = 0;
if (this.ucProcessLine1.Value >= this.ucProcessLine1.MaxValue)
this.ucProcessLine1.Value = 0;
if (this.ucProcessLineExt1.Value >= this.ucProcessLineExt1.MaxValue)
this.ucProcessLineExt1.Value = 0;
if (this.ucProcessWave1.Value >= this.ucProcessWave1.MaxValue)
this.ucProcessWave1.Value = 0;
if (this.ucProcessWave2.Value >= this.ucProcessWave1.MaxValue)
this.ucProcessWave2.Value = 0;
Random r = new Random();
int i = r.Next(100, 1000);
this.ucWaveWithSource1.AddSource(i.ToString(), i);
}
private void trackBar1_Scroll(object sender, EventArgs e)
{
this.ucWave1.WaveSleep = trackBar1.Value;
}
private void trackBar2_Scroll(object sender, EventArgs e)
{
this.ucWave1.WaveHeight = trackBar2.Value;
}
private void trackBar3_Scroll(object sender, EventArgs e)
{
this.ucWave1.WaveWidth = trackBar3.Value;
}
private void ucDropDownBtn1_BtnClick(object sender, EventArgs e)
{
HZH_Controls.Forms.FrmTips.ShowTipsSuccess(this,sender.ToString());
}
private void button1_Click_1(object sender, EventArgs e)
{
HZH_Controls.Forms.FrmAnchorTips.ShowTips(button1, "测试提示信息\nLEFT", AnchorTipsLocation.LEFT);
HZH_Controls.Forms.FrmAnchorTips.ShowTips(button1, "测试提示信息\nRIGHT", AnchorTipsLocation.RIGHT);
HZH_Controls.Forms.FrmAnchorTips.ShowTips(button1, "测试提示信息\nTOP", AnchorTipsLocation.TOP);
HZH_Controls.Forms.FrmAnchorTips.ShowTips(button1, "测试提示信息\nBOTTOM", AnchorTipsLocation.BOTTOM);
}
}
}