public override bool OnOptionsItemSelected(IMenuItem item)
        {
            switch (item.ItemId)
            {
            case Resource.Id.random:
                int page = RANDOM.Next(mAdapter.Count);
                Toast.MakeText(this, "Changing to page " + page, ToastLength.Short);
                mPager.SetCurrentItem(page, true);
                return(true);

            case Resource.Id.add_page:
                if (mAdapter.Count < 10)
                {
                    mAdapter.SetCount(mAdapter.Count + 1);
                    mIndicator.NotifyDataSetChanged();
                }
                return(true);

            case Resource.Id.remove_page:
                if (mAdapter.Count > 1)
                {
                    mAdapter.SetCount(mAdapter.Count - 1);
                    mIndicator.NotifyDataSetChanged();
                }
                return(true);
            }
            return(base.OnOptionsItemSelected(item));
        }
        public override bool OnOptionsItemSelected(IMenuItem item)
        {
            switch (item.ItemId)
            {
            case Resource.Id.random:
                var page = _random.Next(_adapter.Count);
                Toast.MakeText(this, "Changing to page " + page, ToastLength.Short).Show();
                _pager.CurrentItem = page;
                return(true);

            case Resource.Id.add_page:
                if (_adapter.Count < 10)
                {
                    _adapter.SetCount(_adapter.Count + 1);
                    _indicator.NotifyDataSetChanged();
                }
                return(true);

            case Resource.Id.remove_page:
                if (_adapter.Count > 1)
                {
                    _adapter.SetCount(_adapter.Count - 1);
                    _indicator.NotifyDataSetChanged();
                }
                return(true);
            }


            return(base.OnOptionsItemSelected(item));
        }