private void SelectElementNodeDelayed(PartElement element) { BeginInvoke((Action)(() => { var elementNode = FindElementNode(element); if (elementNode.Parent != null) { ProjectTreeView.Expand(elementNode.Parent); } using (FlagManager.UseFlag("ManualSelect")) ProjectTreeView.SelectObject(elementNode); })); }