/// <summary>
        /// Handels Height of the game window (ONLY if Fullscreen is enabled!)
        /// </summary>
        private void HeightTextBox_TextChanged(object sender, EventArgs e)
        {
            string[] linesToAppend =
            {
                "ResolutionSizeY=",
                "LastUserConfirmedResolutionSizeY=",
                "DesiredScreenHeight=",
                "LastUserConfirmedDesiredScreenHeight="
            };

            string[] customValues =
            {
                HeightTextBox.Text,
                HeightTextBox.Text,
                HeightTextBox.Text,
                HeightTextBox.Text
            };

            List <string> fileContents = DFile.AppendFileContents(Game.GameUserSettingsINI, linesToAppend, customValues);

            // Remove the Read Only attribute from the GameUserSettings.ini file
            File.SetAttributes(Game.GameUserSettingsINI, FileAttributes.Normal);

            // Overwrite the info in the file
            File.WriteAllLines(Game.GameUserSettingsINI, fileContents);

            // Re-Add the Read Only attribute to the GameUserSettings.ini file
            File.SetAttributes(Game.GameUserSettingsINI, FileAttributes.ReadOnly);
        }
        /// <summary>
        /// Handles Windowed Mode
        /// </summary>
        private void WindowedCheckBox_CheckedChanged(object sender, EventArgs e)
        {
            string[] linesToAppend =
            {
                "FullscreenMode=",
                "LastConfirmedFullscreenMode=",
                "PreferredFullscreenMode=",
            };

            string[] customValues =
            {
                "1",
                "1",
                "1"
            };

            List <string> fileContents = DFile.AppendFileContents(Game.GameUserSettingsINI, linesToAppend, customValues);

            // Remove the Read Only attribute from the GameUserSettings.ini file
            File.SetAttributes(Game.GameUserSettingsINI, FileAttributes.Normal);

            // Overwrite the info in the file
            File.WriteAllLines(Game.GameUserSettingsINI, fileContents);

            // Re-Add the Read Only attribute to the GameUserSettings.ini file
            File.SetAttributes(Game.GameUserSettingsINI, FileAttributes.ReadOnly);
        }
        /// <summary>
        /// Handles Fullscreen
        /// </summary>
        private void FullscreenCheckBox_CheckedChanged(object sender, EventArgs e)
        {
            // Fix Fullscreen for ini file (0 = Fullscreen, 1 = Windowed Fullscreen)
            bool FullscreenFix = !FullscreenCheckBox.Checked;

            string[] linesToAppend =
            {
                "FullscreenMode=",
                "LastConfirmedFullscreenMode=",
                "PreferredFullscreenMode=",
            };

            string[] customValues =
            {
                Convert.ToInt32(FullscreenFix).ToString(),
                Convert.ToInt32(FullscreenFix).ToString(),
                Convert.ToInt32(FullscreenFix).ToString(),
            };

            List <string> fileContents = DFile.AppendFileContents(Game.GameUserSettingsINI, linesToAppend, customValues);

            // Remove the Read Only attribute from the GameUserSettings.ini file
            File.SetAttributes(Game.GameUserSettingsINI, FileAttributes.Normal);

            // Overwrite the info in the file
            File.WriteAllLines(Game.GameUserSettingsINI, fileContents);

            // Re-Add the Read Only attribute to the GameUserSettings.ini file
            File.SetAttributes(Game.GameUserSettingsINI, FileAttributes.ReadOnly);
        }
        /// <summary>
        /// Handles Framerate cap (ONLY if V-Sync is disabled!)
        /// </summary>
        private void FramerateTextBox_TextChanged(object sender, EventArgs e)
        {
            string[] linesToAppend =
            {
                "FrameRateLimit=",
            };

            string[] customValues =
            {
                FramerateTextBox.Text,
            };

            List <string> fileContents = DFile.AppendFileContents(Game.GameUserSettingsINI, linesToAppend, customValues);

            // Remove the Read Only attribute from the GameUserSettings.ini file
            File.SetAttributes(Game.GameUserSettingsINI, FileAttributes.Normal);

            // Overwrite the info in the file
            File.WriteAllLines(Game.GameUserSettingsINI, fileContents);

            // Re-Add the Read Only attribute to the GameUserSettings.ini file
            File.SetAttributes(Game.GameUserSettingsINI, FileAttributes.ReadOnly);
        }
        /// <summary>
        /// Handles V-Sync
        /// </summary>
        private void VSyncCheckBox_CheckedChanged(object sender, EventArgs e)
        {
            string[] linesToAppend =
            {
                "bUseVSync="
            };

            string[] customValues =
            {
                VsyncCheckBox.Checked.ToString(),
            };

            List <string> fileContents = DFile.AppendFileContents(Game.GameUserSettingsINI, linesToAppend, customValues);

            // Remove the Read Only attribute from the Engine.ini file
            File.SetAttributes(Game.GameUserSettingsINI, FileAttributes.Normal);

            // Overwrite the info in the file
            File.WriteAllLines(Game.GameUserSettingsINI, fileContents);

            // Re-Add the Read Only attribute to the Engine.ini file
            File.SetAttributes(Game.GameUserSettingsINI, FileAttributes.ReadOnly);
        }