static void ListView_DoubleClick(object sender, EventArgs e) { var selection = listView.Items[listView.SelectedIndices[0]]; var reference = (Reference)selection.Tag; HideList(); if (PluginBase.MainForm.CurrentDocument.SciControl != null) { ASComplete.SaveLastLookupPosition(PluginBase.MainForm.CurrentDocument.SciControl); } PluginBase.MainForm.OpenEditableDocument(reference.File, false); PluginBase.MainForm.CurrentDocument.SciControl.GotoLine(reference.Line); }