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.
UWPHook/UWPHook/AppEntry.cs

51 lines
1.3 KiB
C#

using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace UWPHook
{
public class AppEntry : INotifyPropertyChanged
{
private string _name;
/// <summary>
/// Gets or sets the name of the application
/// </summary>
public string Name
{
get { return _name; }
set { _name = value; }
}
private string _aumid;
/// <summary>
/// Gets or sets the aumid of the application
/// </summary>
public string Aumid
{
get { return _aumid; }
set { _aumid = value; }
}
private bool _isSelected;
/// <summary>
/// Gets or sets if the application is selected
/// </summary>
public bool IsSelected
{
get { return _isSelected; }
set
{
if (_isSelected == value) return;
_isSelected = value;
OnPropertyChanged();
}
}
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}