public class BaseDto : INotifyPropertyChanged
{
public int Id {
get; set; }
public event PropertyChangedEventHandler PropertyChanged;
public void OnPropertyChanged([CallerMemberName] string propertyName="")
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyToDo.Shared.Dtos
{
public class ResgiterUserDto : BaseDto
{
private string userName;
public string UserName
{
get {
return userName; }
set {
userName = value; OnPropertyChanged(); }
}
private string account;
public string Account
{
get {
return account; }
set {
account = value; OnPropertyChanged(); }
}
private string passWord;
public string PassWord
{
get {
return passWord; }
set {
passWord = value; OnPropertyChanged(); }
}
private string newpassWord;
public string NewPassWord
{
get {
return newpassWord; }
set {
newpassWord = value; OnPropertyChanged(); }
}