Exemplo n.º 1
0
        private void CreateTaskItems()
        {
            if (Settings.IsVerified)
            {
                var wis    = _tfsRepository.GetWorkItemStore();
                var wic    = _tfsRepository.GetListOfBacklogItemsWithoutWork(wis, Settings, Settings);
                var result = _tfsRepository.AddTaskToEachBackLogItemInWorkItemCollection(wis, wic, Settings, StoryItems.Where(si => si.IsSelected).ToList <IBackLogItem>());
                Settings.IsVerified = false;

                if (result.Count > 0)
                {
                    ActionState         = String.Format("{0} new tasks have been created.", result);
                    Settings.IsVerified = false;
                }
            }
        }
Exemplo n.º 2
0
 private void ToggleStoryItemSelection(object storyItem) // StoryItem is always null. Parameter isn't getting passed correctly.
 {
     ((StoryItem)storyItem).IsSelected = !((StoryItem)storyItem).IsSelected;
     // RaisePropertyChangedEvent("StoryItems");
     Settings.IsVerified = StoryItems.Where(s => s.IsSelected).Any();
 }