FRBDK/LevelEditorPlugin/LevelEditorPlugin/LevelEditorPlugin/Game1.cs
/// <summary>
/// Allows the game to perform any initialization it needs to before starting to run.
/// This is where it can query for any required services and load any non-graphic
/// related content.  Calling base.Initialize will enumerate through any components
/// and initialize them as well.
/// </summary>
Allows the game to perform any initialization it needs to before starting to run.
This is where it can query for any required services and load any non-graphic
related content.  Calling base.Initialize will enumerate through any components
and initialize them as well.
Allows the game to perform any initialization it needs to before starting to run . This is where it can query for any required services and load any non - graphic related content . Calling base . Initialize will enumerate through any components and initialize them as well .
protected override void Initialize()
        {
            FlatRedBallServices.InitializeFlatRedBall(this, _graphics);
            IsMouseVisible = true;
            GuiData.Initialize();
            AvailableAssetTypes.Initialize(FileManager.RelativeDirectory + "Content/ContentTypes.csv");
            #region Set up resizing
            Renderer.UseRenderTargets = false;
            #endregion
            try
            {
                RemotingServer.SetupPort(9426);
                RemotingServer.SetupInterface<SelectionInterface>();
                RemotingServer.SetupInterface<RegisterInterface>();
            }
            catch(Exception e)
            {
                System.Windows.Forms.MessageBox.Show(@"Level Editor could not start, please make sure Level Editor is not already running on your computer 
 Exception: 
"+e);
                FlatRedBallServices.Game.Exit(); 
            }
            GluxManager.ContentManagerName = "LevelEditor";
            EditorLogic.Initialize();
            base.Initialize();
        }
protected override void Initialize ( ) { FlatRedBallServices . InitializeFlatRedBall ( this , _graphics ) ; IsMouseVisible = true ; GuiData . Initialize ( ) ; AvailableAssetTypes . Initialize ( FileManager . RelativeDirectory + " " ) ; region  Set up resizing Renderer . UseRenderTargets = false ; endregion try { RemotingServer . SetupPort ( 9426 ) ; RemotingServer . SetupInterface < SelectionInterface > ( ) ; RemotingServer . SetupInterface < RegisterInterface > ( ) ; } catch ( Exception e ) { System . Windows . Forms . MessageBox . Show ( @"Level Editor could not start, please make sure Level Editor is not already running on your computer 
 
 Exception: 
" + e ) ; FlatRedBallServices . Game . Exit ( ) ; } GluxManager . ContentManagerName = " " ; EditorLogic . Initialize ( ) ; base . Initialize ( ) ; }
Allows the game to perform any initialization it needs to before starting to run.
Allows the game to perform any initialization it needs to before starting to run .