Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
        int IComparable.CompareTo(object other)
        {
            FunctionListItem o = (FunctionListItem)other;

            return(String.Compare(this.shortname, o.shortname));
        }