コード例 #1
0
        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);
            }
        }
コード例 #2
0
ファイル: frmOpen.cs プロジェクト: LamHV155/MindMap
        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();
                }
            }
        }
コード例 #3
0
ファイル: MenuButton.cs プロジェクト: LamHV155/MindMap
        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();
        }