Beispiel #1
0
        public static BaseChartPage CreateChartPage(Model.Documents.ChartPage chart)
        {
            BaseChartPage chartPage = null;

            switch (chart.Type)
            {
            case Model.Documents.ChartType.MindMap:
                chartPage = new MindMapChartPage();
                break;

            case Model.Documents.ChartType.FlowDiagram:
                chartPage = new FreeDiagramChartPage();
                break;

            default:
                break;
            }

            if (chartPage != null)
            {
                chartPage.Chart = chart;
                chartPage.Text  = chart.Name;
            }

            return(chartPage);
        }
Beispiel #2
0
        BaseChartPage CreateNewPage(ChartPage chart)
        {
            var cp = BaseChartPage.CreateChartPage(chart);

            cp.BackColorChanged += cp_BackColorChanged;
            cp.NeedShowProperty += cp_NeedShowProperty;
            cp.Owner             = this;
            return(cp);
        }
Beispiel #3
0
        BaseChartPage CreateNewPage(ChartPage chart)
        {
            var cp = BaseChartPage.CreateChartPage(chart);

            cp.BackColorChanged += new EventHandler(cp_BackColorChanged);
            cp.NeedShowProperty += new NeedShowPropertyEventHandler(cp_NeedShowProperty);
            cp.Owner             = this;
            return(cp);
        }