2012-04-12 10:39:51 -03:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
2012-04-24 10:49:27 -03:00
|
|
|
|
namespace ArdupilotMega.Controls
|
2012-04-12 10:39:51 -03:00
|
|
|
|
{
|
|
|
|
|
|
2012-04-24 10:49:27 -03:00
|
|
|
|
public partial class LineSeparator : UserControl
|
2012-04-12 10:39:51 -03:00
|
|
|
|
{
|
2012-04-24 10:49:27 -03:00
|
|
|
|
public LineSeparator()
|
|
|
|
|
{
|
|
|
|
|
this.Height = 2;
|
2012-04-12 10:39:51 -03:00
|
|
|
|
|
2012-04-24 10:49:27 -03:00
|
|
|
|
this.Paint += new PaintEventHandler(LineSeparator_Paint);
|
2012-04-12 10:39:51 -03:00
|
|
|
|
|
|
|
|
|
|
2012-04-24 10:49:27 -03:00
|
|
|
|
this.MaximumSize = new Size(2000, 2);
|
2012-04-12 10:39:51 -03:00
|
|
|
|
|
|
|
|
|
|
2012-04-24 10:49:27 -03:00
|
|
|
|
this.MinimumSize = new Size(0, 2);
|
2012-04-12 10:39:51 -03:00
|
|
|
|
|
2012-04-24 10:49:27 -03:00
|
|
|
|
//this.Width = 350;
|
2012-04-12 10:39:51 -03:00
|
|
|
|
|
2012-04-24 10:49:27 -03:00
|
|
|
|
}
|
2012-04-12 10:39:51 -03:00
|
|
|
|
|
|
|
|
|
|
2012-04-24 10:49:27 -03:00
|
|
|
|
private void LineSeparator_Paint(object sender, PaintEventArgs e)
|
|
|
|
|
{
|
2012-04-12 10:39:51 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-04-24 10:49:27 -03:00
|
|
|
|
Graphics g = e.Graphics;
|
2012-04-12 10:39:51 -03:00
|
|
|
|
|
2012-04-24 10:49:27 -03:00
|
|
|
|
g.DrawLine(
|
2012-04-12 10:39:51 -03:00
|
|
|
|
|
2012-04-24 10:49:27 -03:00
|
|
|
|
Pens.DarkGray, new Point(0, 0), new Point(this.Width, 0));
|
2012-04-12 10:39:51 -03:00
|
|
|
|
|
2012-04-24 10:49:27 -03:00
|
|
|
|
g.DrawLine(
|
2012-04-12 10:39:51 -03:00
|
|
|
|
|
2012-04-24 10:49:27 -03:00
|
|
|
|
Pens.White, new Point(0, 1), new Point(this.Width, 1));
|
2012-04-12 10:39:51 -03:00
|
|
|
|
|
2012-04-24 10:49:27 -03:00
|
|
|
|
}
|
2012-04-12 10:39:51 -03:00
|
|
|
|
|
2012-04-24 10:49:27 -03:00
|
|
|
|
}
|
|
|
|
|
}
|