bool CheckDebug( ) { bool debugKeyEntered = false; if (PrayerRequest.Text.ToLower( ).Trim( ) == "clear cache") { debugKeyEntered = true; FileCache.Instance.CleanUp(true); SpringboardViewController.DisplayError("Cache Cleared", "All cached items have been deleted"); } else if (PrayerRequest.Text.ToLower( ).Trim( ) == "developer") { debugKeyEntered = true; MobileApp.Shared.Network.RockLaunchData.Instance.Data.DeveloperModeEnabled = !MobileApp.Shared.Network.RockLaunchData.Instance.Data.DeveloperModeEnabled; SpringboardViewController.DisplayError("Developer Mode", string.Format("Developer Mode has been toggled: {0}", MobileApp.Shared.Network.RockLaunchData.Instance.Data.DeveloperModeEnabled == true ? "ON" : "OFF")); } else if (PrayerRequest.Text.ToLower( ).Trim( ) == "version") { debugKeyEntered = true; SpringboardViewController.DisplayError("Current Version", GeneralConfig.Version.ToString( )); } else { // otherwise, see if our special UI caught it. debugKeyEntered = UISpecial.Trigger(PrayerRequest.Text.ToLower( ).Trim( ), View, ScrollView, this, Task); } return(debugKeyEntered); }
public void HandleTapGesture(UITapGestureRecognizer tap) { if (Note != null) { if (tap.State == UIGestureRecognizerState.Ended) { try { if (Note.DidDoubleTap(tap.LocationInView(UIScrollView).ToPointF( ))) { MobileApp.Shared.Network.RockMobileUser.Instance.UserNoteCreated = true; } } catch (Exception e) { // we know this exception is the too many notes one. Just show it. SpringboardViewController.DisplayError("Messages", e.Message); } } } }