mirror of
https://github.com/Royce551/FRESHMusicPlayer.git
synced 2025-01-22 10:51:52 -05:00
fdsfDSA
This commit is contained in:
parent
ba0d5bc85a
commit
26059363ed
4 changed files with 13 additions and 5 deletions
|
@ -23,7 +23,7 @@
|
|||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition x:Name="RightSide"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBox x:Name="SearchBox" Grid.Row="0" TextWrapping="Wrap" FontSize="14" Margin="10,5" BorderBrush="{StaticResource SecondaryTextColor}" Foreground="{StaticResource PrimaryTextColor}" TextChanged="SearchBox_TextChanged" TabIndex="0">
|
||||
<TextBox x:Name="SearchBox" Grid.Row="0" TextWrapping="Wrap" FontSize="14" Margin="10,5" BorderBrush="{StaticResource SecondaryTextColor}" Foreground="{StaticResource PrimaryTextColor}" TextChanged="SearchBox_TextChanged" TabIndex="0" KeyDown="SearchBox_KeyDown">
|
||||
<TextBox.Style>
|
||||
<Style TargetType="TextBox" BasedOn="{StaticResource {x:Type TextBox}}" xmlns:sys="clr-namespace:System;assembly=mscorlib">
|
||||
<Style.Resources>
|
||||
|
|
|
@ -3,6 +3,7 @@ using FRESHMusicPlayer.Handlers.Notifications;
|
|||
using FRESHMusicPlayer.Utilities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
@ -91,5 +92,11 @@ namespace FRESHMusicPlayer.Pages.Library
|
|||
}
|
||||
|
||||
private async void Page_Loaded(object sender, RoutedEventArgs e) => await window.Dispatcher.InvokeAsync(() => SearchBox.Focus(), DispatcherPriority.ApplicationIdle);
|
||||
|
||||
private void SearchBox_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
|
||||
{
|
||||
if (e.Key == System.Windows.Input.Key.Return && TracksPanel.Items.Count != 0)
|
||||
window.Player.PlayAsync(TracksPanel.Items.Cast<SongEntry>().First().FilePath);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,7 +64,8 @@ namespace FRESHMusicPlayer.Pages.Library
|
|||
library.Remove(FilePath);
|
||||
((ListBox)Parent).Items.Remove(this);
|
||||
return true;
|
||||
}
|
||||
},
|
||||
Type = NotificationType.Failure
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,6 +49,6 @@ using System.Windows;
|
|||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("11.1.0.0")]
|
||||
[assembly: AssemblyFileVersion("11.1.0.0")]
|
||||
[assembly: AssemblyInformationalVersion("FRESHMusicPlayer Ver. 11.1")]
|
||||
[assembly: AssemblyVersion("11.2.0.0")]
|
||||
[assembly: AssemblyFileVersion("11.2.0.0")]
|
||||
[assembly: AssemblyInformationalVersion("FRESHMusicPlayer Ver. 11.2")]
|
||||
|
|
Loading…
Reference in a new issue