File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Signal-Windows/ViewModels Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,14 @@ public class AddContactPageViewModel : ViewModelBase
32
32
public MainPageViewModel MainPageVM ;
33
33
public AddContactPage View ;
34
34
35
- private string _ContactName = "" ;
35
+ private string _ContactName = string . Empty ;
36
36
public string ContactName
37
37
{
38
38
get { return _ContactName ; }
39
39
set { _ContactName = value ; RaisePropertyChanged ( nameof ( ContactName ) ) ; }
40
40
}
41
41
42
- private string _ContactNumber = "" ;
42
+ private string _ContactNumber = string . Empty ;
43
43
public string ContactNumber
44
44
{
45
45
get { return _ContactNumber ; }
@@ -104,6 +104,8 @@ private bool ValidNumber
104
104
105
105
public async Task OnNavigatedTo ( CancellationToken ? cancellationToken = null )
106
106
{
107
+ ContactName = string . Empty ;
108
+ ContactNumber = string . Empty ;
107
109
await RefreshContacts ( cancellationToken ) ;
108
110
}
109
111
You can’t perform that action at this time.
0 commit comments