public GameSettings(mainform parent)
        {
            ResolutionX = 1280;
            ResolutionY = 720;
            InitializeComponent();

            if (File.Exists(customConfig))
                readcustomconfig();

            readfile();
        }
        public GameSettings(mainform parent)
        {
            ResolutionX = 1280;
            ResolutionY = 720;
            InitializeComponent();

            if (File.Exists(customConfig))
            {
                readcustomconfig();
            }

            readfile();
        }