Exemple #1
0
 public override void PrepareForSegue(UIKit.UIStoryboardSegue segue, Foundation.NSObject sender)
 {
     base.PrepareForSegue(segue, sender);
     if (segue.Identifier.Equals("project2Tasks"))
     {
         TasksTableViewController controller = (TasksTableViewController)segue.DestinationViewController;
         controller.projectId   = ((ProjectsTableSource)projectsTableView.Source).selectedProjectId;
         controller.projectName = ((ProjectsTableSource)projectsTableView.Source).selectedProjectName;
     }
 }
 public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
 {
     base.PrepareForSegue(segue, sender);
     if (segue.Identifier == "TaskTimeLogsSegue")
     {
         var controller = segue.DestinationViewController as TaskTimeLogViewController;
         controller.taskId = task.Id;
         controller.task   = task;
     }
     if (segue.Identifier == "showListofTasks")
     {
         TasksTableViewController controller = (TasksTableViewController)segue.DestinationViewController;
         controller.projectId   = task.Project.Id;
         controller.projectName = task.Project.Name;
     }
 }
 public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
 {
     base.PrepareForSegue(segue, sender);
     if (segue.Identifier == "home2taskDetailsSegue")
     {
         TaskDetailsViewController controller = (TaskDetailsViewController)segue.DestinationViewController;
         controller.task = ((TaskTableSource)recentTaskTableView.Source).selectedTask;
     }
     else if (segue.Identifier.Equals("home2TasksSegue"))
     {
         TasksTableViewController controller = (TasksTableViewController)segue.DestinationViewController;
         controller.projectId   = currentProject.Id;
         controller.projectName = currentProject.Name;
     }
     else if (segue.Identifier.Equals("homeTask2TaskDetails"))
     {
         TaskDetailsViewController controller = (TaskDetailsViewController)segue.DestinationViewController;
         controller.task = currentTask;
     }
     else if (segue.Identifier.Equals("(HometoSetting"))
     {
         SettingsViewController controller = (SettingsViewController)segue.DestinationViewController;
     }
 }