refactor(ui): switch CreateShapeFromInputs to control-type branching
This commit is contained in:
@@ -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