/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Views/SplashScreenPage.xaml.cs
37 строк
820 B
Yair
Code Quality: Updated license header
31 дек 2024, 05:03
31 дек 2024, 05:03
8436c6d
Код
Авторство
О чём код?
// Copyright (c) Files Community // Licensed under the MIT License. using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; namespace Files.App.Views { /// <summary> /// Display the app splash screen. /// </summary> public sealed partial class SplashScreenPage : Page { private string BranchLabel => AppLifecycleHelper.AppEnvironment switch { AppEnvironment.Dev => "Dev", AppEnvironment.SideloadPreview or AppEnvironment.StorePreview => "Preview", _ => string.Empty, }; public SplashScreenPage() { InitializeComponent(); } private void Image_ImageOpened(object sender, RoutedEventArgs e) { App.SplashScreenLoadingTCS?.TrySetResult(); } private void Image_ImageFailed(object sender, RoutedEventArgs e) { App.SplashScreenLoadingTCS?.TrySetResult(); } } }