make sure we close editor on delete printer

don't flash content
This commit is contained in:
Lars Brubaker 2016-06-08 18:26:08 -07:00
parent 35080277d7
commit 105734cccf
3 changed files with 42 additions and 24 deletions

View file

@ -51,6 +51,28 @@ namespace MatterHackers.MatterControl
this.MinimumSize = new Vector2(350 * GuiWidget.DeviceScale, 400 * GuiWidget.DeviceScale);
}
public static void Close(string uri)
{
WizardWindow existingWindow;
if (allWindows.TryGetValue(uri, out existingWindow))
{
existingWindow.Close();
}
}
public static WizardWindow GetSystemWindow(string uri)
{
WizardWindow existingWindow;
if (allWindows.TryGetValue(uri, out existingWindow))
{
return existingWindow;
}
return null;
}
public static void Show<PanelType>(string uri, string title) where PanelType : WizardPage, new()
{
WizardWindow existingWindow;