mirror of https://github.com/BrianLima/UWPHook
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.4 KiB
C#
71 lines
1.4 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Data;
|
|
|
|
namespace UWPHook
|
|
{
|
|
public class GameModel
|
|
{
|
|
public GameModel()
|
|
{
|
|
games = new ObservableCollection<Game>();
|
|
}
|
|
|
|
private ObservableCollection<Game> _games;
|
|
|
|
public ObservableCollection<Game> games
|
|
{
|
|
get { return _games; }
|
|
set { _games = value; }
|
|
}
|
|
|
|
|
|
|
|
public void Add(Game game)
|
|
{
|
|
this.games.Add(game);
|
|
}
|
|
|
|
public string game_alias { get; set; }
|
|
public string game_path { get; set; }
|
|
|
|
}
|
|
|
|
public class Game:INotifyPropertyChanged
|
|
{
|
|
private string _game_alias;
|
|
|
|
public string game_alias
|
|
{
|
|
get { return _game_alias; }
|
|
set { _game_alias = value; }
|
|
}
|
|
|
|
private string _game_path;
|
|
|
|
public string game_path
|
|
{
|
|
get { return _game_path; }
|
|
set { _game_path = value; }
|
|
}
|
|
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
|
|
private void NotifyPropertyChanged(string Obj)
|
|
{
|
|
if (PropertyChanged != null)
|
|
{
|
|
this.PropertyChanged(this, new PropertyChangedEventArgs(Obj));
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|