mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-04-21 18:13:14 +02:00

Moved AppLibrary, Configuration, and PlayReport namespaces to Ryujinx.Systems, add the compat list stuff in the base Ryujinx.Systems namespace. Moved the compatibility UI stuff to the proper UI view/viewmodel folders.
31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
using Avalonia.Controls;
|
|
using Avalonia.Input;
|
|
using Avalonia.Interactivity;
|
|
using Ryujinx.Ava.UI.Controls;
|
|
using Ryujinx.Ava.UI.Helpers;
|
|
using Ryujinx.Ava.UI.ViewModels;
|
|
using Ryujinx.Ava.Systems.AppLibrary;
|
|
using System;
|
|
|
|
namespace Ryujinx.Ava.UI.Views.Misc
|
|
{
|
|
public partial class ApplicationGridView : RyujinxControl<MainWindowViewModel>
|
|
{
|
|
public static readonly RoutedEvent<ApplicationOpenedEventArgs> ApplicationOpenedEvent =
|
|
RoutedEvent.Register<ApplicationGridView, ApplicationOpenedEventArgs>(nameof(ApplicationOpened), RoutingStrategies.Bubble);
|
|
|
|
public event EventHandler<ApplicationOpenedEventArgs> ApplicationOpened
|
|
{
|
|
add => AddHandler(ApplicationOpenedEvent, value);
|
|
remove => RemoveHandler(ApplicationOpenedEvent, value);
|
|
}
|
|
|
|
public ApplicationGridView() => InitializeComponent();
|
|
|
|
public void GameList_DoubleTapped(object sender, TappedEventArgs args)
|
|
{
|
|
if (sender is ListBox { SelectedItem: ApplicationData selected })
|
|
RaiseEvent(new ApplicationOpenedEventArgs(selected, ApplicationOpenedEvent));
|
|
}
|
|
}
|
|
}
|