le profile n'est pas instancié ici

This commit is contained in:
2017-04-10 20:29:44 +02:00
parent bd760f93b4
commit b8427a365e

View File

@ -12,26 +12,19 @@ namespace ZicMoove.Pages.UserProfile
using System.IO;
using System.Threading.Tasks;
using Android.Content.Res;
using XLabs.Ioc;
public partial class UserProfilePage
{
public UserProfilePage()
{
InitializeComponent();
BindingContext = Resolver.Resolve<UserProfileViewModel>();
AvatarButton.Clicked += AvatarButton_Clicked;
btnPay.Clicked += BtnPay_Clicked;
}
public UserProfilePage(UserProfileViewModel model)
{
InitializeComponent();
AvatarButton.Clicked += AvatarButton_Clicked;
BindingContext = model;
}
private async void BtnPay_Clicked(object sender, EventArgs e)
private void BtnPay_Clicked(object sender, EventArgs e)
{
App.PlatformSpecificInstance.Pay(0.1, Interfaces.PayMethod.Immediate, "test payment");
}