private void CheckTaskItems(WorkTask workTask)
        {
            System.Diagnostics.Debug.WriteLine(string.Format("CheckTaskItems: title: {0}, complete: {1}",
                                                             workTask.Title,
                                                             workTask.IsCompelete().ToString()));

            foreach (WorkTask item in workTask.Items)
            {
                CheckTaskItems(item);
            }
            workTask.CheckForCompletion();
        }
        public Dockpane1ViewModel()
        {
            _tableTasks = new ObservableCollection <WorkTask>();
            WorkTask root = new WorkTask("esri_editing_AttributesDockPane")
            {
                Title = "UIC Workflow"
            };
            WorkTask childItem1 = new WorkTask("esri_editing_AttributesDockPane")
            {
                Title = "UIC facility"
            };

            childItem1.Items.Add(new WorkTask("esri_editing_CreateFeaturesDockPane")
            {
                Title = "Create geometry", IsCompelete = () => false
            });
            childItem1.Items.Add(new WorkTask("esri_editing_AttributesDockPane")
            {
                Title = "Add county FIPS", IsCompelete = uicModel.IsCountyFipsComplete
            });
            childItem1.Items.Add(new WorkTask("esri_editing_AttributesDockPane")
            {
                Title = "Populate attributes", IsCompelete = () => false
            });
            root.Items.Add(childItem1);
            WorkTask childItem2 = new WorkTask("esri_editing_AttributesDockPane")
            {
                Title = "UIC Well Point"
            };

            childItem2.Items.Add(new WorkTask("esri_editing_CreateFeaturesDockPane")
            {
                Title = "Create geometry", IsCompelete = () => false
            });
            childItem2.Items.Add(new WorkTask("esri_editing_AttributesDockPane")
            {
                Title = "Populate attributes", IsCompelete = uicModel.IsWellAtributesComplete
            });
            root.Items.Add(childItem2);
            root.Items.Add(new WorkTask("esri_editing_CreateFeaturesDockPane")
            {
                Title = "Next one", Complete = true
            });
            _tableTasks.Add(root);
        }