private void LoadSettings(SettingsDto settings)
		{
			view.MaxAbsoluteScalePower = settings.MaxAbsoluteScalePower;
			view.ExportValuesSeparator = settings.ExportValuesSeparator;
			view.RecentFilesCount = settings.RecentFilesCount;
			view.Language = new LanguageDto(settings.Language);

			foreach (var extension in settings.RegisteredExtensions)
			{
				view.ToogleExtension(extension, true);
			}
		}
示例#2
0
		public SettingsForm(SettingsDto settings)
		{
			InitializeComponent();
			presenter = new SettingsPresenter(this, settings);
		}
		public SettingsPresenter(ISettingsView view, SettingsDto settingsToLoad)
		{
			this.view = view;
			this.settingsToLoad = settingsToLoad;
		}
示例#4
0
		private static SettingsStorage GetSettingsStorage(SettingsDto dto)
		{
			return new SettingsStorage(
				dto.MaxAbsoluteScalePower, dto.ExportValuesSeparator,
				dto.RecentFilesCount, dto.RegisteredExtensions, dto.Language);
		}