using System; using System.ComponentModel; using Gestor.Application.Helpers; using Gestor.Application.Model; namespace Gestor.Application.ViewModels.Generic; public class DialogGraficoViewModel : INotifyPropertyChanged { private SinteticoSource _source; public SinteticoSource Source { get { return _source; } set { this.MutateVerbose(ref _source, value, RaisePropertyChanged(), "Source"); } } public event PropertyChangedEventHandler PropertyChanged; public DialogGraficoViewModel(SinteticoSource series) { Source = series; } private Action RaisePropertyChanged() { return delegate(PropertyChangedEventArgs args) { this.PropertyChanged?.Invoke(this, args); }; } }