23 lines
No EOL
535 B
C#
23 lines
No EOL
535 B
C#
using System;
|
|
using Avalonia;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Markup.Xaml;
|
|
using PS2_Manager.Core;
|
|
|
|
namespace PS2_Manager;
|
|
|
|
public partial class EditGame : UserControl
|
|
{
|
|
public Game game { get; set; }
|
|
public EditGame(Game _game)
|
|
{
|
|
this.game = _game;
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void DisplayNameBox_OnTextChanged(object? sender, TextChangedEventArgs e)
|
|
{
|
|
this.game.Name = DisplayNameBox.Text;
|
|
MainWindow.RefreshGamesListTrigger.Invoke(null, EventArgs.Empty);
|
|
}
|
|
} |