refactor(io): migrate nest file extension from .zip to .opnest

Add FileExtension and FileFilter constants to NestFormat and update all
references across Console, MCP, Training, and WinForms projects.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-18 07:26:04 -04:00
parent a487d33f52
commit d2eeb23107
7 changed files with 23 additions and 17 deletions

View File

@@ -288,7 +288,7 @@ namespace OpenNest.Forms
public void SaveAs()
{
var dlg = new SaveFileDialog();
dlg.Filter = "Nest Files|*.zip|Template File|*.nstdot";
dlg.Filter = $"{NestFormat.FileFilter}|Template File|*.nstdot";
dlg.FileName = Nest.Name;
if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)

View File

@@ -403,7 +403,7 @@ namespace OpenNest.Forms
private void Open_Click(object sender, EventArgs e)
{
var dlg = new OpenFileDialog();
dlg.Filter = "Nest Files (*.zip) | *.zip";
dlg.Filter = NestFormat.FileFilter;
dlg.Multiselect = true;
if (dlg.ShowDialog() == DialogResult.OK)