Beispiel #1
0
        private void CreateWorkItemCheckListItem_Click(object sender, RoutedEventArgs e)
        {
            // Get the data from the controls
            string task        = CheckListTaskTextBox.Text;
            string description = CheckListDescriptionTextBox.Text;

            DateTime?dueDate = CheckListDueDate.SelectedDate;

//            if (dueDate.HasValue == false)
//                dueDate = DateTime.Now; // TODO change to a Setting.

            string[] taskSplit = task.Split('|');
            foreach (string taskPortion in taskSplit)
            {
                CheckListItem cli = new CheckListItem(_model.SelectedWorkItem.Meta.WorkItem_ID, taskPortion.Trim(), description, dueDate);
                _controller.AddCheckListItem(cli);
            }
        }