Ported the old tab renaming code into main

Needs to be cleaned up
This commit is contained in:
Lars Brubaker 2022-01-21 15:21:07 -08:00
parent 035b84d065
commit b664670a42
47 changed files with 644 additions and 337 deletions

View file

@ -51,7 +51,20 @@ namespace MatterHackers.MatterControl.Library
public string ID { get; set; }
public string Name { get; set; }
private string _name;
public string Name
{
get => _name; set
{
if (_name != value)
{
_name = value;
NameChanged?.Invoke(this, EventArgs.Empty);
}
}
}
public event EventHandler NameChanged;
public string FileName => $"{this.Name}.{this.ContentType}";