|
|
@ -18,6 +18,7 @@ namespace Model
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!string.IsNullOrWhiteSpace(value)) userImage = value;
|
|
|
|
if (!string.IsNullOrWhiteSpace(value)) userImage = value;
|
|
|
|
else userImage = "no_cover.png";
|
|
|
|
else userImage = "no_cover.png";
|
|
|
|
|
|
|
|
NotifyPropertyChanged();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
private string userImage = default!;
|
|
|
|
private string userImage = default!;
|
|
|
@ -28,11 +29,8 @@ namespace Model
|
|
|
|
set
|
|
|
|
set
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (string.IsNullOrWhiteSpace(value)) username = "Default";
|
|
|
|
if (string.IsNullOrWhiteSpace(value)) username = "Default";
|
|
|
|
else
|
|
|
|
else username = value;
|
|
|
|
{
|
|
|
|
NotifyPropertyChanged();
|
|
|
|
username = value;
|
|
|
|
|
|
|
|
NotifyPropertyChanged();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
private string username=default!;
|
|
|
|
private string username=default!;
|
|
|
@ -43,11 +41,8 @@ namespace Model
|
|
|
|
private set
|
|
|
|
private set
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (string.IsNullOrWhiteSpace(value)) biographie = "Pas de biographie";
|
|
|
|
if (string.IsNullOrWhiteSpace(value)) biographie = "Pas de biographie";
|
|
|
|
else
|
|
|
|
else biographie = value;
|
|
|
|
{
|
|
|
|
NotifyPropertyChanged();
|
|
|
|
biographie = value;
|
|
|
|
|
|
|
|
NotifyPropertyChanged();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
private string biographie = default!;
|
|
|
|
private string biographie = default!;
|
|
|
@ -58,12 +53,9 @@ namespace Model
|
|
|
|
private set
|
|
|
|
private set
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Regex rg_email = new Regex("^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$");
|
|
|
|
Regex rg_email = new Regex("^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$");
|
|
|
|
if (!(string.IsNullOrWhiteSpace(value)) && rg_email.IsMatch(value))
|
|
|
|
if (!(string.IsNullOrWhiteSpace(value)) && rg_email.IsMatch(value)) email = value;
|
|
|
|
{
|
|
|
|
|
|
|
|
email = value;
|
|
|
|
|
|
|
|
NotifyPropertyChanged();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else email = "Default";
|
|
|
|
else email = "Default";
|
|
|
|
|
|
|
|
NotifyPropertyChanged();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
private string email = default!;
|
|
|
|
private string email = default!;
|
|
|
@ -87,12 +79,7 @@ namespace Model
|
|
|
|
public event PropertyChangedEventHandler? PropertyChanged;
|
|
|
|
public event PropertyChangedEventHandler? PropertyChanged;
|
|
|
|
|
|
|
|
|
|
|
|
private void NotifyPropertyChanged([CallerMemberName] string propertyName = "")
|
|
|
|
private void NotifyPropertyChanged([CallerMemberName] string propertyName = "")
|
|
|
|
{
|
|
|
|
=> PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|
|
|
if (PropertyChanged != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember]
|
|
|
|
[DataMember]
|
|
|
|
public ObservableCollection<Game> Followed_Games
|
|
|
|
public ObservableCollection<Game> Followed_Games
|
|
|
|