日期:2011-11-26  浏览次数:20451 次

        public MyChart()
        {
            //
            // TODO: Add Constructor Logic here
            //
            m_arrItems = new ArrayList() ;
            m_strTitle = "" ;
            m_objBackColor = Color.White ;
            m_intWidth = 200 ;
            m_intHeight = 200 ;
            m_intChartType = ChartType.Pie ;
            m_strUnit = "" ;
        }

        /// <summary>
        /// 重载构造函数
        /// </summary>
        /// <param name="a_strTitle"> </param>
        /// <param name="a_objBackColor"> </param>
        /// <param name="a_intWidth"> </param>
        /// <param name="a_intHeight"> </param>
        /// <param name="a_intChartType"> </param>
        /// <param name="a_strUnit"> </param>
        public MyChart(string a_strTitle , System.Drawing.Color a_objBackColor ,
                        int a_intWidth , int a_intHeight , ChartType  a_intChartType , string a_strUnit)
        {
            m_arrItems = new ArrayList() ;
            m_strTitle = a_strTitle ;
            m_objBackColor = a_objBackColor ;
            m_intWidth = a_intWidth ;
            m_intHeight = a_intHeight ;
            m_intChartType = a_intChartType ;
            m_intTotalCount = 0 ;
            m_strUnit = a_strUnit ;
        }

        /// <summary>
        /// 添加一个新的统计图项目
        /// </summary>
        /// <param name="a_objItem"> </param>
        public void AddItem(object a_objItem)
        {
            if(a_objItem is MyClass.Util.ChartItem)
   &nb