public void Load(string fileName) { this.ChartLegendDescription.InitDefault(); Type [] extraTypes = this.GetExtraTypes(); StreamReader objStreamReader = new StreamReader(fileName); XmlSerializer x2 = new XmlSerializer(this.ChartLegendDescription.GetType(), extraTypes); this.ChartLegendDescription = (ChartLegendDescription)x2.Deserialize(objStreamReader); objStreamReader.Close(); }
private void InitDefault() { m_ChartLegendDescription = new ChartLegendDescription(); m_ChartLegendDescription.InitDefault(); }
private void InitDefault () { m_ChartLegendDescription = new ChartLegendDescription (); m_ChartLegendDescription.InitDefault (); }
public void Load (string fileName) { this.ChartLegendDescription.InitDefault (); Type [] extraTypes= this.GetExtraTypes (); StreamReader objStreamReader = new StreamReader(fileName); XmlSerializer x2 = new XmlSerializer(this.ChartLegendDescription.GetType (), extraTypes); this.ChartLegendDescription = (ChartLegendDescription)x2.Deserialize(objStreamReader); objStreamReader.Close(); }