mirror of
https://github.com/BrianLima/UWPHook.git
synced 2024-11-12 01:10:26 +00:00
Filtering AUMIDS.
Added texbox to filter apps by their aumid.
This commit is contained in:
parent
920ef6cb7d
commit
d8c8a2bc03
@ -39,5 +39,7 @@
|
||||
</Grid>
|
||||
<Button Content="Export selected apps to Steam" Click="ExportButton_Click" HorizontalAlignment="Right" Margin="0,0,10,10" Grid.Row="2" VerticalAlignment="Bottom" Width="227"/>
|
||||
<ProgressBar Visibility="Collapsed" x:Name="progressBar" Margin="10,215,10,174" Grid.Row="1" IsIndeterminate="True" />
|
||||
<Label Content="Filter AUMIDS:" HorizontalAlignment="Left" Margin="5,16,0,0" Grid.Row="2" VerticalAlignment="Top"/>
|
||||
<TextBox x:Name="textBox" HorizontalAlignment="Left" Height="25" Margin="104,17,0,0" Grid.Row="2" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="217" TextChanged="textBox_TextChanged"/>
|
||||
</Grid>
|
||||
</Window>
|
||||
|
@ -244,6 +244,28 @@ private void Bwr_DoWork(object sender, DoWorkEventArgs e)
|
||||
}
|
||||
}
|
||||
|
||||
private void textBox_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
|
||||
{
|
||||
if (Apps.Entries != null)
|
||||
{
|
||||
if (!String.IsNullOrEmpty(textBox.Text) && Apps.Entries.Count > 0)
|
||||
{
|
||||
listGames.Items.Filter = new Predicate<object>(Contains);
|
||||
}
|
||||
else
|
||||
{
|
||||
listGames.Items.Filter = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool Contains(object o)
|
||||
{
|
||||
AppEntry appEntry = o as AppEntry;
|
||||
//Return members whose Orders have not been filled
|
||||
return (appEntry.Aumid.ToLower().Contains(textBox.Text.ToLower()));
|
||||
}
|
||||
|
||||
private void HelpButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
SettingsWindow window = new SettingsWindow();
|
||||
|
Loading…
Reference in New Issue
Block a user