private void editFilter(object sender, EventArgs e) { EditCustomFilter ecf = new EditCustomFilter(server, filter); ecf.ShowDialog(); if (ecf.Changed && runOnEditDialogOk != null) { runOnEditDialogOk(); } }
public void addCustomFilter(TreeNodeWithJiraServer node) { if (node == null) { return; } JiraCustomFilter newFilter = new JiraCustomFilter(node.Server); EditCustomFilter ecf = new EditCustomFilter(node.Server, newFilter, false); ecf.ShowDialog(); if (!ecf.Changed) return; JiraCustomFilter.add(newFilter); JiraCustomFilterTreeNode newNode = addCustomFilterTreeNode(node.Server, node, newFilter); SelectedNode = newNode; }
public void editCustomFilter(JiraCustomFilterTreeNode node) { if (node == null) { return; } EditCustomFilter ecf = new EditCustomFilter(node.Server, node.Filter, true); ecf.ShowDialog(); if (!ecf.Changed) return; node.setFilterName(node.Filter.Name); JiraCustomFilter.save(); reloadIssues(); }