Modernization Fixes & Updates to Default Values (#3)
This commit is contained in:
parent
445eddff68
commit
dcf64091b1
768 changed files with 10507 additions and 14196 deletions
|
|
@ -1,5 +1,5 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Drawing2D;
|
||||
|
||||
|
|
@ -20,7 +20,7 @@ namespace Server.Engines.Reports
|
|||
private const int _bufferSpace = 125;
|
||||
private Color _backgroundColor;
|
||||
private Color _borderColor;
|
||||
private ArrayList _chartItems;
|
||||
private List<DataItem> _chartItems;
|
||||
private int _legendFontHeight;
|
||||
private float _legendFontSize;
|
||||
private string _legendFontStyle;
|
||||
|
|
@ -29,19 +29,13 @@ namespace Server.Engines.Reports
|
|||
private int _perimeter;
|
||||
private float _total;
|
||||
|
||||
public PieChartRenderer()
|
||||
public PieChartRenderer() : this(Color.White)
|
||||
{
|
||||
_chartItems = new ArrayList();
|
||||
_perimeter = 250;
|
||||
_backgroundColor = Color.White;
|
||||
_borderColor = Color.FromArgb(63, 63, 63);
|
||||
_legendFontSize = 8;
|
||||
_legendFontStyle = "Verdana";
|
||||
}
|
||||
|
||||
public PieChartRenderer(Color bgColor)
|
||||
{
|
||||
_chartItems = new ArrayList();
|
||||
_chartItems = new List<DataItem>();
|
||||
_perimeter = 250;
|
||||
_backgroundColor = bgColor;
|
||||
_borderColor = Color.FromArgb(63, 63, 63);
|
||||
|
|
@ -118,7 +112,7 @@ namespace Server.Engines.Reports
|
|||
//Draw all wedges and legends
|
||||
for (int i = 0; i < _chartItems.Count; i++)
|
||||
{
|
||||
DataItem item = (DataItem)_chartItems[i];
|
||||
DataItem item = _chartItems[i];
|
||||
SolidBrush brs = null;
|
||||
try
|
||||
{
|
||||
|
|
@ -188,7 +182,7 @@ namespace Server.Engines.Reports
|
|||
|
||||
for (int i = 0; i < _chartItems.Count; i++)
|
||||
{
|
||||
DataItem item = (DataItem)_chartItems[i];
|
||||
DataItem item = _chartItems[i];
|
||||
try
|
||||
{
|
||||
grp.DrawPie(new Pen(_borderColor, 0.5f), pieRect, item.StartPos, item.SweepSize);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue