From dd857b51b45d47f4d51b902d50e0c1521a0f24f8 Mon Sep 17 00:00:00 2001 From: thchazot1 Date: Mon, 23 May 2022 12:56:42 +0200 Subject: [PATCH] La partie la plus importante de notre SAE --- WpfApp1/WpfApp1.csproj | 4 ++++ WpfApp1/userControlDescription.xaml | 2 +- WpfApp1/userControlDescription.xaml.cs | 11 +++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/WpfApp1/WpfApp1.csproj b/WpfApp1/WpfApp1.csproj index fa90218..8944cbc 100644 --- a/WpfApp1/WpfApp1.csproj +++ b/WpfApp1/WpfApp1.csproj @@ -28,6 +28,7 @@ + @@ -73,6 +74,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest diff --git a/WpfApp1/userControlDescription.xaml b/WpfApp1/userControlDescription.xaml index b01ff4a..0767f83 100644 --- a/WpfApp1/userControlDescription.xaml +++ b/WpfApp1/userControlDescription.xaml @@ -34,7 +34,7 @@ - + diff --git a/WpfApp1/userControlDescription.xaml.cs b/WpfApp1/userControlDescription.xaml.cs index cfb0803..c65a99f 100644 --- a/WpfApp1/userControlDescription.xaml.cs +++ b/WpfApp1/userControlDescription.xaml.cs @@ -37,6 +37,8 @@ namespace WpfApp1 } } + public int cmp = 0; + private void exit_Click(object sender, RoutedEventArgs e) { ((MainWindow)System.Windows.Application.Current.MainWindow).ContentControlSwapAcc(); @@ -60,5 +62,14 @@ namespace WpfApp1 consPic.Source = new BitmapImage(new Uri(url, UriKind.Relative)); cartePic.Source = new BitmapImage(new Uri(requin.PhotoCarte, UriKind.Relative)); } + + private void vid_MouseDown(object sender, MouseButtonEventArgs e) + { + cmp = cmp+1; + if (cmp == 10) + { + vid.Source = new Uri("Videos/requin_Asley.mp4", UriKind.Relative); + } + } } }