Exemple #1
0
        private GoIconicNode addMapHost(uint ip, string ipStr)
        {
            GoIconicNode n = new GoIconicNode();

            n.Initialize(null, 0, ipStr);
            // labels are editable, but may be disabled by setting goView1.AllowEdit to false
            n.Editable       = true;
            n.Label.Editable = false;
            n.Label.FontSize = 8;
            n.Icon.Size      = new SizeF(16, 16);
            // port is whole icon, but linking may be disabled by setting goView1.AllowLink to false
            n.Port.Bounds = n.Icon.Bounds;
            utilMap.Add(ip, n);
            return(n);
        }