private void miFindStructure_Click(object sender, EventArgs e) { var dlg = new FindStructureDialog(_structFile); if (dlg.ShowDialog(this) != DialogResult.OK) { return; } var action = new FindStructuresAction(_dataView.InstanceTrees, dlg.SelectedDef, dlg.Expression); RunBackgroundAction(action, () => _dataView.ShowSearchResults(action.Results)); }
private void miFindStructure_Click(object sender, EventArgs e) { var dlg = new FindStructureDialog(_structFile); if (dlg.ShowDialog(this) != DialogResult.OK) return; var action = new FindStructuresAction(_dataView.InstanceTrees, dlg.SelectedDef, dlg.Expression); RunBackgroundAction(action, () => _dataView.ShowSearchResults(action.Results)); }