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>
49 lines
1.2 KiB
C#
49 lines
1.2 KiB
C#
using System.Windows.Forms;
|
|
|
|
namespace OpenNest.Forms
|
|
{
|
|
public partial class SetValueForm : Form
|
|
{
|
|
public SetValueForm()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
protected override bool ProcessDialogKey(Keys keyData)
|
|
{
|
|
switch (keyData)
|
|
{
|
|
case Keys.Escape:
|
|
Close();
|
|
break;
|
|
}
|
|
|
|
return base.ProcessDialogKey(keyData);
|
|
}
|
|
|
|
public double Minimum
|
|
{
|
|
get { return (double)numericUpDownValue.Minimum; }
|
|
set { numericUpDownValue.Minimum = (decimal)value; }
|
|
}
|
|
|
|
public double Maximum
|
|
{
|
|
get { return (double)numericUpDownValue.Maximum; }
|
|
set { numericUpDownValue.Maximum = (decimal)value; }
|
|
}
|
|
|
|
public double Increment
|
|
{
|
|
get { return (double)numericUpDownValue.Increment; }
|
|
set { numericUpDownValue.Increment = (decimal)value; }
|
|
}
|
|
|
|
public double Value
|
|
{
|
|
get { return (double)numericUpDownValue.Value; }
|
|
set { numericUpDownValue.Value = (decimal)value; }
|
|
}
|
|
}
|
|
}
|