/// <summary> /// Initializes a new instance of the <see cref="TrinitySetting" /> class. /// </summary> public TrinitySetting() { Combat = new CombatSetting(); WorldObject = new WorldObjectSetting(); Loot = new ItemSetting(); Advanced = new AdvancedSetting(); Notification = new NotificationSetting(); }
/// <summary> /// Initializes a new instance of the <see cref="TrinitySetting" /> class. /// </summary> public TrinitySetting() { Combat = new CombatSetting(); WorldObject = new WorldObjectSetting(); Loot = new ItemSetting(); Advanced = new AdvancedSetting(); Notification = new NotificationSetting(); _FSWatcher = new FileSystemWatcher() { Path = Path.GetDirectoryName(GlobalSettingsFile), Filter = Path.GetFileName(GlobalSettingsFile), NotifyFilter = NotifyFilters.LastWrite, EnableRaisingEvents = true }; _FSWatcher.Changed += _FSWatcher_Changed; _LastLoadedSettings = DateTime.MinValue; }