mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
[Refactor] Use collection expression.
This commit is contained in:
@@ -159,18 +159,18 @@ public class MainWindowViewModel : ViewModelBase
|
|||||||
{
|
{
|
||||||
var datFileType = new FilePickerFileType(Localization.DatFilesDialogLabel)
|
var datFileType = new FilePickerFileType(Localization.DatFilesDialogLabel)
|
||||||
{
|
{
|
||||||
Patterns = new[]
|
Patterns =
|
||||||
{
|
[
|
||||||
"*.dat", "*.xml"
|
"*.dat", "*.xml"
|
||||||
},
|
],
|
||||||
AppleUniformTypeIdentifiers = new[]
|
AppleUniformTypeIdentifiers =
|
||||||
{
|
[
|
||||||
"public.xml", "public.json"
|
"public.xml", "public.json"
|
||||||
},
|
],
|
||||||
MimeTypes = new[]
|
MimeTypes =
|
||||||
{
|
[
|
||||||
"application/xml", "text/*"
|
"application/xml", "text/*"
|
||||||
}
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
IReadOnlyList<IStorageFile> result = await _view.StorageProvider.OpenFilePickerAsync(new FilePickerOpenOptions
|
IReadOnlyList<IStorageFile> result = await _view.StorageProvider.OpenFilePickerAsync(new FilePickerOpenOptions
|
||||||
|
|||||||
Reference in New Issue
Block a user