Exemple #1
0
 public static void Load(SettingsKey Key)
 {
     BeginUpdate();
     try
     {
         InsertedColor = Color.FromArgb(Key.GetInt("InsertedColor", s_DefaultInsertedColor.ToArgb()));
         DeletedColor  = Color.FromArgb(Key.GetInt("DeletedColor", s_DefaultDeletedColor.ToArgb()));
         ChangedColor  = Color.FromArgb(Key.GetInt("ChangedColor", s_DefaultChangedColor.ToArgb()));
         SpacesPerTab  = Key.GetInt("SpacesPerTab", s_iDefaultSpacesPerTab);
     }
     finally
     {
         EndUpdate();
     }
 }
Exemple #2
0
 public static void Load(SettingsKey Key)
 {
     BeginUpdate();
     try
     {
         InsertedColor = Color.FromArgb(Key.GetInt("InsertedColor", s_DefaultInsertedColor.ToArgb()));
         DeletedColor = Color.FromArgb(Key.GetInt("DeletedColor", s_DefaultDeletedColor.ToArgb()));
         ChangedColor = Color.FromArgb(Key.GetInt("ChangedColor", s_DefaultChangedColor.ToArgb()));
         SpacesPerTab = Key.GetInt("SpacesPerTab", s_iDefaultSpacesPerTab);
     }
     finally
     {
         EndUpdate();
     }
 }