Add document icon to Help tree nodes

This commit is contained in:
jlewin 2019-06-20 17:36:58 -07:00 committed by johnlewin
parent 5049d3354d
commit 56fdfc7ba3

View file

@ -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 MatterHackers.Agg.Platform;
using MatterHackers.MatterControl.CustomWidgets;
namespace MatterHackers.MatterControl
@ -34,11 +35,12 @@ namespace MatterHackers.MatterControl
public class HelpArticleTreeNode : TreeNode
{
public HelpArticleTreeNode(HelpArticle helpArticle, ThemeConfig theme)
: base (theme, useIcon: false)
: base (theme)
{
this.HelpArticle = helpArticle;
this.Text = helpArticle.Name;
this.Tag = helpArticle;
this.Image = AggContext.StaticData.LoadIcon("fa-text-file_16.png");
}
public HelpArticle HelpArticle { get; }