-
Notifications
You must be signed in to change notification settings - Fork 0
/
Settings.cs
90 lines (81 loc) · 2.21 KB
/
Settings.cs
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
using System.ComponentModel;
using System.Runtime.CompilerServices;
using Weather_Images_Downloader.Annotations;
namespace Weather_Images_Downloader
{
public class Settings : INotifyPropertyChanged
{
private bool _today;
private bool _yesterday;
private bool _yesterYesterday;
private bool _rain;
private bool _weather;
private string _areas = "euro,DL; namk 0001.BAY °afri";
public bool Today
{
get { return _today; }
set
{
if (value == _today) return;
_today = value;
OnPropertyChanged();
}
}
public bool Yesterday
{
get { return _yesterday; }
set
{
if (value == _yesterday) return;
_yesterday = value;
OnPropertyChanged();
}
}
public bool YesterYesterday
{
get { return _yesterYesterday; }
set
{
if (value == _yesterYesterday) return;
_yesterYesterday = value;
OnPropertyChanged();
}
}
public bool Rain
{
get { return _rain; }
set
{
if (value == _rain) return;
_rain = value;
OnPropertyChanged();
}
}
public bool Weather
{
get { return _weather; }
set
{
if (value == _weather) return;
_weather = value;
OnPropertyChanged();
}
}
public string Areas
{
get { return _areas; }
set
{
if (value == _areas) return;
_areas = value;
OnPropertyChanged();
}
}
public event PropertyChangedEventHandler PropertyChanged;
[NotifyPropertyChangedInvocator]
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}