/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Data/Contracts/IDialogService.cs
27 строк
1 KB
Yair
Code Quality: Ran code cleanup (#17307)
25 июл 2025, 03:57
Не верифицирован
25 июл 2025, 03:57
4558bc2
Код
Авторство
О чём код?
// Copyright (c) Files Community // Licensed under the MIT License. namespace Files.App.Data.Contracts { /// <summary> /// A service to manage dialogs. /// </summary> public interface IDialogService { /// <summary> /// Gets appropriate dialog with associated <paramref name="viewModel"/>. /// </summary> /// <typeparam name="TViewModel">The type of view model.</typeparam> /// <param name="viewModel">The view model of the dialog.</param> /// <returns>A new instance of <see cref="IDialog{TViewModel}"/> with associated <paramref name="viewModel"/>.</returns> IDialog<TViewModel> GetDialog<TViewModel>(TViewModel viewModel) where TViewModel : class, INotifyPropertyChanged; /// <summary> /// Creates and shows appropriate dialog derived from associated <paramref name="viewModel"/>. /// </summary> /// <typeparam name="TViewModel">The type of view model.</typeparam> /// <param name="viewModel">The view model of the dialog.</param> /// <returns>A <see cref="Task"/> that represents the asynchronous operation. Returns <see cref="DialogResult"/> based on the selected option.</returns> Task<DialogResult> ShowDialogAsync<TViewModel>(TViewModel viewModel) where TViewModel : class, INotifyPropertyChanged; } }