| | | 1 | | // ----------------------------------------------------------------------- |
| | | 2 | | // <copyright file="FileDialogServiceExtensions.cs" company="Stéphane ANDRE"> |
| | | 3 | | // Copyright (c) Stéphane ANDRE. All rights reserved. |
| | | 4 | | // </copyright> |
| | | 5 | | // ----------------------------------------------------------------------- |
| | | 6 | | |
| | | 7 | | using MyNet.UI.Dialogs.FileDialogs; |
| | | 8 | | |
| | | 9 | | #pragma warning disable IDE0130 |
| | | 10 | | namespace MyNet.UI.Dialogs; |
| | | 11 | | #pragma warning restore IDE0130 |
| | | 12 | | |
| | | 13 | | /// <summary> |
| | | 14 | | /// Fluent helpers for file dialogs on <see cref="IDialogService"/>. |
| | | 15 | | /// </summary> |
| | | 16 | | public static class FileDialogServiceExtensions |
| | | 17 | | { |
| | | 18 | | extension(IDialogService dialogService) |
| | | 19 | | { |
| | | 20 | | /// <summary> |
| | | 21 | | /// Starts configuring a save file dialog. |
| | | 22 | | /// </summary> |
| | 6 | 23 | | public SaveFileDialogBuilder SaveFile() => new(dialogService); |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// Starts configuring an open file dialog. |
| | | 27 | | /// </summary> |
| | 3 | 28 | | public OpenFileDialogBuilder OpenFile() => new(dialogService); |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// Starts configuring a folder picker dialog. |
| | | 32 | | /// </summary> |
| | 0 | 33 | | public OpenFolderDialogBuilder OpenFolder() => new(dialogService); |
| | | 34 | | } |
| | | 35 | | } |
| | | 36 | | |