using ReCodeItLib.Utils; namespace ReCodeItLib.Models; /// /// All settings container /// public class Settings { private AppSettings? _appSettings; public AppSettings? AppSettings { get { return _appSettings; } set { _appSettings = value; Save(); } } private RemapperSettings? _remapper; public RemapperSettings? Remapper { get { return _remapper; } set { _remapper = value; Save(); } } private void Save() { DataProvider.SaveAppSettings(); } } /// /// These are settings for the application /// public class AppSettings { private bool _debug; public bool Debug { get { return _debug; } set { _debug = value; Save(); } } private bool _silentMode; public bool SilentMode { get { return _silentMode; } set { _silentMode = value; Save(); } } private void Save() { DataProvider.SaveAppSettings(); } } /// /// These are settings for the manual remapper /// public class RemapperSettings { private string _mappingPath = string.Empty; /// /// Path to the mapping file /// public string MappingPath { get { return _mappingPath; } set { _mappingPath = value; Save(); } } private List _tokensToMatch = []; /// /// The re-mapper will look for these tokens in class names, otherwise they will be skipped /// public List TokensToMatch { get { return _tokensToMatch; } set { _tokensToMatch = value; Save(); } } private void Save() { DataProvider.SaveAppSettings(); } }