public void RegisterMessageCenter() { MessagingCenter.Subscribe <MainPage, bool>(this, Messages.HomeClicked, async(sends, arg) => { await GetData(); }); MessagingCenter.Subscribe <AccountService, bool>(this, Messages.LoginSuccessful, async(sends, arg) => { await GetData(); }); MessagingCenter.Subscribe <MainMapPageViewModel, string>(this, Messages.MapEventsClicked, async(sends, arg) => { await Navi.GoToEventPage(arg); }); MessagingCenter.Subscribe <MainMapPageViewModel, string>(this, Messages.MapProfileClicked, async(sends, arg) => { await Navi.GoToProfilePage(arg); }); }