コード例 #1
0
        protected override void PopulateTable()
        {
            Console.WriteLine("SESSIONS PopulateTable");

            if (sessionTimeslots == null || sessionTimeslots.Count == 0)
            {
                // no data already here, so load it up
                if (dayID >= 0)
                {
                    var days = DaysManager.GetDays();
                    titleTextView.Text = days[dayID - 1].ToString("dddd").ToUpper();
                    sessionTimeslots   = MWC.BL.Managers.SessionManager.GetSessionTimeslots(dayID);
                }
                else
                {
                    titleTextView.Text = "ALL SESSIONS";
                    //titleTextView.Visibility = global::Android.Views.ViewStates.Gone;
                    sessionTimeslots = MWC.BL.Managers.SessionManager.GetSessionTimeslots();
                }
            }

            // Adapter is created every time, so Favorite changes are reflected each time the screen is visited
            sessionTimeslotListAdapter = new MWC.Adapters.SessionTimeslotListAdapter(this, sessionTimeslots);
            //Hook up our adapter to our ListView
            sessionListView.Adapter = sessionTimeslotListAdapter;
        }
コード例 #2
0
 public DaysTableSource() : base()
 {
     days = DaysManager.GetDays();
 }
コード例 #3
0
 public DaysListAdapter(Activity context)
     : base()
 {
     this.context = context;
     days         = DaysManager.GetDays();
 }