inital
This commit is contained in:
38
F4SD-Cockpit-Client-Intro/IntroWindow.xaml.cs
Normal file
38
F4SD-Cockpit-Client-Intro/IntroWindow.xaml.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace F4SD_Cockpit_Client_Intro
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for IntroWindow.xaml
|
||||
/// </summary>
|
||||
public partial class IntroWindow : Window
|
||||
{
|
||||
public IntroWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void videoPlayer_MediaEnded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
||||
private void Window_PreviewKeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.Key == Key.Escape)
|
||||
Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user