private void MainWindow_OnLoaded(object sender, RoutedEventArgs e) { DrawGrid(); LanguagesCombo.ItemsSource = new[] { "English", "English (UK)", "German", "French", "Spanish", "Portuguese", "Brazilian", "Dutch", "Italian", "Finnish", "Sweddish", "Norwegian", "Danish", "Indonesian" }; DictionaryChanged(); var langId = WritePadAPI.getLanguage(); UpdateSelectedLanguage(langId); }
private void Options_OnLoaded(object sender, RoutedEventArgs e) { recoFlags = WritePadAPI.HWR_GetRecognitionFlags(WritePadAPI.getRecoHandle()); separate_letters.IsChecked = WritePadAPI.isRecoFlagSet(recoFlags, WritePadAPI.FLAG_SEPLET); single_word.IsChecked = WritePadAPI.isRecoFlagSet(recoFlags, WritePadAPI.FLAG_SINGLEWORDONLY); autocorrector.IsChecked = WritePadAPI.isRecoFlagSet(recoFlags, WritePadAPI.FLAG_CORRECTOR); autolearner.IsChecked = WritePadAPI.isRecoFlagSet(recoFlags, WritePadAPI.FLAG_ANALYZER); user_dictionary.IsChecked = WritePadAPI.isRecoFlagSet(recoFlags, WritePadAPI.FLAG_USERDICT); dict_words.IsChecked = WritePadAPI.isRecoFlagSet(recoFlags, WritePadAPI.FLAG_ONLYDICT); var langId = WritePadAPI.getLanguage(); UpdateSelectedLanguage(langId); }
private void Form1_Load(object sender, EventArgs e) { var langId = WritePadAPI.getLanguage(); UpdateSelectedLanguage(langId); }