first commit

This commit is contained in:
Beyhan Oğur
2026-09-03 04:45:36 +03:00
commit d5f52cc3d3
1038 changed files with 169579 additions and 0 deletions
@@ -0,0 +1,52 @@
using System.Media;
using System.Timers;
using System.Windows.Controls;
using System.Windows.Input;
using ClassicAssist.Shared;
namespace ClassicAssist.UI.Views
{
/// <summary>
/// Interaction logic for AboutControl.xaml
/// </summary>
public partial class AboutControl : UserControl
{
private Timer _timer;
public AboutControl()
{
InitializeComponent();
}
private void TextBlock_MouseEnter( object sender, MouseEventArgs e )
{
if ( !( sender is TextBlock textBlock ) )
{
return;
}
_timer = new Timer( 1000 );
_timer.Elapsed += ( o, args ) =>
{
_timer.Stop();
if ( !textBlock.IsMouseOver )
{
return;
}
using ( SoundPlayer sound = new SoundPlayer( Engine.GetResourceStream( "kiss.wav" ) ) )
{
sound.Play();
}
};
_timer.Start();
}
private void TextBlock_MouseLeave( object sender, MouseEventArgs e )
{
_timer?.Stop();
}
}
}