mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-10-26 23:11:07 -04:00
The modal release dialog is replaced by ReleasePanel, docked beside the Library and Sets tabs and shared by both. A double-click or Enter adds a set at one kit or a library drawing on its own at the entered quantity; adding one already listed adds to its quantity. Lines are edited in place with a remove button, and the nests it will make preview live. Each group now merges into a matching Draft nest by default: the only one, or the most recently saved of several (chosen in the row); a draft open in a tab blocks Make Nests instead of making a parallel nest. Nest after release is remembered per user. Edit Set and Edit Drawing move to their buttons and right-click menus. The Drawing Sets window is now an unowned top-level window with its own taskbar entry and remembered bounds, closed with the main window; a release not yet made survives closing it, and Make Nests brings the main window forward. ReleaseSetForm remains as a thin dialog host for releasing from Nest > Add from Drawing Library. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
113 lines
4.6 KiB
C#
113 lines
4.6 KiB
C#
namespace OpenNest.Forms
|
|
{
|
|
partial class ReleaseSetForm
|
|
{
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
layoutTable = new System.Windows.Forms.TableLayoutPanel();
|
|
releasePanel = new OpenNest.Controls.ReleasePanel();
|
|
buttonPanel = new System.Windows.Forms.FlowLayoutPanel();
|
|
closeButton = new System.Windows.Forms.Button();
|
|
addDrawingsButton = new System.Windows.Forms.Button();
|
|
layoutTable.SuspendLayout();
|
|
buttonPanel.SuspendLayout();
|
|
SuspendLayout();
|
|
//
|
|
// layoutTable
|
|
//
|
|
layoutTable.ColumnCount = 1;
|
|
layoutTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
|
layoutTable.Controls.Add(releasePanel, 0, 0);
|
|
layoutTable.Controls.Add(buttonPanel, 0, 1);
|
|
layoutTable.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
layoutTable.Location = new System.Drawing.Point(0, 0);
|
|
layoutTable.Name = "layoutTable";
|
|
layoutTable.Padding = new System.Windows.Forms.Padding(8);
|
|
layoutTable.RowCount = 2;
|
|
layoutTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
|
layoutTable.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
|
layoutTable.Size = new System.Drawing.Size(760, 640);
|
|
layoutTable.TabIndex = 0;
|
|
//
|
|
// releasePanel
|
|
//
|
|
releasePanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
releasePanel.Margin = new System.Windows.Forms.Padding(0);
|
|
releasePanel.Name = "releasePanel";
|
|
releasePanel.TabIndex = 0;
|
|
//
|
|
// buttonPanel
|
|
//
|
|
buttonPanel.AutoSize = true;
|
|
buttonPanel.Controls.Add(closeButton);
|
|
buttonPanel.Controls.Add(addDrawingsButton);
|
|
buttonPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
buttonPanel.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft;
|
|
buttonPanel.Margin = new System.Windows.Forms.Padding(0, 6, 0, 0);
|
|
buttonPanel.Name = "buttonPanel";
|
|
buttonPanel.TabIndex = 1;
|
|
//
|
|
// closeButton
|
|
//
|
|
closeButton.AutoSize = true;
|
|
closeButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
closeButton.Name = "closeButton";
|
|
closeButton.TabIndex = 1;
|
|
closeButton.Text = "Close";
|
|
closeButton.UseVisualStyleBackColor = true;
|
|
//
|
|
// addDrawingsButton
|
|
//
|
|
addDrawingsButton.AutoSize = true;
|
|
addDrawingsButton.Margin = new System.Windows.Forms.Padding(3, 3, 12, 3);
|
|
addDrawingsButton.Name = "addDrawingsButton";
|
|
addDrawingsButton.TabIndex = 0;
|
|
addDrawingsButton.Text = "Add Drawings...";
|
|
addDrawingsButton.UseVisualStyleBackColor = true;
|
|
addDrawingsButton.Click += AddDrawingsButton_Click;
|
|
//
|
|
// ReleaseSetForm
|
|
//
|
|
AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
|
CancelButton = closeButton;
|
|
ClientSize = new System.Drawing.Size(760, 640);
|
|
Controls.Add(layoutTable);
|
|
Font = new System.Drawing.Font("Segoe UI", 9.75F);
|
|
MinimizeBox = false;
|
|
MinimumSize = new System.Drawing.Size(560, 480);
|
|
Name = "ReleaseSetForm";
|
|
ShowIcon = false;
|
|
ShowInTaskbar = false;
|
|
StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
|
Text = "Make Nests";
|
|
FormClosing += ReleaseSetForm_FormClosing;
|
|
layoutTable.ResumeLayout(false);
|
|
layoutTable.PerformLayout();
|
|
buttonPanel.ResumeLayout(false);
|
|
buttonPanel.PerformLayout();
|
|
ResumeLayout(false);
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.TableLayoutPanel layoutTable;
|
|
private OpenNest.Controls.ReleasePanel releasePanel;
|
|
private System.Windows.Forms.FlowLayoutPanel buttonPanel;
|
|
private System.Windows.Forms.Button closeButton;
|
|
private System.Windows.Forms.Button addDrawingsButton;
|
|
}
|
|
}
|