private void onSettingsEdit(SettingsEditMessage message) { viewModel.Message = message; oldPathToGame = message.Settings.PathToGame; messenger.Send(new OpenDialogMessage { Name = DialogNames.Settings }); }
private void onSettingsEditResponse(SettingsEditMessage message) { if (message.IsCancel) return; mapper.Map(message.Settings, settings); messenger.Send(new SettingsChangedMessage { Settings = settings }); settingsRepository.SaveSettings(mapper.Map<DomainSettings>(settings)); }