void CreateGUI() { DestroyGUI(); guiExampleControl = new GUIExampleControl(); renderTargetUserControl1.ControlManager.Controls.Add(guiExampleControl); }
void DestroyGUI() { if (guiExampleControl != null) { guiExampleControl.SetShouldDetach(); guiExampleControl = null; } }
void DestroyGUI() { if( guiExampleControl != null ) { guiExampleControl.SetShouldDetach(); guiExampleControl = null; } }
void CreateGUI() { DestroyGUI(); guiExampleControl = new GUIExampleControl(); renderTargetUserControl1.ControlManager.Controls.Add( guiExampleControl ); }