示例#1
0
 /// <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();
 }
示例#2
0
        /// <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;
        }