コード例 #1
0
 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);
 }
コード例 #2
0
 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);
     };
 }