Move all projects from Source/ to repository root for simpler navigation. - Remove External/ dependency DLLs (will use NuGet packages) - Remove Installer/ NSIS script - Replace PartCollection/PlateCollection with ObservableList - Add packages.config for NuGet dependencies 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
39 lines
988 B
C#
39 lines
988 B
C#
using System;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace OpenNest.Controls
|
|
{
|
|
public class VerticalLine : Control
|
|
{
|
|
private readonly Pen lightPen;
|
|
private readonly Pen darkPen;
|
|
|
|
public VerticalLine()
|
|
{
|
|
SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
|
|
SetStyle(ControlStyles.Selectable, false);
|
|
|
|
lightPen = new Pen(ProfessionalColors.SeparatorLight);
|
|
darkPen = new Pen(ProfessionalColors.SeparatorDark);
|
|
}
|
|
|
|
protected override void OnResize(EventArgs e)
|
|
{
|
|
base.OnResize(e);
|
|
Invalidate();
|
|
}
|
|
|
|
protected override void OnPaint(PaintEventArgs e)
|
|
{
|
|
base.OnPaint(e);
|
|
|
|
float midpoint = Width * 0.5f;
|
|
|
|
e.Graphics.DrawLine(darkPen, midpoint, 0, midpoint, Height);
|
|
midpoint++;
|
|
e.Graphics.DrawLine(lightPen, midpoint, 0, midpoint, Height);
|
|
}
|
|
}
|
|
}
|