Click here to Skip to main content
15,893,564 members
Articles / Programming Languages / C#

Desktop Manager Application

Rate me:
Please Sign up or sign in to vote.
4.18/5 (7 votes)
23 May 2010CPOL3 min read 27K   1.2K   23  
Manage your desktop mess and create a virtual desktop
///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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Israel Israel
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions