コード例 #1
0
    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));
    }