using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
namespace DrawChart
{
public partial class DrawChart : UserControl
{
#region 构造函数
public DrawChart()
{
InitializeComponent();
DrawBackGround();
}
#endregion
#region 相关属性设置
private string strTitleName = "";
/// <summary>
/// 设置直方图名称
/// </summary>
[Bindable(true), Category("基础信息属性设置"), DefaultValue(""), Description("设置直方图名称")]
public string My_TitleName
{
get { return strTitleName; }
set
{
strTitleName = value;
lblTitle.Text = strTitleName;
}
}
private int colorDesign = 0;
/// <summary>
/// 设置设计直方图背景色
/// </summary>
[Bindable(true), Category("基础信息属性设置"), DefaultValue(""), Description("设置静态设计直方图背景色")]
public int My_DesignColor
{
get { return colorDesign; }
set
{
colorDesign = value;
DrawBackGround();
}
}
private int colorActual = 0;
/// <summary>
/// 绘图颜色
/// </summary>
[Bindable(true), Category("基础信息属性设置"), DefaultValue(""), Description("设置实