Improve DI, use constructor injection
This commit is contained in:
parent
7853d1b612
commit
bbabf95c93
52 changed files with 244 additions and 245 deletions
|
|
@ -50,11 +50,9 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
private ImageWidget imageWidget;
|
||||
private bool isDirty;
|
||||
|
||||
public TreeNode(bool useIcon = true)
|
||||
public TreeNode(ThemeConfig theme, bool useIcon = true)
|
||||
: base(FlowDirection.TopToBottom)
|
||||
{
|
||||
var theme = ApplicationController.Instance.Theme;
|
||||
|
||||
this.HAnchor = HAnchor.Fit | HAnchor.Left;
|
||||
this.VAnchor = VAnchor.Fit;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue