private void clearAllPresetFiltersProject(JiraPresetFiltersGroupTreeNode groupNode) { DialogResult result = MessageBox.Show( "Do you really want to clear projects from all preset filters?", Constants.QUESTION_CAPTION, MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (DialogResult.Yes != result) { return; } foreach (var n in groupNode.Nodes) { JiraPresetFilterTreeNode node = n as JiraPresetFilterTreeNode; if (node == null) { continue; } node.setProject(null); if (SelectedNode == node) { reloadIssues(); } } }
private void setAllPresetFiltersProject(JiraPresetFiltersGroupTreeNode groupNode) { SelectJiraProject dlg = new SelectJiraProject(JiraServerCache.Instance.getProjects(groupNode.Server).Values, groupNode.Project); dlg.ShowDialog(); JiraProject project = dlg.getSelectedProject(); if (project == null) { return; } foreach (var n in groupNode.Nodes) { JiraPresetFilterTreeNode node = n as JiraPresetFilterTreeNode; if (node == null) { continue; } node.setProject(project); if (SelectedNode == node) { reloadIssues(); } } }
private void setPresetFilterProject(JiraPresetFilterTreeNode filterNode) { SelectJiraProject dlg = new SelectJiraProject(JiraServerCache.Instance.getProjects(filterNode.Server).Values, filterNode.Filter.Project); dlg.ShowDialog(); JiraProject project = dlg.getSelectedProject(); if (project == null) return; filterNode.setProject(project); SelectedNode = filterNode; reloadIssues(); }
private void clearPresetFilterProject(JiraPresetFilterTreeNode filterNode) { filterNode.setProject(null); SelectedNode = filterNode; reloadIssues(); }