refactor(ui): switch CreateShapeFromInputs to control-type branching
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user