private void addToTaskBtn_Click(object sender, EventArgs e)
 {
     if(currentIteration != null)
     {
         foreach (Developer d in unassignedToIterationLB.SelectedItems)
         {
             DeveloperIterationTask dit = new DeveloperIterationTask();
             dit.Developer = d;
             dit.Iteration = currentIteration;
             dit.Task = currentTask;
             dit.DeveloperID = d.ID;
             dit.IterationID = currentIteration.ID;
             dit.TaskID = currentTask.ID;
             DBInterface.Add(dit);
         }
         PopulateLists();
     }
     if (unassignedToIterationLB.SelectedItems.Count == 0)
     {
         addToTaskBtn.Enabled = false;
     }
 }
		private void detach_DeveloperIterationTasks(DeveloperIterationTask entity)
		{
			this.SendPropertyChanging();
			entity.Task = null;
		}
 partial void DeleteDeveloperIterationTask(DeveloperIterationTask instance);
 partial void UpdateDeveloperIterationTask(DeveloperIterationTask instance);
 partial void InsertDeveloperIterationTask(DeveloperIterationTask instance);
		private void attach_DeveloperIterationTasks(DeveloperIterationTask entity)
		{
			this.SendPropertyChanging();
			entity.Iteration = this;
		}