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
+1 -2
View File
@@ -363,9 +363,8 @@ namespace OpenNest.Forms
continue; 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()); binding.Property.SetValue(shape, combo.SelectedItem?.ToString());
continue; continue;
} }