/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Dialogs/AddBranchDialog.xaml.cs
33 строки
816 B
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. using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; namespace Files.App.Dialogs { public sealed partial class AddBranchDialog : ContentDialog, IDialog<AddBranchDialogViewModel> { private FrameworkElement RootAppElement => (FrameworkElement)MainWindow.Instance.Content; public AddBranchDialogViewModel ViewModel { get => (AddBranchDialogViewModel)DataContext; set => DataContext = value; } public AddBranchDialog() { InitializeComponent(); } public new async Task<DialogResult> ShowAsync() => (DialogResult)await base.ShowAsync(); private void ContentDialog_Closing(ContentDialog _, ContentDialogClosingEventArgs e) { InvalidNameWarning.IsOpen = false; Closing -= ContentDialog_Closing; } } }