Blacker.MangaScraper.ViewModel.SettingsWindowViewModel.SettingsWindowViewModel C# (CSharp) Метод

SettingsWindowViewModel() публичный Метод

public SettingsWindowViewModel ( ) : System
Результат System
        public SettingsWindowViewModel()
        {
            _saveSettingsCommand = new RelayCommand(SaveClicked);
            _browseCommand = new RelayCommand(BrowseClicked);
            _clearCommand = new RelayCommand(ClearClicked);

            MaxParallelDownloads = Properties.Settings.Default.MaxParallelDownloads;
            ReaderPath = Properties.Settings.Default.ReaderPath;
            EnablePreload = Properties.Settings.Default.EnablePreload;
            MaxRecentFolders = Properties.Settings.Default.RecentFolders.MaxItems;
            PreselectDownloadFolder = Properties.Settings.Default.PreselectOutputFolder;
            RecentMangaDaysNum = Properties.Settings.Default.RecentMangaDaysNum;
            ChaptersSelectionMode = Properties.Settings.Default.ChaptersSelectionMode;

            Scrapers = ScraperLoader.Instance.AllScrapers
                .Select(s =>
                    new ScraperInfo(s, !Properties.Settings.Default.DisabledScrapers.Contains(s.ScraperGuid))).ToList();

            try
            {
                using (var reader = new System.IO.StreamReader(System.Windows.Application.GetResourceStream(new System.Uri("/readme.txt", UriKind.Relative)).Stream, Encoding.UTF8))
                {
                    AboutText = reader.ReadToEnd();
                }
            }
            catch (System.IO.IOException ex)
            {
                _log.Error("Unable to load about information from resource.", ex);
                AboutText = "";
            }
        }