//Convert the ChartMediaInfo to its CIM equivalent internal CIMChartMediaInfo CreateChartMediaInfo(ChartMediaInfo chart) { CIMChartMediaInfo mediaInfo = null; if (chart.ChartMediaType == ChartMediaType.Column) { mediaInfo = new CIMColumnChartMediaInfo(); } else if (chart.ChartMediaType == ChartMediaType.Bar) { mediaInfo = new CIMBarChartMediaInfo(); } else if (chart.ChartMediaType == ChartMediaType.Line) { mediaInfo = new CIMLineChartMediaInfo(); } else { mediaInfo = new CIMPieChartMediaInfo(); } mediaInfo.Title = chart.Title; mediaInfo.Caption = chart.Caption; mediaInfo.NormalizeField = chart.NormalizeFieldName; mediaInfo.Fields = chart.FieldNames.ToArray(); return(mediaInfo); }
public ChartMediaInfo(ChartMediaInfo copy) { if (this._fieldNames.Count > 0) { this._fieldNames.AddRange(copy._fieldNames); } this.Title = copy.Title; this.Caption = copy.Caption; this._normalizeFieldName = copy._normalizeFieldName; this._chartType = copy._chartType; }
public ChartMediaInfo(ChartMediaInfo copy) { if (this._fieldNames.Count > 0) this._fieldNames.AddRange(copy._fieldNames); this.Title = copy.Title; this.Caption = copy.Caption; this._normalizeFieldName = copy._normalizeFieldName; this._chartType = copy._chartType; }
//Convert the ChartMediaInfo to its CIM equivalent internal CIMChartMediaInfo CreateChartMediaInfo(ChartMediaInfo chart) { CIMChartMediaInfo mediaInfo = null; if (chart.ChartMediaType == ChartMediaType.Column) { mediaInfo = new CIMColumnChartMediaInfo(); } else if (chart.ChartMediaType == ChartMediaType.Bar) { mediaInfo = new CIMBarChartMediaInfo(); } else if (chart.ChartMediaType == ChartMediaType.Line) { mediaInfo = new CIMLineChartMediaInfo(); } else { mediaInfo = new CIMPieChartMediaInfo(); } mediaInfo.Title = chart.Title; mediaInfo.Caption = chart.Caption; mediaInfo.NormalizeField = chart.NormalizeFieldName; mediaInfo.Fields = chart.FieldNames.ToArray(); return mediaInfo; }