コード例 #1
0
        public MainViewModel()
        {
            HotkeyViewModel = new HotkeySelectorViewModel();
            HotkeyViewModel.HotkeyTriggered += HotkeyViewModel_HotkeyTriggered;
            EnableTranslitCommand            = new DelegateCommand(_ => TurnOn());
            DisableTranslitCommand           = new DelegateCommand(_ => TurnOff());

            string path = System.IO.Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase, "Russian.kbd");

            EngineAdapter.RegisterKeyboardLayout(path);
            EngineAdapter.SetCurrentLayout(0);
        }