11
11
using System . Threading . Tasks ;
12
12
using LoginApp . Services ;
13
13
using ReactiveUI ;
14
- using ReactiveUI . Fody . Helpers ;
14
+ using ReactiveUI . SourceGenerators ;
15
15
using ReactiveUI . Validation . Extensions ;
16
16
using ReactiveUI . Validation . Helpers ;
17
17
using ReactiveUI . Validation . States ;
@@ -22,12 +22,30 @@ namespace LoginApp.ViewModels;
22
22
/// <summary>
23
23
/// A view model which shows controls to create an account.
24
24
/// </summary>
25
- public class SignUpViewModel : ReactiveValidationObject , IRoutableViewModel , IActivatableViewModel
25
+ public partial class SignUpViewModel : ReactiveValidationObject , IRoutableViewModel , IActivatableViewModel
26
26
{
27
27
private readonly ObservableAsPropertyHelper < bool > _isBusy ;
28
28
private readonly IUserDialogs ? _dialogs ;
29
29
private readonly CompositeDisposable _disposables = [ ] ;
30
30
31
+ /// <summary>
32
+ /// Gets or sets the typed <see cref="UserName"/>.
33
+ /// </summary>
34
+ [ Reactive ]
35
+ private string _userName = string . Empty ;
36
+
37
+ /// <summary>
38
+ /// Gets or sets the typed <see cref="Password"/>.
39
+ /// </summary>
40
+ [ Reactive ]
41
+ private string _password = string . Empty ;
42
+
43
+ /// <summary>
44
+ /// Gets or sets the typed <see cref="ConfirmPassword"/>.
45
+ /// </summary>
46
+ [ Reactive ]
47
+ private string _confirmPassword = string . Empty ;
48
+
31
49
/// <summary>
32
50
/// Initializes a new instance of the <see cref="SignUpViewModel"/> class.
33
51
/// </summary>
@@ -106,24 +124,6 @@ public SignUpViewModel(IScreen? hostScreen = null, IUserDialogs? dialogs = null)
106
124
. DisposeWith ( _disposables ) ;
107
125
}
108
126
109
- /// <summary>
110
- /// Gets or sets the typed <see cref="UserName"/>.
111
- /// </summary>
112
- [ Reactive ]
113
- public string UserName { get ; set ; } = string . Empty ;
114
-
115
- /// <summary>
116
- /// Gets or sets the typed <see cref="Password"/>.
117
- /// </summary>
118
- [ Reactive ]
119
- public string Password { get ; set ; } = string . Empty ;
120
-
121
- /// <summary>
122
- /// Gets or sets the typed <see cref="ConfirmPassword"/>.
123
- /// </summary>
124
- [ Reactive ]
125
- public string ConfirmPassword { get ; set ; } = string . Empty ;
126
-
127
127
/// <summary>
128
128
/// Gets a value indicating whether the form is currently validating asynchronously.
129
129
/// </summary>
0 commit comments