mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-10-05 18:52:11 -04:00
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>
37 lines
908 B
C#
37 lines
908 B
C#
using System;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace OpenNest.Controls
|
|
{
|
|
public class BottomPanel : Panel
|
|
{
|
|
private readonly Pen lightPen;
|
|
private readonly Pen darkPen;
|
|
|
|
public BottomPanel()
|
|
{
|
|
this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
|
|
this.Height = 50;
|
|
this.Dock = DockStyle.Bottom;
|
|
|
|
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);
|
|
|
|
e.Graphics.DrawLine(darkPen, 0, 0, Width, 0);
|
|
e.Graphics.DrawLine(lightPen, 0, 1, Width, 1);
|
|
}
|
|
}
|
|
}
|