Improve naming of eventArg variable

- Eliminate invadateType.InvalidateType == InvalidateType.Path
This commit is contained in:
John Lewin 2019-01-26 18:38:40 -08:00
parent d02bd93633
commit 13d5e6f7f9

View file

@ -88,22 +88,22 @@ namespace MatterHackers.MatterControl.DesignTools
Name = "Linear Extrude".Localize();
}
public override async void OnInvalidate(InvalidateArgs invalidateType)
public override async void OnInvalidate(InvalidateArgs eventArgs)
{
this.DebugDepth("Invalidate");
if (invalidateType.InvalidateType == InvalidateType.Path
&& invalidateType.Source != this
if (eventArgs.InvalidateType == InvalidateType.Path
&& eventArgs.Source != this
&& !RebuildLocked)
{
await Rebuild();
base.OnInvalidate(new InvalidateArgs(this, InvalidateType.Mesh, invalidateType.UndoBuffer));
base.OnInvalidate(new InvalidateArgs(this, InvalidateType.Mesh, eventArgs.UndoBuffer));
}
else if (invalidateType.InvalidateType == InvalidateType.Properties
&& invalidateType.Source == this)
else if (eventArgs.InvalidateType == InvalidateType.Properties
&& eventArgs.Source == this)
{
await Rebuild();
base.OnInvalidate(new InvalidateArgs(this, InvalidateType.Mesh, invalidateType.UndoBuffer));
base.OnInvalidate(new InvalidateArgs(this, InvalidateType.Mesh, eventArgs.UndoBuffer));
}
}