refactor(ui): switch CreateShapeFromInputs to control-type branching

This commit is contained in:
2026-04-10 17:52:03 -04:00
parent b1d094104a
commit 54def611fa

View File

@@ -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;
}