private void Button_Click(object sender, EventArgs e) { RectangleSegment node = findRectangleByGuid(btnObject.btnID); if (node != null) { Debug.WriteLine("rectangle ID = " + node.ID); } mindmapTree = findNodeTree(node.ID); if (mindmapTree == null) { mindmapTree = new MindmapTree(node, this.tools.TargetCanvas); AddMindmapObject(mindmapTree); } mindmapTree.UnDoObject = _UnDoObject; mindmapTree.AddChild(); Repaint(); //MessageBox.Show("Tombol dengan ID "+btnObject.btnID+" telah diklik."); }
public void AddMindmapObject(MindmapTree mindmap) { this.treeList.Add(mindmap); }