diff --git a/OpenNest/Forms/ShapeLibraryForm.cs b/OpenNest/Forms/ShapeLibraryForm.cs index 1a8b943..3c9e6bd 100644 --- a/OpenNest/Forms/ShapeLibraryForm.cs +++ b/OpenNest/Forms/ShapeLibraryForm.cs @@ -363,9 +363,8 @@ namespace OpenNest.Forms continue; } - if (binding.Property.PropertyType == typeof(string)) + if (binding.Control is ComboBox combo) { - var combo = (ComboBox)binding.Control; binding.Property.SetValue(shape, combo.SelectedItem?.ToString()); continue; }