|
///File Name: InteractiveWindowCollection.cs
///This file include declaration of the class WindowTreeNodeDataItem , this class
///represent a Data item of a tree node, this data item represent a Window.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DesktopManager.BL;
using System.Drawing;
using DesktopManager.Tree.DataItem.Interfaces;
namespace DesktopManager.Tree.DataItem.InterfaceImpl
{
public class WindowTreeNodeDataItem : ITreeNodeDataItemDescrtiptor
{
#region IDataSourceDescrtiptor Members
private string m_Title;
public string Title
{
get { return m_Title; }
}
private string m_TreePath;
public string TreePath
{
get { return m_TreePath; }
}
private object m_Window;
public object DataItem
{
get { return m_Window; }
}
#endregion
public WindowTreeNodeDataItem(IWindow i_Window, string i_Category)
{
this.m_Title = i_Window.Title;
this.m_TreePath = i_Category;
this.m_Window = i_Window;
if (i_Window.Icon != null)
{
this.m_Image = i_Window.Icon;
this.m_ImageKey = i_Window.Title;
}
}
#region IImageRepresentable Members
private Image m_Image;
public Image Image
{
get { return this.m_Image; }
}
string m_ImageKey;
public string ImageKey
{
get { return m_ImageKey; }
}
#endregion
}
}
|
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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.