void SystemWindow_Closing(object sender, WidgetClosingEnventArgs closingEvent) { SaveSizeAndPosition(); SaveWindowShouldStartClosed(); if (PopedOutSystemWindow.Children.Count == 1) { GuiWidget child = PopedOutSystemWindow.Children[0]; PopedOutSystemWindow.RemoveChild(child); widgetWhosContentsPopOut.RemoveAllChildren(); widgetWhosContentsPopOut.AddChild(child); } PopedOutSystemWindow = null; }
private void SystemWindow_Closing(object sender, ClosingEventArgs closingEvent) { if (systemWindowWithPopContent != null) { SaveSizeAndPosition(); SaveWindowShouldStartClosed(); if (systemWindowWithPopContent.Children.Count == 1) { GuiWidget child = systemWindowWithPopContent.Children[0]; systemWindowWithPopContent.RemoveChild(child); child.ClearRemovedFlag(); widgetWithPopContent.RemoveAllChildren(); widgetWithPopContent.AddChild(child); } systemWindowWithPopContent = null; } }