AODL.Document.Content.Charts.ChartImporter.CreateChartCategories C# (CSharp) Method

CreateChartCategories() private method

create the chart category
private CreateChartCategories ( XmlNode node ) : IContent
node System.Xml.XmlNode
return IContent
		private IContent CreateChartCategories(XmlNode node)
		{
			try
			{
				ChartCategories categories  = new ChartCategories (this.Chart .Document ,node);
				//categories.Node             = node;
				categories.Chart            = this.Chart ;

				ChartStyleProcessor csp     = new ChartStyleProcessor (this.Chart );
				XmlNode nodeStyle           = csp.ReadStyleNode(categories.StyleName);
				IStyle style                = csp.ReadStyle (nodeStyle,"categories");

				if (style != null)
				{
					categories.Style          =style;
					this.Chart .Styles .Add (style);
				}

				return categories;
			}

			catch(Exception ex)
			{
				throw new AODLException("Exception while creating the chart categories!", ex);
			}


		}