Hooked up view with play button
Set up data structures for holding and playing music
This commit is contained in:
@ -4,13 +4,23 @@ using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Aurora.Frontend.Views
|
||||
{
|
||||
public class BaseViewModel
|
||||
public class BaseViewModel : INotifyPropertyChanged
|
||||
{
|
||||
public BaseViewModel()
|
||||
{
|
||||
}
|
||||
|
||||
#region INotifyPropertyChanged Implementation
|
||||
public bool SetProperty<T>(ref T storage, T value, [CallerMemberName] string propertyName = null)
|
||||
{
|
||||
if (Object.Equals(storage, value))
|
||||
return false;
|
||||
|
||||
storage = value;
|
||||
OnPropertyChanged(propertyName);
|
||||
return true;
|
||||
}
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
public void OnPropertyChanged([CallerMemberName] string propertyName = "")
|
||||
{
|
||||
|
Reference in New Issue
Block a user