Exemplo n.º 1
0
        private void tsbGotoNode_Click(object sender, EventArgs e)
        {
            if (cmbNodesName.SelectedIndex > 0)
            {
                bool _goto = true;
                if (changeCode)
                {
                    _goto = !SaveClosing(null);
                }

                if (_goto)
                {
                    StopEditingNode();
                    nodeEditLink = null;

                    NodeName = cmbNodesName.Text;

                    int index = PI.GetProcedureIndex(NodeName);
                    textEditor.Text = GetProcedureCode(sourceTab.textEditor.Document, PI.procs[index]);
                    timer.Stop();
                    changeCode = false;

                    ParseCode();

                    textEditor.Refresh();
                }
            }
        }