private void ShowDetails(Task task) { currentTask = task; taskDialog = new TaskDialog(task); context = new BindingContext(this, taskDialog, taskDialog.Name); detailsScreen = new DialogViewController(context.Root, true); ActivateController(detailsScreen); }
public TODOViewController() : base(UITableViewStyle.Plain, null) { NavigationItem.SetRightBarButtonItem(new UIBarButtonItem(UIBarButtonSystemItem.Add), false); NavigationItem.RightBarButtonItem.Clicked += (sender, e) => { taskDialog = new TaskDialog() { Id = Guid.NewGuid().ToString() }; context = new BindingContext(this, taskDialog, "New Task"); detailsScreen = new DialogViewController(context.Root, true); ActivateController(detailsScreen); }; }