Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 private void SystemWindow_Closing(object sender, WidgetClosingEnventArgs 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;
     }
 }