예제 #1
0
        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));
        }
예제 #2
0
 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));
 }