Updating Rebuild interfaces
This commit is contained in:
parent
6e8b7386c8
commit
e1035b3f7b
18 changed files with 111 additions and 76 deletions
|
|
@ -27,6 +27,7 @@ of the authors and should not be interpreted as representing official policies,
|
|||
either expressed or implied, of the FreeBSD Project.
|
||||
*/
|
||||
|
||||
using System.Threading.Tasks;
|
||||
using MatterHackers.Agg;
|
||||
using MatterHackers.Agg.UI;
|
||||
using MatterHackers.Agg.VertexSource;
|
||||
|
|
@ -48,7 +49,7 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
{
|
||||
var item = new BrailleCardObject3D();
|
||||
|
||||
item.Rebuild(null);
|
||||
item.Rebuild();
|
||||
return item;
|
||||
}
|
||||
|
||||
|
|
@ -61,7 +62,7 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
if (invalidateType.InvalidateType.HasFlag(InvalidateType.Properties)
|
||||
&& invalidateType.Source == this)
|
||||
{
|
||||
Rebuild(null);
|
||||
Rebuild();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -69,7 +70,7 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
}
|
||||
}
|
||||
|
||||
public void Rebuild(UndoBuffer undoBuffer)
|
||||
override public Task Rebuild()
|
||||
{
|
||||
using (RebuildLock())
|
||||
{
|
||||
|
|
@ -85,7 +86,7 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
TextToEncode = Letter.ToString(),
|
||||
BaseHeight = BaseHeight,
|
||||
};
|
||||
brailleLetter.Rebuild(null);
|
||||
brailleLetter.Rebuild();
|
||||
this.Children.Add(brailleLetter);
|
||||
|
||||
var textObject = new TextObject3D()
|
||||
|
|
@ -125,6 +126,7 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
}
|
||||
|
||||
Invalidate(InvalidateType.Children);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue