Beispiel #1
0
        private static bool CallHasBeenMade(CallEntity[] callEntities, CallEntity callEntity)
        {
            if (callEntities.Where(
                            myCalls => myCalls.Category == callEntity.Category && myCalls.Choice == callEntity.Choice &&
                                       myCalls.Detail == callEntity.Detail)
                            .Any(myCalls => myCalls.Status == (int)CallUtil.StatusCode.Active))
            {
                loadingOverlay.Hide();
                new UIAlertView(Strings.CallAlreadySent, null, null, "OK", null).Show();

                return true;
            }
            return false;
        }