Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: a367032bfb
Fetching contributors…

Cannot retrieve contributors at this time

57 lines (52 sloc) 1.291 kB
using System;
using System.ComponentModel;
using System.Collections.ObjectModel;
using System.Runtime.Serialization.Json;
using System.Runtime.Serialization;
namespace Sbbs
{
public class UserViewModel : INotifyPropertyChanged
{
private string id;
private string name;
public string Id
{
get
{
return id;
}
set
{
if (value != id)
{
id = value;
NotifyPropertyChanged("Id");
}
}
}
public string Name
{
get
{
return name;
}
set
{
if (value != name)
{
name = value;
NotifyPropertyChanged("Name");
}
}
}
public event PropertyChangedEventHandler PropertyChanged;
private void NotifyPropertyChanged(String propertyName)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (null != handler)
{
handler(this, new PropertyChangedEventArgs(propertyName));
}
}
}
}
Jump to Line
Something went wrong with that request. Please try again.