schangxiang@126.com
2025-11-04 f5ed29dc26c7cd952d56ec5721a2efc43cd25992
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
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");
            }
        }
    }
}