private void goToType(ITypeCache cache, Editor editor) { _ctx.Post((s) => { if (_gotoType == null || !_gotoType.Visible) { _gotoType = new TypeSearchForm( cache, (file, line, column) => { editor.GoTo(file, line, column); }, () => { new System.Threading.Thread(() => { System.Threading.Thread.Sleep(1000); editor.SetFocus(); }).Start(); }); _gotoType.Show(this); } setToForeground(_gotoType); }, null); }
private void goToType(ITypeCache cache, Editor editor) { Logger.Write("Preparing to open type search"); _ctx.Post((s) => { Logger.Write("Opening type search"); try { if (_gotoType == null || !_gotoType.Visible) { Logger.Write("Creating typesearch form"); _gotoType = new TypeSearchForm( cache, (file, line, column) => { editor.GoTo(file, line, column); }, () => { new System.Threading.Thread(() => { System.Threading.Thread.Sleep(1000); editor.SetFocus(); }).Start(); }); _gotoType.Show(this); } setToForeground(_gotoType); } catch (Exception ex) { Logger.Write(ex); } }, null); }