public void OnSave() { if (string.IsNullOrEmpty(NameField.text)) { return; } eventsOff_ = true; var template = PropTemplate.Create( NameField.text, Props.ToArray(), DescriptionField.text); template.Save(); SavesListBox.Populate(); eventsOff_ = false; OnNameChanged(); }