le profile n'est pas instancié ici
This commit is contained in:
parent
69598b58df
commit
ff766bbaf7
1 changed files with 3 additions and 10 deletions
|
|
@ -12,26 +12,19 @@ namespace ZicMoove.Pages.UserProfile
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Android.Content.Res;
|
using Android.Content.Res;
|
||||||
|
using XLabs.Ioc;
|
||||||
|
|
||||||
public partial class UserProfilePage
|
public partial class UserProfilePage
|
||||||
{
|
{
|
||||||
public UserProfilePage()
|
public UserProfilePage()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
BindingContext = Resolver.Resolve<UserProfileViewModel>();
|
||||||
AvatarButton.Clicked += AvatarButton_Clicked;
|
AvatarButton.Clicked += AvatarButton_Clicked;
|
||||||
btnPay.Clicked += BtnPay_Clicked;
|
btnPay.Clicked += BtnPay_Clicked;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public UserProfilePage(UserProfileViewModel model)
|
private void BtnPay_Clicked(object sender, EventArgs e)
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
AvatarButton.Clicked += AvatarButton_Clicked;
|
|
||||||
BindingContext = model;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private async void BtnPay_Clicked(object sender, EventArgs e)
|
|
||||||
{
|
{
|
||||||
App.PlatformSpecificInstance.Pay(0.1, Interfaces.PayMethod.Immediate, "test payment");
|
App.PlatformSpecificInstance.Pay(0.1, Interfaces.PayMethod.Immediate, "test payment");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue