Ejemplo n.º 1
0
 private void LayoutEditor_FormClosed(object sender, FormClosedEventArgs e)
 {
     AnimationPanel?.OnControlClosing();
     GamePreviewWindow?.OnControlClosing();
     GamePreviewWindow?.Dispose();
     LayoutPaneEditor?.Close();
     LayoutAnimEditor?.Close();
     LayoutHierarchy?.Close();
 }
Ejemplo n.º 2
0
        public override void OnControlClosing()
        {
            foreach (var container in ModelContainers)
            {
                Runtime.ModelContainers.Remove(container);
            }
            ModelContainers.Clear();

            Viewport3D.OnControlClosing();
            Viewport3D.Dispose();

            if (AnimationPanel != null)
            {
                AnimationPanel.OnControlClosing();
            }
        }