Update Add Printer tests

This commit is contained in:
jlewin 2019-05-14 15:41:53 -07:00
parent e83e081983
commit def78f9d42
2 changed files with 20 additions and 10 deletions

View file

@ -60,6 +60,8 @@ namespace MatterHackers.MatterControl.PrintLibrary
this.theme = theme;
this.nextButton = nextButton;
this.ExistingPrinterNames = ProfileManager.Instance.ActiveProfiles.Select(p => p.Name).ToList();
this.Name = "AddPrinterWidget";
this.TreeLoaded = false;
var searchIcon = AggContext.StaticData.LoadIcon("icon_search_24x24.png", 16, 16, theme.InvertIcons).AjustAlpha(0.3);
@ -186,7 +188,7 @@ namespace MatterHackers.MatterControl.PrintLibrary
rootColumn.AddChild(rootNode);
}
this.Enabled = true;
this.TreeLoaded = true;
});
var container = new FlowLayoutWidget(FlowDirection.TopToBottom)
@ -391,6 +393,8 @@ namespace MatterHackers.MatterControl.PrintLibrary
public string NewPrinterName => printerNameInput.Text;
public bool TreeLoaded { get; private set; }
public class MakeModelInfo
{
public string Make { get; set; }