SplashWindow.xaml.cs 886 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Shapes;
  14. namespace CCDCountWpf
  15. {
  16. /// <summary>
  17. /// SplashWindow.xaml 的交互逻辑
  18. /// </summary>
  19. public partial class SplashWindow : Window
  20. {
  21. public SplashWindow()
  22. {
  23. InitializeComponent();
  24. }
  25. private async void Window_Loaded(object sender, RoutedEventArgs e)
  26. {
  27. await Task.Delay(1000); // 可选:显示启动画面 1 秒
  28. StartWindow startWindow = new StartWindow();
  29. this.Close();
  30. startWindow.Show();
  31. }
  32. }
  33. }