public Control GetDocumentControl() { OgreControl mv = new OgreControl(); mv.meshname = MeshName; mv.Dock = DockStyle.Fill; return(mv); }
private void timer1_Tick(object sender, EventArgs e) { if (step == 0) { timer1.Stop(); LoadingLabel.Text = "Starting OGRE3D..."; step++; timer1.Start(); } else if (step == 1) { timer1.Stop(); if (!EditorUserSettings.UserSettings.InitUserSettings()) { DialogResult = DialogResult.Abort; Close(); } if (!OgreRenderer.Renderer.InitEditorRendererSubsystem()) { DialogResult = DialogResult.Abort; Close(); } step++; timer1.Start(); } else if (step == 2) { timer1.Stop(); LoadingLabel.Text = "Loading Essential OGRE3D Files From VD2..."; step++; timer1.Start(); } else if (step == 3) { timer1.Stop(); OgreControl mv = new OgreControl(); mv.SplashLoadingWindow = true; mv.Size = new Size(1, 1); Controls.Add(mv); step++; timer1.Start(); } else if (step == 4) { timer1.Stop(); LoadingLabel.Text = "Loading VD2 Data Files..."; step++; timer1.Start(); } else if (step == 5) { timer1.Stop(); EditorUI.UI.ReloadData(); step++; timer1.Start(); } else if (step >= 6) { DialogResult = DialogResult.OK; Close(); } }