コード例 #1
0
        public override void OnCreate(Bundle savedInstanceState)
        {
            var categoryId = Arguments.GetString(Category.TAG);

            category = TopekaDatabaseHelper.GetCategoryWith(Activity, categoryId);
            base.OnCreate(savedInstanceState);
        }
コード例 #2
0
        void Populate(string categoryId)
        {
            if (string.IsNullOrEmpty(categoryId))
            {
                Log.Warn(Tag, "Didn't find a category. Finishing");
                Finish();
            }
            var category = TopekaDatabaseHelper.GetCategoryWith(this, categoryId);

            SetTheme(category.Theme.StyleId);
            InitLayout(category.Id);
            InitToolbar(category);
        }