コード例 #1
0
 public KeybindsInitializationStartedHandler(
     INativeProcess nativeProcess,
     IKeybindsProvider keybindsProvider,
     IKeybindsExecutor keybindsExecutor)
 {
     this.nativeProcess    = nativeProcess;
     this.keybindsProvider = keybindsProvider;
     this.keybindsExecutor = keybindsExecutor;
 }
コード例 #2
0
        public SettingsViewModel(
            IUILanguageProvider uiLanguageProvider,
            IGameLanguageProvider gameLanguageProvider,
            ISidekickSettings sidekickSettings,
            IKeybindsProvider keybindsProvider,
            IKeybindsExecutor keybindsExecutor,
            IMediator mediator)
        {
            this.uiLanguageProvider   = uiLanguageProvider;
            this.gameLanguageProvider = gameLanguageProvider;
            this.sidekickSettings     = sidekickSettings;
            this.keybindsProvider     = keybindsProvider;
            this.keybindsExecutor     = keybindsExecutor;
            this.mediator             = mediator;

            sidekickSettings.CopyValuesTo(this);

            WikiOptions.Add("POE Wiki", WikiSetting.PoeWiki.ToString());
            WikiOptions.Add("POE Db", WikiSetting.PoeDb.ToString());
            uiLanguageProvider.AvailableLanguages.ForEach(x => UILanguageOptions.Add(x.NativeName.First().ToString().ToUpper() + x.NativeName[1..], x.Name));