public static void Load()
            {
                string file = Path.Combine(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), Application.ProductName), Resources.SettingsPath);

                Data = new Data.Settings();

                if (File.Exists(file))
                {
                    try
                    {
                        Data.Load(file);
                    }
                    catch (IOException ex)
                    {
                        Exceptions.Show(string.Format(Strings.SettingsLoadException, Resources.SettingsPath), ex);
                    }
                }

                // check for valid data
                Data.Data.General.CheckVersion();
                Data.Data.General.CheckValidData();
                SharedGeometries.LoadColors(Data.Data.General.ColorBox);

                if (Data.Data.General.AutoUpdate.UpdateFile == @"http://freelancermodstudio.googlecode.com/svn/trunk/updates.txt")
                {
                    Data.Data.General.AutoUpdate.UpdateFile = @"https://raw.githubusercontent.com/AftermathFreelancer/FLModStudio/master/updates.txt";
                }
            }
        private void OptionsForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            Helper.Settings.Save();
            SharedGeometries.LoadColors(Helper.Settings.Data.Data.General.ColorBox);
            MainForm form = (MainForm)this.Owner;

            MessageBox.Show("Some settings will require a restart in order to take place.", "Settings Saved.", MessageBoxButtons.OK);
        }