private void InstantLookup_OnLemmaFound(object sender, System.Collections.Generic.List <Backend.Noun> found, MSOutlook.Inspector document) { if (document == inspector) { LookupPane lookupPane = (LookupPane)taskPane.Control; lookupPane.Invoke((Action) delegate { lookupPane.Item = found[0]; lookupPane.lbxResults.DataSource = found; }); } }
private void InstantLookup_OnLemmaFound(object sender, List <Noun> found, MSWord.Document document) { CustomTaskPane ctp = null; taskPaneMap.TryGetValue(document, out ctp); if (ctp != null) { LookupPane lookupPane = (LookupPane)ctp.Control; lookupPane.Invoke((Action) delegate { lookupPane.Item = found[0]; lookupPane.lbxResults.DataSource = found; }); } }