Get the starting color set correctly

Made the android printer select window fix its colors on change
This commit is contained in:
Lars Brubaker 2016-12-09 10:40:01 -08:00
parent 71b5e30bba
commit 9896346610
7 changed files with 92 additions and 36 deletions

View file

@ -39,6 +39,8 @@ namespace MatterHackers.MatterControl
{
public class SetupOptionsPage : WizardPage
{
private event EventHandler unregisterEvents;
public SetupOptionsPage()
: base("Done")
{
@ -127,6 +129,12 @@ namespace MatterHackers.MatterControl
this.Invalidate();
}
public override void OnClosed(EventArgs e)
{
unregisterEvents?.Invoke(this, null);
base.OnClosed(e);
}
}
public class SetupAccountView : SetupViewBase
@ -248,7 +256,7 @@ namespace MatterHackers.MatterControl
mainContainer.AddChild(buttonContainer);
ApplicationController.Instance.ReloadAllRequested.RegisterEvent(RemoveAndNewControl, ref unregisterEvents);
ApplicationController.Instance.DoneReloadingAll.RegisterEvent(RemoveAndNewControl, ref unregisterEvents);
}
private void RemoveAndNewControl(object sender, EventArgs e)