private async void DisplayAlertAsync(Application application, MessagingCenterAlert alert) { await DisplayAlert(alert.Title, alert.Message, alert.Cancel); }
public virtual async void DisplayAlertFromMessagingCenter(ViewModelBase arg1, MessagingCenterAlert arg2) { if (_filter != null && _filter.Length > 0) { if (_filter.Any(a => arg1.GetType() == a)) { await DisplayAlert(arg2.Title, arg2.Message, arg2.Cancel); } } else { await DisplayAlert(arg2.Title, arg2.Message, arg2.Cancel); } }