Exemple #1
0
        public ChooseTaskViewModel(ITfsApi tfs)
        {
            _tfs           = tfs;
            SpecialCommand = new ObservableCommand(CreateTask);

            Searcher = new WorkItemSearcher(_tfs, WorkItemTypes.Task)
            {
                Help = Resources.AS_ChooseTask
            };
        }
Exemple #2
0
        public CreateTaskViewModel(ITfsApi tfs)
        {
            _tfs = tfs;
            // Ищем для привязки только указанные типы
            Searcher = new WorkItemSearcher(tfs,
                                            WorkItemTypes.Pbi,
                                            WorkItemTypes.Bug,
                                            WorkItemTypes.Improvement,
                                            WorkItemTypes.Incident)
            {
                Help = Resources.AS_ChooseParentItem
            };

            SubmitCommand = new ObservableCommand(CreateTask, OnCanCreateTask);
        }