Пример #1
0
        private void HandleSettingsChanged(object sender, EventArgs e)
        {
            ValidationResult validationResult = _settingsSerializer.Serialize(_view.CurrentSettings);

            if (validationResult.IsValid)
            {
                _view.HideView();
                FireEvent(SettingsChanged, _view.CurrentSettings);
            }
            else
            {
                _view.ShowValidationResult(validationResult);
            }
        }