private void cobFunctions_SelectedIndexChanged(object sender, EventArgs e) { EditorPage page = dockPanel1.ActiveDocument as EditorPage; if (page != null && cobFunctions.SelectedIndex >= 0) { FunctionListItem f = (FunctionListItem)cobFunctions.SelectedItem; page.Editor.GoTo.Position(f.pos); } }
int IComparable.CompareTo(object other) { FunctionListItem o = (FunctionListItem)other; return(String.Compare(this.shortname, o.shortname)); }