Made invalidate args so we can pass source and invalidate type
Rebuild does not propagate to parent
This commit is contained in:
parent
28b55b73a5
commit
ff6e220b4c
21 changed files with 60 additions and 37 deletions
|
|
@ -341,7 +341,7 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
editControlsContainer.AddChild(rowContainer);
|
||||
|
||||
// update tihs when changed
|
||||
EventHandler updateData = (object s, EventArgs e) =>
|
||||
EventHandler< InvalidateArgs> updateData = (s, e) =>
|
||||
{
|
||||
field.DoubleValue = ((DirectionAxis)property.PropertyInfo.GetGetMethod().Invoke(property.Item, null)).Origin.X - property.Item.Children.First().GetAxisAlignedBoundingBox().Center.X;
|
||||
};
|
||||
|
|
@ -388,7 +388,7 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
editControlsContainer.AddChild(directionRowContainer);
|
||||
|
||||
// update tihs when changed
|
||||
EventHandler updateData = (object s, EventArgs e) =>
|
||||
EventHandler<InvalidateArgs> updateData = (s, e) =>
|
||||
{
|
||||
originField.Vector3 = ((DirectionAxis)property.PropertyInfo.GetGetMethod().Invoke(property.Item, null)).Origin;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue