mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-16 16:05:34 -05:00
refactor(ui): switch CreateShapeFromInputs to control-type branching
This commit is contained in:
1 parent
b1d094104a
commit
54def611fa
1 file changed
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user