コード例 #1
0
ファイル: Theme.cs プロジェクト: SDRC-India/sdrcdevinfo
        public Theme(string indicator, string id, decimal min, decimal max, int decimalPoint, DataView presentationData, Color[] legendColor, Themes themes, int themeIndex, bool isFreequenctTableTheme)
        {
            this._Indicator = indicator;
            this._IndicatorNId = id;
            string FormatString = this.FormatNumber(decimalPoint);
            this._Minimum = Convert.ToDecimal(min.ToString(FormatString));
            this._Maximum = Convert.ToDecimal(max.ToString(FormatString));
            this._Decimal = decimalPoint;
            this.LegendColor = legendColor;
            this.PresentationData = presentationData;
            this.ThemeIndex = themeIndex;
            this._IsFreequenctTableTheme = isFreequenctTableTheme;

            if (this.Themes == null)
            {
                this.Themes = new Themes();
            }
            this.Themes = themes;

            if (isFreequenctTableTheme)
            {
                this._BreakType = BreakTypes.EqualSize;

                // -- set the default legends for frequency table
                this.EqualSize(this.PresentationData);
            }
            else
            {
                // -- set the default legends
                this.EqualCount(this.PresentationData);
            }
        }
コード例 #2
0
ファイル: Themes.cs プロジェクト: SDRC-India/sdrcdevinfo
 internal void IntializeTheme(DataView presentationData, Themes themes,int themeIndex)
 {
     this[themeIndex].PresentationData = presentationData;
     this[themeIndex].Themes = themes;
 }