private void miShowDependencies_Click(object sender, EventArgs e) { if ((selectedRuleListView != null) && (selectedRuleListView.ListView.SelectedItems.Count > 0)) { IdpeRule rule = selectedRuleListView.ListView.SelectedItems[0].Tag as IdpeRule; RuleDependencies ruleDependencies = new RuleDependencies(rule.Id); ruleDependencies.ShowDialog(); } }
private void showDependenciesToolStripMenuItem_Click(object sender, EventArgs e) { if ((listView != null) && (listView.SelectedItems.Count > 0)) { IdpeRule rule = listView.SelectedItems[0].Tag as IdpeRule; RuleDependencies ruleDependencies = new RuleDependencies(rule.Id); ruleDependencies.ShowDialog(); } }