コード例 #1
0
        public void AutomaticSetup()
        {
            ReadSettings();
            var folders = ReadFolders();

            if (folders == null || folders.Count == 0)
            {
                ErrorHandlingService.ExceptionHandler(new InvalidDataException());
            }
            else if (folders.Count >= 1)
            {
                _folders = folders;
            }
        }
コード例 #2
0
        private void ReadSettings()
        {
            var info = new SettingsInfo();

            try
            {
                info = SettingsService.ReadData();
            }
            catch (Exception e)
            {
                ErrorHandlingService.ExceptionHandler(e);
            }

            _settings = info;
        }