Wrapper class for Task, to use with MonoTouch.Dialog. If it was just iOS platform we could apply these attributes directly to the Task class, but because we share that with other platforms this wrapper provides a bridge to MonoTouch.Dialog.
		protected void ShowTaskDetails(TodoItem item)
		{
			currentItem = item;
			taskDialog = new TodoItemDialog (currentItem);
			context = new BindingContext (this, taskDialog, "Task Details");
			detailsScreen = new DialogViewController (context.Root, true);
			ActivateController(detailsScreen);
		}
Exemple #2
0
        protected void ShowTaskDetails(TodoItem item)
        {
            transaction = TodoItemManager.BeginTransaction();
            item = item ?? TodoItemManager.CreateTodoItem();

            currentItem = item;
            taskDialog = new TodoItemDialog (currentItem);
            context = new BindingContext (this, taskDialog, "Task Details");
            detailsScreen = new DialogViewController (context.Root, true);
            ActivateController(detailsScreen);
        }