コード例 #1
0
ファイル: MainViewModel.cs プロジェクト: individuell/EAS
        public MainViewModel()
        {
            Instance = this;
            SettingsList.Load();
            _audio  = new Audio();
            Devices = _audio.GetDevices().ToObservableCollection();

            // Get full path
            string appdataLocalPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);

            SettingsDirectory    = Path.Combine(appdataLocalPath, "EAS");
            SettingsFileFullPath = Path.Combine(SettingsDirectory, SettingsFileName);

            LoadHotKeysFromFile();
            RegisterAllHotKeys();
            ReloadHotKeys();
        }