I go from a ‘view’ window to an ‘edit’ window. On the ‘edit’ window, there is a ‘Save’ button that is wired up like this:
networkChangeWindow.GetChildByName("saveButton").TapEvent += new OnTap(delegate
{
if (Glide.MessageBoxManager.Show("Settings have been saved!", "Settings Saved", DialogButtons.Ok) == DialogResult.Ok)
{
networkChangeWindow.Invalidate();
Tween.SlideWindow(networkChangeWindow, networkStatusWindow, Direction.Left);
}
});
The messagebox shows correctly, and brings me back to the ‘view’ page. However, when I go BACK to the ‘edit’ page (using Tween.Slide) - the messagebox is still there, and this time the OK button doesn’t do anything.
How do I get the message box to “go away” once I navigate away from that window??