示例#1
0
        protected virtual DiagramShape CreateIcon(ImageList imglist, int imgindex)
        {
            NodeIcon icon1 = new NodeIcon();

            icon1.ImageList       = imglist;
            icon1.Index           = imgindex;
            icon1.MinimumIconSize = new SizeF(20f, 20f);
            icon1.MaximumIconSize = new SizeF(1000f, 2000f);
            icon1.Size            = icon1.MinimumIconSize;
            return(icon1);
        }
示例#2
0
 protected virtual DiagramShape CreateIcon(ResourceManager res, string iconname)
 {
     if (iconname != null)
     {
         NodeIcon icon1 = new NodeIcon();
         if (res != null)
         {
             icon1.ResourceManager = res;
         }
         icon1.Name = iconname;
         icon1.MinimumIconSize = new SizeF(20f, 20f);
         icon1.MaximumIconSize = new SizeF(100f, 200f);
         icon1.Size = icon1.MinimumIconSize;
         return icon1;
     }
     RectangleGraph rectangle1 = new RectangleGraph();
     rectangle1.Selectable = false;
     rectangle1.Size = new SizeF(20f, 20f);
     return rectangle1;
 }
示例#3
0
        protected virtual DiagramShape CreateIcon(ResourceManager res, string iconname)
        {
            if (iconname != null)
            {
                NodeIcon icon1 = new NodeIcon();
                if (res != null)
                {
                    icon1.ResourceManager = res;
                }
                icon1.Name            = iconname;
                icon1.MinimumIconSize = new SizeF(20f, 20f);
                icon1.MaximumIconSize = new SizeF(1000f, 2000f);
                icon1.Size            = icon1.MinimumIconSize;
                return(icon1);
            }
            RectangleGraph rectangle1 = new RectangleGraph();

            rectangle1.Selectable = false;
            rectangle1.Size       = new SizeF(20f, 20f);
            return(rectangle1);
        }
示例#4
0
 protected virtual DiagramShape CreateIcon(ImageList imglist, int imgindex)
 {
     NodeIcon icon1 = new NodeIcon();
     icon1.ImageList = imglist;
     icon1.Index = imgindex;
     icon1.MinimumIconSize = new SizeF(20f, 20f);
     icon1.MaximumIconSize = new SizeF(100f, 200f);
     icon1.Size = icon1.MinimumIconSize;
     return icon1;
 }