ryujinx/src/Ryujinx/UI/ViewModels/BaseModel.cs

17 lines
475 B
C#

using CommunityToolkit.Mvvm.ComponentModel;
using System;
namespace Ryujinx.Ava.UI.ViewModels
{
public class BaseModel : ObservableObject
{
protected void OnPropertiesChanged(string firstPropertyName, params ReadOnlySpan<string> propertyNames)
{
OnPropertyChanged(firstPropertyName);
foreach (string propertyName in propertyNames)
{
OnPropertyChanged(propertyName);
}
}
}
}