class="line number1 index0 alt2">private
void
DrawWave(Graphics g,Point start, Point end)
class="line number2 index1 alt1">
{
class="line number3 index2 alt2">
Pen pen = Pens.Red;
class="line number4 index3 alt1">
if
((end.X - start.X) > 4)
class="line number5 index4 alt2">
{
class="line number6 index5 alt1">
var
pl =
new
ArrayList();
class="line number7 index6 alt2">
for
(
int
i = start.X; i <= (end.X - 2); i += 4)
class="line number8 index7 alt1">
{
class="line number9 index8 alt2">
pl.Add(
new
Point(i, start.Y));
class="line number10 index9 alt1">
pl.Add(
new
Point(i + 2, start.Y + 2));
class="line number11 index10 alt2">
}
class="line number12 index11 alt1">
Point[] p = (Point[])pl.ToArray(
typeof
(Point));
class="line number13 index12 alt2">
g.DrawLines(pen, p);
class="line number14 index13 alt1">
}
class="line number15 index14 alt2">
else
class="line number16 index15 alt1">
{
class="line number17 index16 alt2">
g.DrawLine(pen, start, end);
class="line number18 index17 alt1">
}
class="line number19 index18 alt2">
}
class="line number21 index20 alt2">
private
void
uC_SmartTagSupport1_Paint(
object
sender, PaintEventArgs e)
class="line number22 index21 alt1">
{
class="line number23 index22 alt2">
int
y = (uC_SmartTagSupport1.Top + uC_SmartTagSupport1.Height - 1);
class="line number24 index23 alt1">
int
x = uC_SmartTagSupport1.Left;
class="line number26 index25 alt1">
DrawWave(e.Graphics,
new
Point(1, uC_SmartTagSupport1.Height - 3),
new
Point(100, uC_SmartTagSupport1.Height - 3));
class="line number27 index26 alt2">
}