private void DeleteQueryDefinition(WorkItemQueryChildModel workItemQueryDefinitionModel)
        {
            bool result;

            var queryId = workItemQueryDefinitionModel.Id;

            if (teamPilgrimServiceModelProvider.TryDeleteQueryItem(out result, _projectCollection, _project, queryId))
            {
                if (result)
                {
                    teamPilgrimVsService.CloseQueryDefinitionFrames(_projectCollection, queryId);
                    workItemQueryDefinitionModel.ParentQueryFolder.QueryItems.Remove(workItemQueryDefinitionModel);
                }
            }
        }
        private void OpenSeurityDialog(WorkItemQueryChildModel workItemQueryDefinitionModel)
        {
            QueryItem queryItem = null;

            var itemQueryDefinitionModel = workItemQueryDefinitionModel as WorkItemQueryDefinitionModel;

            if (itemQueryDefinitionModel != null)
            {
                queryItem = itemQueryDefinitionModel.QueryDefinition;
            }

            var itemQueryFolderModel = workItemQueryDefinitionModel as WorkItemQueryFolderModel;

            if (itemQueryFolderModel != null)
            {
                queryItem = itemQueryFolderModel.QueryFolder;
            }

            Debug.Assert(queryItem != null, "queryItem != null");
            teamPilgrimVsService.OpenSecurityItemDialog(queryItem);
        }
        private void OpenSeurityDialog(WorkItemQueryChildModel workItemQueryDefinitionModel)
        {
            QueryItem queryItem = null;

            var itemQueryDefinitionModel = workItemQueryDefinitionModel as WorkItemQueryDefinitionModel;
            if (itemQueryDefinitionModel != null)
            {
                queryItem = itemQueryDefinitionModel.QueryDefinition;
            }

            var itemQueryFolderModel = workItemQueryDefinitionModel as WorkItemQueryFolderModel;
            if (itemQueryFolderModel != null)
            {
                queryItem = itemQueryFolderModel.QueryFolder;
            }

            Debug.Assert(queryItem != null, "queryItem != null");
            teamPilgrimVsService.OpenSecurityItemDialog(queryItem);
        }
        private void DeleteQueryDefinition(WorkItemQueryChildModel workItemQueryDefinitionModel)
        {
            bool result;

            var queryId = workItemQueryDefinitionModel.Id;

            if (teamPilgrimServiceModelProvider.TryDeleteQueryItem(out result, _projectCollection, _project, queryId))
            {
                if (result)
                {
                    teamPilgrimVsService.CloseQueryDefinitionFrames(_projectCollection, queryId);
                    workItemQueryDefinitionModel.ParentQueryFolder.QueryItems.Remove(workItemQueryDefinitionModel);
                }
            }
        }
 private bool CanOpenSeurityDialog(WorkItemQueryChildModel workItemQueryDefinitionModel)
 {
     return true;
 }
 private bool CanDeleteQueryDefinition(WorkItemQueryChildModel workItemQueryDefinitionModel)
 {
     return true;
 }
 private bool CanOpenSeurityDialog(WorkItemQueryChildModel workItemQueryDefinitionModel)
 {
     return(true);
 }
 private bool CanDeleteQueryDefinition(WorkItemQueryChildModel workItemQueryDefinitionModel)
 {
     return(true);
 }