public override void ViewDidAppear(bool animated) { base.ViewDidAppear(animated); // Don't attempt to refresh if we're loading this controller from startup if (!_loadedFromStartup && Settings.Current.NeedsUpdate()) { if (!IsOnline()) { ModalDialog.Alert("No or slow internet connection", "An update is available for the feeds, but no connection is currently available"); ShowFirstItem(); } else { Settings.Current.LastItemId = ""; Settings.Current.LastControllerId = ""; // Show the modal update dialog _loadingView = new LoadingFeedsView(); _loadingView.LoadingComplete += new EventHandler(LoadingViewComplete); _loadingView.Stopped += LoadingViewStopped; _loadingView.Frame = new RectangleF(_loadingView.Bounds.Location, new SizeF(300, 400)); _loadingView.Initialize(); } } else { ShowFirstItem(); } }
public override void ViewDidAppear(bool animated) { base.ViewDidAppear (animated); // Don't attempt to refresh if we're loading this controller from startup if (!_loadedFromStartup && Settings.Current.NeedsUpdate()) { if (!IsOnline()) { ModalDialog.Alert("No or slow internet connection","An update is available for the feeds, but no connection is currently available"); ShowFirstItem(); } else { Settings.Current.LastItemId = ""; Settings.Current.LastControllerId = ""; // Show the modal update dialog _loadingView = new LoadingFeedsView(); _loadingView.LoadingComplete += new EventHandler(LoadingViewComplete); _loadingView.Stopped += LoadingViewStopped; _loadingView.Frame = new RectangleF(_loadingView.Bounds.Location, new SizeF(300, 400)); _loadingView.Initialize(); } } else { ShowFirstItem(); } }
public AlertViewDelegate(LoadingFeedsView loadingFeedsView) { _loadingFeedsView = loadingFeedsView; }
public AlertViewDelegate(LoadingFeedsView loadingFeedsView) { _loadingFeedsView = loadingFeedsView; }