private void AddToGoalBtn_Click(object sender, RoutedEventArgs e)
        {
            GoalBlock block = new GoalBlock(Goals.Name, this);

            Goals.AddTask(block.Goal);
            ListStackPanel.Children.Add(block);
        }
 private void UserControl_Drop(object sender, DragEventArgs e)
 {
     if (e.Data.GetDataPresent("Object"))
     {
         GoalBlock goal = e.Data.GetData("Object") as GoalBlock;
         goal.ParentBlock.RemoveGoal(goal);
         goal.ParentBlock   = this;
         goal.Goal.ListName = Goals.Name;
         Goals.AddTask(goal.Goal);
         ListStackPanel.Children.Add(goal);
     }
 }
 public void RemoveGoal(GoalBlock block)
 {
     Goals.RemoveTask(block.Goal);
     ListStackPanel.Children.Remove(block);
 }