示例#1
0
        private void DoOnItemClicked(object sender, AdapterView.ItemClickEventArgs eventArgs)
        {
            var task   = _taskListAdapter[eventArgs.Position];
            var intent = TaskActivity.CreateIntent(this, task.Id);

            StartActivity(intent);
        }
示例#2
0
        public override bool OnOptionsItemSelected(IMenuItem item)
        {
            if (item.ItemId == Resource.Id.menu_add)
            {
                var intent = TaskActivity.CreateIntent(this);
                StartActivity(intent);
            }

            return(base.OnOptionsItemSelected(item));
        }