public async Task TestAsync() { using (var dict = new StarDict(@"E:\Downloads\dict\stardict-freedict-eng-nld-2.4.2\dictd_www.freedict.de_eng-nld")) { await dict.Init(); } }
private async void ButtonBase_OnClick(object sender, RoutedEventArgs e) { using (var dict = new StarDict(@"E:\Downloads\dict\stardict-freedict-eng-nld-2.4.2\dictd_www.freedict.de_eng-nld")) { await dict.Init(); } }
private async void OpenFolder_OnClick(object sender, RoutedEventArgs e) { var picker = new FolderPicker { CommitButtonText = "Select", ViewMode = PickerViewMode.List }; picker.FileTypeFilter.Add(".idx"); picker.FileTypeFilter.Add(".dz"); picker.FileTypeFilter.Add(".ifo"); picker.SettingsIdentifier = "FolderPicker"; var folder = await picker.PickSingleFolderAsync(); StorageApplicationPermissions.FutureAccessList.AddOrReplace("PickedFolderToken", folder); var abstractFolder = new PCLStorage.WinRTFolder(folder); using (var dict = new StarDict(abstractFolder, @"dictd_www.freedict.de_eng-nld")) { await dict.Init(); } }