public LoginViewModel() { LoginCommand = new Command(async() => { if (IdDeezer == null || IdDeezer.Equals("")) { await Application.Current.MainPage.DisplayAlert("alert", "pas de id deezer", "Ok"); } else { Application.Current.MainPage = new NavigationPage(new PlaylistView(Int32.Parse(IdDeezer))); } }); }
public LoginViewModel() { LoginCommand = new Command(() => { if (IdDeezer == null || IdDeezer.Equals("")) { Application.Current.MainPage.DisplayAlert("alert", "pas de id deezer", "Ok"); } else { Application.Current.MainPage.DisplayAlert("alert", "mon id deezer : " + IdDeezer, "Ok"); } }); }