using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace XHandler.View.Classes
|
{
|
public class ValidationOutput : INotifyPropertyChanged
|
{
|
public event PropertyChangedEventHandler PropertyChanged;
|
public void OnNotifyPropertyChanged(string propertyName)
|
{
|
if (PropertyChanged != null)
|
{
|
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
}
|
}
|
|
private bool isAllValid = true;//Indicate if all elements is valid
|
|
public bool IsAllValid
|
{
|
get { return isAllValid; }
|
set
|
{
|
isAllValid = value;
|
OnNotifyPropertyChanged("IsAllValid");
|
}
|
}
|
|
private string errorMsg4NickName;
|
public string ErrorMsg4NickName
|
{
|
get { return errorMsg4NickName; }
|
set
|
{
|
errorMsg4NickName = value;
|
OnNotifyPropertyChanged("ErrorMsg4NickName");
|
}
|
}
|
|
private bool isShow4NickName;
|
public bool IsShow4NickName
|
{
|
get { return isShow4NickName; }
|
set
|
{
|
isShow4NickName = value;
|
OnNotifyPropertyChanged("IsShow4NickName");
|
}
|
}
|
|
private string errorMsg4PhoneNumber;
|
public string ErrorMsg4PhoneNumber
|
{
|
get { return errorMsg4PhoneNumber; }
|
set
|
{
|
errorMsg4PhoneNumber = value;
|
OnNotifyPropertyChanged("ErrorMsg4PhoneNumber");
|
}
|
}
|
|
private bool isShow4PhoneNumber;
|
public bool IsShow4PhoneNumber
|
{
|
get { return isShow4PhoneNumber; }
|
set
|
{
|
isShow4PhoneNumber = value;
|
OnNotifyPropertyChanged("IsShow4PhoneNumber");
|
}
|
}
|
|
private bool isPhoneNumberValid;
|
public bool IsPhoneNumberValid
|
{
|
get { return isPhoneNumberValid; }
|
set
|
{
|
isPhoneNumberValid = value;
|
OnNotifyPropertyChanged("IsPhoneNumberValid");
|
}
|
}
|
|
private bool isEmailvalid;
|
public bool IsEmailvalid
|
{
|
get { return isEmailvalid; }
|
set
|
{
|
isEmailvalid = value;
|
OnNotifyPropertyChanged("IsEmailvalid");
|
}
|
}
|
|
private bool isNickNameValid;
|
public bool IsNickNameValid
|
{
|
get { return isNickNameValid; }
|
set
|
{
|
isNickNameValid = value;
|
OnNotifyPropertyChanged("IsNickNameValid");
|
}
|
}
|
|
private string errorMsg4Password;
|
public string ErrorMsg4Password
|
{
|
get { return errorMsg4Password; }
|
set
|
{
|
errorMsg4Password = value;
|
OnNotifyPropertyChanged("ErrorMsg4Password");
|
}
|
}
|
|
private bool isPasswordValid;
|
public bool IsPasswordValid
|
{
|
get { return isPasswordValid; }
|
set
|
{
|
isPasswordValid = value;
|
OnNotifyPropertyChanged("IsPasswordValid");
|
}
|
}
|
|
private string password;
|
public string Password
|
{
|
get { return password; }
|
set
|
{
|
password = value;
|
OnNotifyPropertyChanged("Password");
|
}
|
}
|
|
private string errorMsg4ConfirmPassword;
|
public string ErrorMsg4ConfirmPassword
|
{
|
get { return errorMsg4ConfirmPassword; }
|
set
|
{
|
errorMsg4ConfirmPassword = value;
|
OnNotifyPropertyChanged("ErrorMsg4ConfirmPassword");
|
}
|
}
|
|
private string errorMsg4Email;
|
public string ErrorMsg4Email
|
{
|
get { return errorMsg4Email; }
|
set
|
{
|
errorMsg4Email = value;
|
OnNotifyPropertyChanged("ErrorMsg4Email");
|
}
|
}
|
|
private bool isConfirmPasswordValid;
|
public bool IsConfirmPasswordValid
|
{
|
get { return isConfirmPasswordValid; }
|
set
|
{
|
isConfirmPasswordValid = value;
|
OnNotifyPropertyChanged("IsConfirmPasswordValid");
|
}
|
}
|
}
|
}
|