Пример #1
0
        private bool File_FileLocationSet(LocalizationResourceFile file)
        {
            if (LocalizationResourceFiles.Count(e => e.ResxFile == file.ResxFile) > 1)
            {
                return(false);
            }

            if (_loading)
            {
                return(true);
            }

            _config.SetValue(ConfigKeys.LocalizationWatcher_ResxFiles, LocalizationResourceFiles.Select(e => new LocalizationResourceFileConfig
            {
                FileLocation = e.ResxFile
            }).ToList());
            Watch();
            return(true);
        }
Пример #2
0
        public async void AddFile()
        {
            LocalizationResourceFile file = await CreateLocalizationResourceFile();

            LocalizationResourceFiles.Add(file);
        }