Beispiel #1
0
        void MenuNewChartFromHere_Click(object sender, EventArgs e)
        {
            if (mindMapView1.SelectedTopic != null && !ReadOnly && Owner != null)
            {
                var root = mindMapView1.SelectedTopic.Clone();
                root.CutFromMap();
                var map = new MindMap(root, ST.RemoveUnvisibleCharts(root.Text));

                if (ChartThemeManage.Default.DefaultTheme != null)
                {
                    map.ApplyTheme(ChartThemeManage.Default.DefaultTheme);
                }

                root.Expand();
                Owner.Document.Charts.Add(map);
                Owner.ActiveChartPage(map);
            }
        }