Пример #1
0
        private void OnVariableSelected(object sender, Variable variable)
        {
            DisposeAndClear(splitContainerRight.Panel2.Controls);

            var variableInfoControl = new VariableInfo(variable, this)
            {
                Dock = DockStyle.Fill
            };

            splitContainerRight.Panel2.Controls.Add(variableInfoControl);
            variableInfoControl.ScrollToSelectedVariable();

            if (sender.GetType() == typeof(TableOfContents))
            {
                codeBox.FindNext(variable.VariableName, false, false, true, true);
            }
        }