-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBloggerViewModel.cs
More file actions
41 lines (35 loc) · 900 Bytes
/
BloggerViewModel.cs
File metadata and controls
41 lines (35 loc) · 900 Bytes
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
namespace ObservableMvvm
{
public class BloggerViewModel : BindableBase
{
public int Id { get; }
private string name;
public string Name
{
get => name;
set => SetProperty(ref name, value);
}
private string blog;
public string Blog
{
get => blog;
set => SetProperty(ref blog, value);
}
private NaughtyOrNice naughtyNiceRating;
public NaughtyOrNice NaughtyNiceRating
{
get => naughtyNiceRating;
set => SetProperty(ref naughtyNiceRating, value);
}
private bool justAdded = true;
public bool JustAdded
{
get => justAdded;
set => SetProperty(ref justAdded, value);
}
public BloggerViewModel(int id)
{
Id = id;
}
}
}