private void onSettingsEdit(SettingsEditMessage message) {
      viewModel.Message = message;

      oldPathToGame = message.Settings.PathToGame;

      messenger.Send(new OpenDialogMessage { Name = DialogNames.Settings });
    }
示例#2
0
    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));
    }