blob: 94b332aa11d10304e058ed8e177c18b59cd20a95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
using Gestor.Application.Helpers;
using Gestor.Application.Model;
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Threading;
namespace Gestor.Application.ViewModels.Generic
{
public class DialogGraficoViewModel : INotifyPropertyChanged
{
private SinteticoSource _source;
public SinteticoSource Source
{
get
{
return this._source;
}
set
{
this.MutateVerbose<SinteticoSource>(ref this._source, value, this.RaisePropertyChanged(), "Source");
}
}
public DialogGraficoViewModel(SinteticoSource series)
{
this.Source = series;
}
private Action<PropertyChangedEventArgs> RaisePropertyChanged()
{
return (PropertyChangedEventArgs args) => {
PropertyChangedEventHandler propertyChangedEventHandler = this.PropertyChanged;
if (propertyChangedEventHandler == null)
{
return;
}
propertyChangedEventHandler(this, args);
};
}
public event PropertyChangedEventHandler PropertyChanged;
}
}
|