private void CreateGrid()
        {
            var grid = GdiMapper.ToGdiGrid(ChartGridModel);

            grid.Border   = new GdiSharp.Models.Border(1);
            grid.CellSize = CellSize;
            grid.Size     = this.Size;

            this.AddChild(grid);
        }
예제 #2
0
        private void CreateRightGrid()
        {
            if (RightPanel != null)
            {
                var rightGrid = GdiMapper.ToGdiGrid(ChartGridModel);
                rightGrid.CellSize = CellSize;
                rightGrid.Size     = RightPanel.Size;

                RightPanel.AddChild(rightGrid);
            }
        }
예제 #3
0
        private void CreateLeftGrid()
        {
            if (LeftPanel != null)
            {
                var leftGrid = GdiMapper.ToGdiGrid(ChartGridModel);
                leftGrid.CellSize = CellSize;
                leftGrid.Size     = LeftPanel.Size;
                leftGrid.IsDrawnFromRightToLeft = true;

                LeftPanel.AddChild(leftGrid);
            }
        }
예제 #4
0
        protected override void BuildComponents(GdiContainer mainContainer, GdiRectangle chartContainer)
        {
            base.BuildComponents(mainContainer, chartContainer);
            var pie = new GdiPie
            {
                Diameter            = chartContainer.Size.Height,
                Entries             = Entries,
                IsDonut             = IsDonut,
                HorizontalAlignment = GdiMapper.ToGdiHorizontalAlign(this.PieAlign),
                TextColor           = TextColor,
                LabelFormat         = LabelFormat,
                Font = Font
            };

            chartContainer.AddChild(pie);
        }