Example #1
0
 private bool SnackbarAlreadyPresent(Snackbar newSnackbar)
 {
     return(SnackBarList.Any(snackbar =>
                             newSnackbar.Message.Equals(snackbar.Message) &&
                             newSnackbar.Severity.Equals(snackbar.Severity)
                             ));
 }
Example #2
0
 private bool ToastAlreadyPresent(Snackbar newToast)
 {
     return(SnackBarList.Any(toast =>
                             newToast.Message.Equals(toast.Message) &&
                             newToast.Type.Equals(toast.Type)
                             ));
 }