Beispiel #1
0
        private void btAddPara_Click(object sender, EventArgs e)
        {
            var nodeToAddTo = treeView1.SelectedNode as AsmNode;

            if (nodeToAddTo == null || nodeToAddTo.NodeType == clNodeType.clnContainer)
            {
                return;
            }

            var fParaEdit = new FormParaEdit(nodeToAddTo, treeOper.toAdd);

            fParaEdit.Show();
        }
Beispiel #2
0
        private void EditNode(AsmNode aNode)
        {
            if (aNode == null)
            {
                return;
            }

            switch (aNode.NodeType)
            {
            case clNodeType.clnParagraph:
            {
                var fParaEdit = new FormParaEdit(aNode, treeOper.toEdit);
                fParaEdit.Show();
                break;
            }
            }
        }