|
|
|
@ -15,8 +15,12 @@ public partial class SwitchAccountPage : ContentPage
|
|
|
|
|
|
|
|
|
|
public async void Transfer_Clicked(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
Mgr.SelectedAccount = Mgr.SelectedCustomer.AccountsList[0]; // 0 <20> changer
|
|
|
|
|
if(Mgr.IsConsultant == true)
|
|
|
|
|
var selectedItem = (sender as Button)?.BindingContext as Account;
|
|
|
|
|
|
|
|
|
|
if (selectedItem != null)
|
|
|
|
|
{
|
|
|
|
|
Mgr.SelectedAccount = selectedItem;
|
|
|
|
|
if (Mgr.IsConsultant == true)
|
|
|
|
|
{
|
|
|
|
|
await Shell.Current.Navigation.PushAsync(new Balance.BalancePage());
|
|
|
|
|
}
|
|
|
|
@ -26,6 +30,8 @@ public partial class SwitchAccountPage : ContentPage
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async void DisconnectionClicked(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if(Mgr.IsConsultant == true)
|
|
|
|
|