First commit - OpenBullet 1.0.0

This commit is contained in:
ruri
2019-03-31 12:18:26 +02:00
parent 1a0775b648
commit 422079782d
296 changed files with 31668 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace RuriLib.ViewModels
{
/// <summary>
/// A basic viewmodel that implements the PropertyChanged event.
/// </summary>
public abstract class ViewModelBase : INotifyPropertyChanged
{
/// <summary>The event that lets the GUI know a property was changed.</summary>
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// Raises a PropertyChanged event.
/// </summary>
/// <param name="propertyName">The name of the property. If null, the name of the calling property will be used.</param>
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}