public void LoadContent(GraphicsDevice graphicsDevice, ContentManager contentManager,
                                ScreenDescription screenDescription)
        {
            ExecutionState = InnerExecutionState.INIT;

            _screenSizeInformation = screenDescription.ScreenSizeInformation;

            _spriteBatch = new SpriteBatch(graphicsDevice);

            _background = contentManager.Load <Texture2D>(screenDescription.AssetNameBackground);

            _font = contentManager.Load <SpriteFont>("Labels/LabelLarge");

            // Pos Buttons
            var buttonspace  = 10;
            var buttonWidth  = (_screenSizeInformation.WidhtOuterScreen - 3 * buttonspace) / 2;
            var buttonHeigth = (_screenSizeInformation.HeightOuterScreen / 2 - 2 * buttonspace) / 2;

            _button = contentManager.Load <Texture2D>("RoundRectangle");

            _BtnStart       = Button.Create(buttonspace, _screenSizeInformation.HeightOuterScreen / 2, buttonWidth, buttonHeigth);
            _BtnMultiplayer = Button.Create(buttonspace, _screenSizeInformation.HeightOuterScreen / 2 + buttonHeigth + buttonspace, buttonWidth, buttonHeigth);
            _BtnEdit        = Button.Create(buttonspace + buttonWidth + buttonspace, _screenSizeInformation.HeightOuterScreen / 2, buttonWidth, buttonHeigth);
            _BtnStatistic   = Button.Create(buttonspace + buttonWidth + buttonspace, _screenSizeInformation.HeightOuterScreen / 2 + buttonHeigth, buttonWidth, buttonHeigth);
        }
 internal static ScreenDescription Create(
     ScreenSizeInformation info,
     List <GameObjectDescription> items,
     string assetNameBackground,
     GameScreenExecutionId id,
     TimeSpan timeOut)
 {
     return(new ScreenDescription(info, items, assetNameBackground, id, timeOut));
 }
 private ScreenDescription(
     ScreenSizeInformation info,
     List <GameObjectDescription> items,
     string assetNameBackground,
     GameScreenExecutionId id,
     TimeSpan timeOut)
 {
     ScreenSizeInformation = info;
     Items = items;
     AssetNameBackground = assetNameBackground;
     Id      = id;
     TimeOut = timeOut;
 }
        private static ScreenSizeInformation CreateScreenInfo(float width, float height, float widthOuter, float heightOuter, float scale, Vector2 offsetToOutherScreen)
        {
            var screenInfo = ScreenSizeInformation.Create(width * scale, height * scale, widthOuter, heightOuter, scale, offsetToOutherScreen);

            return(screenInfo);
        }