コード例 #1
0
        partial void ViewQuestionsButton_TouchUpInside(UIButton sender)
        {
            //create a QuestionsViewController
            QuestionsViewController QuestionsVC = new QuestionsViewController();

            //display QuestionsVC
            NavigationController.PushViewController(QuestionsVC, true);
        }
コード例 #2
0
            QuestionsViewController vc;                                                                      //An instance of QuestionsViewController

            //constructor
            //QuestionsViewController is passed into tableview
            public QuestionsTableSource(QuestionsViewController vc_in)
            {
                //Json file is deserialized and added it to a list
                var jsonData = File.ReadAllText(AppDelegate.triviaPathFile);

                ListofTriviaQuestions = JsonConvert.DeserializeObject <List <TriviaQuestionsRecord> >(jsonData);

                vc = vc_in;
            }