public void AddTask(GanttTaskViewModel task) { _TaskList.Add(task); OnPropertyChanged("Tasks"); task.ShowEditForm(); }