-
Notifications
You must be signed in to change notification settings - Fork 0
/
Student.cs
35 lines (30 loc) · 894 Bytes
/
Student.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
using System.ComponentModel;
namespace Wpf_ManageStudents_2beDeleted
{
public class Student : INotifyPropertyChanged
{
public int id { get; set; }
public string firstName { get; set; }
public string lastName { get; set; }
public string hobbies { get; set; }
public event PropertyChangedEventHandler PropertyChanged;
public void OnPropertyChanged(string propertyName)
{
PropertyChangedEventHandler handler = PropertyChanged;
if(handler is null)
{
handler(this, new PropertyChangedEventArgs(propertyName));
}
}
public bool taskOk_;
public bool taskOk
{
get { return taskOk_; }
set
{
taskOk_ = value;
OnPropertyChanged("taskOk");
}
}
}
}