コード例 #1
0
        void SeriesReady( )
        {
            // only do image work on the main thread
            InvokeOnMainThread(delegate
            {
                ActivityIndicator.Hidden = true;
                ActivityIndicator.RemoveFromSuperview( );

                // if there are now series entries, we're good
                if (RockLaunchData.Instance.Data.NoteDB.SeriesList.Count > 0)
                {
                    // setup each series entry in our table
                    SetupSeriesEntries(RockLaunchData.Instance.Data.NoteDB.SeriesList);

                    // only update the table if we're still visible
                    if (IsVisible == true)
                    {
                        NotesTableView.Hidden = false;
                        NotesTableView.Source = new TableSource(this, SeriesEntries, ImageMainPlaceholder, ImageThumbPlaceholder);
                        NotesTableView.ReloadData( );
                    }
                }
                else if (IsVisible == true)
                {
                    // jhm hack : Show our stupid error message
                    ResultView.Show(MessagesStrings.Series_Error_Title,
                                    PrivateControlStylingConfig.Result_Symbol_Failed,
                                    MessagesStrings.Series_Error_Message + "\n" + RockLaunchData.HackNotesErrorCheck,
                                    GeneralStrings.Retry);
                }
            });
        }