Esempio n. 1
0
        public void LoadSettings()
        {
            if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + @"\Settings\IDESettings.dat"))
            {
                FileStream      fs     = new FileStream(AppDomain.CurrentDomain.BaseDirectory + @"\Settings\IDESettings.dat", FileMode.Open, FileAccess.Read);
                BinaryFormatter bf     = new BinaryFormatter();
                SettingsClass   loaded = (SettingsClass)bf.Deserialize(fs);

                setupSettings = loaded.setupSettings;
                setupSettings.LoadGOSetup(loaded.setupSettings);

                codeSettings = loaded.codeSettings;
                codeSettings.LoadEditorSettings(loaded.codeSettings);

                fs.Close();
            }
            else
            {
                SaveSettings();
            }
        }
Esempio n. 2
0
 public SettingsClass()
 {
     setupSettings = new GOSetup();
     codeSettings  = new CodeEditorSettings();
 }
Esempio n. 3
0
 public void LoadEditorSettings(CodeEditorSettings settings)
 {
     backColor = settings.backColor;
     foreColor = settings.foreColor;
 }