示例#1
0
        private void SettingsFileChanged(object sender, FileSystemEventArgs e)
        {
            if (Saving)
            {
                return;
            }

            var handler = FileModified;

            if (handler != null)
            {
                var args = new FileModifiedEventArgs(this);
                handler(null, args);
                if (args.ReloadFile)
                {
                    Container.ReloadSettingsProfile(this);
                }
            }
        }
示例#2
0
        private void SettingsFileChanged(object sender, FileSystemEventArgs e)
        {
            if (Saving)
                return;

            var handler = FileModified;
            if (handler != null)
            {
                var args = new FileModifiedEventArgs(this);
                handler(null, args);
                if (args.ReloadFile)
                {
                    Group.ReloadSettingsProfile(this);
                }
            }
        }