ré-écriture
This commit is contained in:
@ -15,6 +15,14 @@ namespace ZicMoove.ViewModels.UserProfile
|
|||||||
|
|
||||||
public class UserProfileViewModel : ViewModel
|
public class UserProfileViewModel : ViewModel
|
||||||
{
|
{
|
||||||
|
public UserProfileViewModel()
|
||||||
|
{
|
||||||
|
Accounts = MainSettings.AccountList;
|
||||||
|
User = MainSettings.CurrentUser;
|
||||||
|
UpdateUserMeta();
|
||||||
|
Rating = 2;
|
||||||
|
MainSettings.UserChanged += MainSettings_UserChanged;
|
||||||
|
}
|
||||||
|
|
||||||
public bool IsAPerformer
|
public bool IsAPerformer
|
||||||
{
|
{
|
||||||
@ -26,7 +34,7 @@ namespace ZicMoove.ViewModels.UserProfile
|
|||||||
get; set;
|
get; set;
|
||||||
}
|
}
|
||||||
// TODO implementation
|
// TODO implementation
|
||||||
int rating ;
|
int rating = 0 ;
|
||||||
public int Rating
|
public int Rating
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -136,22 +144,7 @@ namespace ZicMoove.ViewModels.UserProfile
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public UserProfileViewModel()
|
|
||||||
{
|
|
||||||
Accounts = MainSettings.AccountList;
|
|
||||||
User = MainSettings.CurrentUser;
|
|
||||||
UpdateUserMeta();
|
|
||||||
Rating = 2;
|
|
||||||
UserNameGesture = new RelayGesture((g, x) =>
|
|
||||||
{
|
|
||||||
if (g.GestureType == GestureType.LongPress)
|
|
||||||
{
|
|
||||||
NavigationService.NavigateTo("accountChooser");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
MainSettings.UserChanged += MainSettings_UserChanged;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private void MainSettings_UserChanged(object sender, System.EventArgs e)
|
private void MainSettings_UserChanged(object sender, System.EventArgs e)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user