コード例 #1
0
        private void btnSettings_Click(object sender, EventArgs e)
        {
            Form frmSettings = FormFactory.CreateSettingsForm(new ThumbnailSettings(_applicationSettingsService));

            if (frmSettings.ShowDialog(this) == DialogResult.OK)
            {
                _maxThumbnails = _applicationSettingsService.Settings.MaxThumbnails;
                _thumbnailSize = ValidateThumbnailSize(_applicationSettingsService.Settings.ThumbnailSize);
                _applicationSettingsService.SaveSettings();
            }
        }