A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
1007 B

using System;
using Avalonia.Controls;
namespace ControlCatalog.Pages;
public partial class RetroGamingSearchView : UserControl
{
public Action? CloseRequested { get; set; }
public Action<string>? GameSelected { get; set; }
public RetroGamingSearchView()
{
InitializeComponent();
CloseBtn.Click += (_, _) => CloseRequested?.Invoke();
SearchCyberNinjaBtn.Click += (_, _) => GameSelected?.Invoke("Cyber Ninja 2084");
SearchNeonRacerBtn.Click += (_, _) => GameSelected?.Invoke("Neon Racer");
SearchDungeonBitBtn.Click += (_, _) => GameSelected?.Invoke("Dungeon Bit");
SearchForestSpiritBtn.Click += (_, _) => GameSelected?.Invoke("Forest Spirit");
SearchPixelQuestBtn.Click += (_, _) => GameSelected?.Invoke("Pixel Quest");
SearchSpaceVoidsBtn.Click += (_, _) => GameSelected?.Invoke("Space Voids");
SearchCyberCityBtn.Click += (_, _) => GameSelected?.Invoke("Cyber City");
}
}