From ff766bbaf7df6c1c839eb7146c8e0c0d59456f16 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 10 Apr 2017 20:29:44 +0200 Subject: [PATCH] =?UTF-8?q?le=20profile=20n'est=20pas=20instanci=C3=A9=20i?= =?UTF-8?q?ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Pages/UserProfile/UserProfilePage.xaml.cs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/ZicMoove/ZicMoove/Pages/UserProfile/UserProfilePage.xaml.cs b/ZicMoove/ZicMoove/Pages/UserProfile/UserProfilePage.xaml.cs index aef8f833..36b972cc 100644 --- a/ZicMoove/ZicMoove/Pages/UserProfile/UserProfilePage.xaml.cs +++ b/ZicMoove/ZicMoove/Pages/UserProfile/UserProfilePage.xaml.cs @@ -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(); 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"); }