forked from ARDrone2Windows/SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Message.cs
33 lines (30 loc) · 798 Bytes
/
Message.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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ARDrone2Client.Common
{
public class Message : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
private string _Content;
public string Content
{
get { return _Content; }
set
{
_Content = value;
NotifyPropertyChanged("Content");
}
}
public void NotifyPropertyChanged(string propertyName)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
}