Files
OpenNest/OpenNest/Document.cs
AJ Isaacs 1d9bcc63d2 chore: sort using directives
Auto-formatter reordering of using statements across the solution.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 16:47:42 -04:00

29 lines
622 B
C#

using OpenNest.IO;
using System;
using System.IO;
namespace OpenNest
{
public class Document
{
public Nest Nest { get; set; }
public DateTime LastSaveDate { get; private set; }
public string LastSavePath { get; private set; }
public Units Units { get; set; }
public void SaveAs(string path)
{
var name = Path.GetFileNameWithoutExtension(path);
Nest.Name = name;
LastSaveDate = DateTime.Now;
LastSavePath = path;
var writer = new NestWriter(Nest);
writer.Write(path);
}
}
}