public static DailyNumbersViewController Create() { UIStoryboard storyboard = UIStoryboard.FromName("DailyNumbers", null); DailyNumbersViewController vc = (DailyNumbersViewController)storyboard.InstantiateInitialViewController(); vc.ModalPresentationStyle = UIModalPresentationStyle.FullScreen; return(vc); }
void OnError(Exception e) { if (LocalPreferencesHelper.HasNeverSuccessfullyFetchedFHIData) { AuthErrorUtils.GoToTechnicalErrorFHINumbers(this, LogSeverity.ERROR, e, "Could not load data for disease rate of the day, showing technical error page"); } else { LogUtils.LogException(LogSeverity.ERROR, e, "Could not load data for disease rate of the day, showing old data"); NavigationController?.PushViewController(DailyNumbersViewController.Create(), true); } }
void OnSuccess() { Cleanup(); NavigationController?.PushViewController(DailyNumbersViewController.Create(), true); }