public IterationTaskDatesForm(Iteration iteration, Task task, EditIterationTasksForm origin)
        {
            currentIteration = iteration;
            currentTask = task;
            parent = origin;

            InitializeComponent();
            this.Text = "It:" + iteration.ID + " Task:" + task.ID + " Dates";
        }
예제 #2
0
 public EditTaskForm(Task task, TasksForm origin)
 {
     currentTask = task;
     sender = origin;
     try {
         currentIteration = currentTask.IterationTasks.Single(it => it.Task.Equals(currentTask)).Iteration;
     }
     catch
     {
         currentIteration = null;
     }
     InitializeComponent();
     TaskNameTextBox.Text = currentTask.TaskName;
     CompletetionDateTextBox.Value = currentTask.CompletionDate.Value;
     PriorityTextBox.Text = currentTask.Priority;
     ProjectIDTextBox.Text = currentTask.Project.ProjectName;
     DescriptionTextBox.Text = currentTask.Description;
     PopulateLists();
 }
 partial void DeleteIteration(Iteration instance);
 partial void UpdateIteration(Iteration instance);
 partial void InsertIteration(Iteration instance);
		private void detach_Iterations(Iteration entity)
		{
			this.SendPropertyChanging();
			entity.Project = null;
		}
		private void attach_Iterations(Iteration entity)
		{
			this.SendPropertyChanging();
			entity.Project = this;
		}