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

CreateDr3dLight() private method

create the dr3d light
private CreateDr3dLight ( XmlNode node ) : IContent
node System.Xml.XmlNode
return IContent
		private IContent CreateDr3dLight(XmlNode node)
		{
			try
			{
				Dr3dLight  light               = new Dr3dLight(this.Chart .Document ,node);
				//grid.Node                    = node;
				light.Chart                    = this.Chart ;

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

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

				return light;


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