using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace DarkWynter_ToolBox { public partial class ApplicationMain : Form { CutSceneMain cutSceneMain = new CutSceneMain(); //LevelEditorPanel levelEditorPanel = new LevelEditorPanel(); ContentLoader contentLoaderMain = new ContentLoader(); public ApplicationMain() { InitializeComponent(); this.IsMdiContainer = true; this.Dock = DockStyle.Fill; this.MinimizeBox = true; this.MaximizeBox = true; this.FormBorderStyle = FormBorderStyle.Fixed3D; contentLoaderButton_Click(new object(), new EventArgs()); } private void hideAll() { //levelEditorPanel.Hide(); contentLoaderMain.Hide(); cutSceneMain.Hide(); } private void cutSceneButton_Click(object sender, EventArgs e) { hideAll(); cutSceneMain.MdiParent = this; cutSceneMain.Dock = DockStyle.Fill; cutSceneMain.MinimizeBox = false; cutSceneMain.MaximizeBox = false; cutSceneMain.FormBorderStyle = FormBorderStyle.None; cutSceneMain.Show(); } private void levelEditorButton_Click(object sender, EventArgs e) { //hideAll(); //levelEditorMain.MdiParent = this; //levelEditorMain.Dock = DockStyle.Fill; //levelEditorMain.MinimizeBox = false; //levelEditorMain.MaximizeBox = false; //levelEditorMain.FormBorderStyle = FormBorderStyle.None; //levelEditorMain.Show(); } private void contentLoaderButton_Click(object sender, EventArgs e) { hideAll(); //contentLoaderMain.MdiParent = this; contentLoaderMain.Dock = DockStyle.Fill; //contentLoaderMain.MinimizeBox = false; //contentLoaderMain.MaximizeBox = false; //contentLoaderMain.FormBorderStyle = FormBorderStyle.None; contentLoaderMain.Show(); this.Controls.Add(contentLoaderMain); } } }