public void Load()
        {
            graphics.PreferMultiSampling = stateCheckBox;
            graphics.ApplyChanges();
            spriteFont = Content.Load<SpriteFont>("MenuFont");

            txSoundBar = Content.Load<Texture2D>("SoundBar");
            txSoundBarCursor = Content.Load<Texture2D>("SoundBarCursor");
            txArrowLeft = Content.Load<Texture2D>("ArrowLeft");
            txArrowRight = Content.Load<Texture2D>("ArrowRight");
            posSoundBar = new Vector2(2.35f, 3f);
            posSoundBarCursor = new Vector2(1.77f, 3.17f);
            posArrowLeft = new Vector2(2.64f, 3.17f);
            posArrowRight = new Vector2(1.67f, 3.17f);
            sizeArrow = new Vector2(43, 35);
            sizeSoundBar = new Vector2(204, 10);
            sizeSoundBarCursor = new Vector2(22, 35);
            tSound = new TSoundOption(graphics, txSoundBar, txSoundBarCursor, txArrowLeft, txArrowRight, posSoundBar, sizeSoundBar, sizeSoundBarCursor, posArrowLeft, posArrowRight, sizeArrow, Color.White);

            txResolutionBar = Content.Load<Texture2D>("ResolutionBar");
            txArrowLeft = Content.Load<Texture2D>("ArrowLeft");
            txArrowRight = Content.Load<Texture2D>("ArrowRight");
            posArrowLeft = new Vector2(2.64f, 2.5f);
            posArrowRight = new Vector2(1.67f, 2.5f);
            posResolutionBar = new Vector2(2.4f, 2.5f);
            sizeArrow = new Vector2(43, 35);
            sizeResolutionBar = new Vector2(229, 35);
            tResolution = new TResolutionOption(graphics, txResolutionBar, txArrowLeft, txArrowRight, posResolutionBar, sizeResolutionBar, posArrowLeft, posArrowRight, sizeArrow, Color.White);

            checkedBox = Content.Load<Texture2D>("CheckboxTrue");
            unCheckedBox = Content.Load<Texture2D>("CheckboxFalse");
            posCheckBoxLeft = new Vector2(2.63f, 2);
            posCheckBoxRight = new Vector2(1.79f, 2);
            vecSizeCheckBox = new Vector2(35, 35);
            cbAlias = new TCheckBoxOption(graphics, checkedBox, unCheckedBox, posCheckBoxLeft, posCheckBoxRight, vecSizeCheckBox, stateCheckBox, Color.White);

            txBackground = Content.Load<Texture2D>("OptionsBG");
            txBack = Content.Load<Texture2D>("Back");
            txSelectArrow = Content.Load<Texture2D>("SelectArrow");
            textHeader = "JUST ANOTHER OPTIONS MENU";
            textSound = "SOUND";
            textResolution = "RESOLUTION";
            textAlias = "ANTI ALIASING";
            textAliasOn = "ON";
            textAliasOff = "OFF";
            posBack = new Vector2(2.13f, 1.7f);
            posHeader = new Vector2(2.9f, 5f);
            posSelectArrow = new Vector2(6.5f, 3.1f);
            posSound = new Vector2(3.51f, 3.2f);
            posResolution = new Vector2(4.4f, 2.5f);
            posAlias = new Vector2(5.1f, 2f);
            posAliasOn = new Vector2(2.41f, 2f);
            posAliasOff = new Vector2(1.69f, 2f);
            sizeBack = new Vector2(70, 20);
            sizeSelectArrow = new Vector2(38, 18);
            oText = new OptionsText(graphics, txBackground, txBack, posBack, sizeBack, txSelectArrow, posSelectArrow, sizeSelectArrow, spriteFont, textHeader, posHeader, textSound, posSound, textResolution, posResolution, textAlias, posAlias, textAliasOn, posAliasOn, textAliasOff, posAliasOff, Color.White);
            sleepTimeLeftRight = 8;
            framesPassed = 0;
            sleepTimeUpDown = 4;
            sleepTimeCheckBox = 150;
            sleepTimeResolution = 20;
        }
        public void Init()
        {
            //STRUCT CHECKBOX
            structCheckBox = new StructCheckBox();
            graphics.PreferMultiSampling = structCheckBox.StateCheckBox;
            graphics.ApplyChanges();
            this.spriteFont = structOptionsMain.SpriteFont;

            //SONG CONFIG
            //song = Content.Load<Song>("Ismo_Kan_Niet_Hangen_Met_Je");
            //MediaPlayer.Play(song);
            MediaPlayer.Volume = 1f;

            //STRUCT SOUND
            strucSound = new StructSound();
            strucSound.PosArrowLeft = new Vector2(2.64f, 3.17f);
            strucSound.TxSoundBar = Content.Load<Texture2D>("SoundBar");
            strucSound.TxSoundBarCursor = Content.Load<Texture2D>("SoundBarCursor");
            strucSound.TxArrowLeft = Content.Load<Texture2D>("ArrowLeft");
            strucSound.TxArrowRight = Content.Load<Texture2D>("ArrowRight");
            strucSound.PosSoundBar = new Vector2(2.34f, 2.6f);
            strucSound.PosSoundBarCursor = new Vector2(1.77f, 3.30f);
            strucSound.PosArrowLeft = new Vector2(2.65f, 3.17f);
            strucSound.PosArrowRight = new Vector2(1.53f, 3.17f);
            strucSound.SizeArrow = new Vector2(43, 35);
            strucSound.SizeSoundBar = new Vector2(200, 10);
            strucSound.SizeSoundBarCursor = new Vector2(22, 35);
            tSound = new TSoundOption(structOptionsMain, strucSound);

            //STRUCT RESOLUTION
            structResolution = new StructResolution();
            structResolution.TxResolutionBar = Content.Load<Texture2D>("ResolutionBar");
            structResolution.TxArrowLeft = Content.Load<Texture2D>("ArrowLeft");
            structResolution.TxArrowRight = Content.Load<Texture2D>("ArrowRight");
            structResolution.PosArrowLeft = new Vector2(2.65f, 2.5f);
            structResolution.PosArrowRight = new Vector2(1.53f, 2.5f);
            structResolution.PosResolutionBar = new Vector2(2.35f, 2.5f);
            structResolution.SizeArrow = new Vector2(43, 35);
            structResolution.SizeResolutionBar = new Vector2(200, 35);
            tResolution = new TResolutionOption(structOptionsMain, structResolution);
            //R.I.P. -> tResolution = new TResolutionOption(graphics, txResolutionBar, txArrowLeft, txArrowRight, posResolutionBar, sizeResolutionBar, posArrowLeft, posArrowRight, sizeArrow, Color.White);

            //STRUCT CHECKBOX
            structCheckBox.TxCheckedBox = Content.Load<Texture2D>("CheckboxTrue");
            structCheckBox.TxUnCheckedBox = Content.Load<Texture2D>("CheckboxFalse");
            structCheckBox.PosCheckBoxLeft = new Vector2(2.63f, 2);
            structCheckBox.PosCheckBoxRight = new Vector2(1.67f, 2);
            structCheckBox.VecSizeCheckBox = new Vector2(35, 35);
            cbAlias = new TCheckBoxOption(structOptionsMain, structCheckBox);
            //R.I.P. -> cbAlias = new TCheckBoxOption(graphics, checkedBox, unCheckedBox, posCheckBoxLeft, posCheckBoxRight, vecSizeCheckBox, stateCheckBox, Color.White);

            //STRUCT OPTIONS TEXT
            structOptionsText.TxBack = Content.Load<Texture2D>("Back");
            structOptionsText.TxKeybindings = Content.Load<Texture2D>("Keybindings");
            structOptionsText.TxSelectArrow = Content.Load<Texture2D>("SelectArrow");
            structOptionsText.TextHeader = "JUST ANOTHER OPTIONS MENU";
            structOptionsText.TextSound = "SOUND";
            structOptionsText.TextResolution = "RESOLUTION";
            structOptionsText.TextAlias = "ANTI ALIASING";
            structOptionsText.TextAliasOn = "ON";
            structOptionsText.TextAliasOff = "OFF";
            structOptionsText.PosBack = new Vector2(2.1f, 1.5f);
            structOptionsText.PosKeybindings = new Vector2(2.3f, 1.7f);
            structOptionsText.PosHeader = new Vector2(2.9f, 5f);
            structOptionsText.PosSelectArrow = new Vector2(22f, 3.3f);
            structOptionsText.PosSound = new Vector2(3.80f, 3.2f);
            structOptionsText.PosResolution = new Vector2(5.8f, 2.5f);
            structOptionsText.PosAlias = new Vector2(8.3f, 2f);
            structOptionsText.PosAliasOn = new Vector2(2.35f, 2f);
            structOptionsText.PosAliasOff = new Vector2(1.55f, 2f);
            structOptionsText.SizeBack = new Vector2(65, 20);
            structOptionsText.SizeKeybindings = new Vector2(172, 20);
            structOptionsText.SizeSelectArrow = new Vector2(46, 46);
            oText = new OptionsText(structOptionsMain, structOptionsText);
            //R.I.P. -> oText = new OptionsText(graphics, txBackground, txBack, posBack, sizeBack, txSelectArrow, posSelectArrow, sizeSelectArrow, spriteFont, textHeader, posHeader, textSound, posSound, textResolution, posResolution, textAlias, posAlias, textAliasOn, posAliasOn, textAliasOff, posAliasOff, Color.White);

            //BACKGROUND
            bg = new Background(graphics.GraphicsDevice, Content);

            //INITIALIZE
            framesPassed = 0;
            selectedNumber = 0;
            tResolution.ChangeResolution(new Vector2(1024, 576));
        }