Exemple #1
0
        private async void OnDictionaryChanged()
        {
            StorageFolder userpath = null;

            WritePadAPI.resetRecognizer();
            try
            {
                userpath = await ApplicationData.Current.LocalFolder.CreateFolderAsync("Dictionaries");
            }
            catch (Exception)
            {
            }
            if (userpath == null)
            {
                userpath = await ApplicationData.Current.LocalFolder.GetFolderAsync("Dictionaries");
            }
            var flags = WritePadAPI.HWR_GetRecognitionFlags(WritePadAPI.getRecoHandle());

            WritePadAPI.initRecognizerForLanguage((int)WritePadAPI.language, userpath.Path, Package.Current.InstalledLocation.Path, flags);
        }
Exemple #2
0
        public void DictionaryChanged()
        {
            var path = AppDomain.CurrentDomain.BaseDirectory;

            WritePadAPI.initRecognizerForLanguage((int)WritePadAPI.language, path, path, 0);
        }