Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Juansero29/d463b8b0cb8e4f6ce83cdbdce91aaef2 to your computer and use it in GitHub Desktop.

Select an option

Save Juansero29/d463b8b0cb8e4f6ce83cdbdce91aaef2 to your computer and use it in GitHub Desktop.
GoToCustomerFormAsync
private async Task GoToCustomerFormAsync(object obj)
{
var bc = new CustomerFormViewModel(Client) { Navigation = this.Navigation };
var c = new CRMNavigationPage(new CustomerFormPage()
{
BindingContext = bc,
Title = "Fiche Client"
});
// CancelHandler() ?
await Navigation.PopModalAsync();
// If we want the nav. drawer to be present
// await ((App.Current.MainPage.Navigation as RootPage).Detail as CRMNavigationPage).PushAsync(c);
// await Navigation.PushModalAsync(c);
// If we don't want the nav. drawer to be present
await (App.Current.MainPage as RootPage).Master.Navigation.PushAsync(c);
}
@Juansero29
Copy link
Author

Juansero29 commented May 7, 2019

  • Faut remplacer par le NavigationService et utiliser le MessagingService pour passer le client en paramètre.
    • Si pas de temps pour NavService et MessService, juste faire un constructeur du CustomerFormVM qui prenne en paramètre un clsJuridique et en faire un Customer.
    • Ou alors, modifier le CustomerFormViewModel pour qu'il ait un clsJuridique et non pas un Customer en propriété

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment