Put icon is the tree view

This commit is contained in:
Lars Brubaker 2018-05-18 12:01:52 -07:00
parent 28b6b3f011
commit 030b97a558
3 changed files with 19 additions and 2 deletions

View file

@ -53,7 +53,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
private bool mouseDownInBounds = false;
private Vector2 mouseDownAt;
protected ImageWidget imageWidget;
public ImageWidget imageWidget;
protected int thumbWidth;
protected int thumbHeight;
@ -222,6 +222,8 @@ namespace MatterHackers.MatterControl.CustomWidgets
}
}
public event EventHandler ImageSet;
protected void SetItemThumbnail(ImageBuffer thumbnail, bool colorize = false)
{
if (thumbnail != null)
@ -247,6 +249,8 @@ namespace MatterHackers.MatterControl.CustomWidgets
this.imageWidget.Image = thumbnail;
this.ImageSet?.Invoke(this, null);
this.Invalidate();
}
}