Esempio n. 1
0
        private void AddNewWindowNode(VirtualWindow window, bool mark)
        {
            WindowNode windowNode = new WindowNode(window, true);

            Icon icon = window.GetAppIcon();

            if (icon != null)
            {
                //Console.WriteLine("icon added for: " + window.ToString());
                imageListTreeIcons.Images.Add(window.handle.ToString(), icon);
            }

            if (mark)
            {
                windowNode.MarkNew();
            }

            treeViewWindowList.Nodes.Add(windowNode);
        }
Esempio n. 2
0
 public Icon GetIcon()
 {
     return(window.GetAppIcon());
 }