|
using System;
using TreeView.Framework.Interface;
using TreeView.Objects;
namespace TreeView.Objects.Renderer
{
/// <summary>
/// Summary description for CompanyRenderer.
/// </summary>
public class SectionRenderer : IRenderer
{
private Section _Section;
int IRenderer.GetID( string ID )
{
return 0;
}
void IRenderer.Set( object obj )
{
_Section = ( Section )obj;
}
string IRenderer.Text
{
get
{
return _Section.Name;
}
}
string IRenderer.ID
{
get
{
return _Section.ID.ToString();
}
}
string IRenderer.GetObjectType
{
get
{
return _Section.GetType().Name;
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Passionate about cutting edge technologies and a .net enthusiast. I have played roles in variety of products starting from University automation to web 2.0 start-page (www.pageflakes.com).
Currently, working at Telerik Inc (www.telerik.com), the premium rad control provider for asp.net and winforms. I am a active contributor and member at www.dotnetslackers.com. In addition, i do a frequent post on my blog about LINQ, C#, Asp.net and about my projects.
I am Microsoft MVP. I love to travel and meet cool people.