private void btnCreate_Click(object sender, EventArgs e) { if (this.menuBtn != null) { MindMap mm = new MindMap(this.menuBtn.colorBoard, this.menuBtn.colorParent, this.menuBtn.colorChild, this.menuBtn.colorPath, this.menuBtn.shapeParent, this.menuBtn.shapeChild, this.menuBtn.stylePath); mm.Show(); } else { MessageBox.Show("Choose an element in a panel, please !", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private void btnOpen_Click(object sender, EventArgs e) { if (name == "") { MessageBox.Show("Choose a name, please !", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { if (mindmap != null) { mindmap.board.Dispose(); int idboard = STORAGEcontroller.getIDBoard(name); BOARD board = BOARDcontroller.getBOARD(idboard); mindmap.reNewListNode(addNodeToBoard(board), board); name = ""; this.Dispose(); } else if (mindmap == null) { int idboard = STORAGEcontroller.getIDBoard(name); BOARD board = BOARDcontroller.getBOARD(idboard); MindMap mm = new MindMap(); this.mindmap = mm; mm.board.Dispose(); mm.reNewListNode(addNodeToBoard(board), board); mm.Show(); this.Dispose(); } } }
private void Pnl_DoubleClick(object sender, EventArgs e) { MindMap mm = new MindMap(this.colorBoard, this.colorParent, this.colorChild, this.colorPath, this.shapeParent, this.shapeChild, this.stylePath); mm.Show(); }