예제 #1
0
        void HandleBars(XmlNode barnode)
        {
            string           docking = GetStrParam(barnode, "dock", "n").ToLower();
            int              w       = GetIntParam(barnode, "width", 100);
            string           name    = GetStrParam(barnode, "name", null);
            List <DecorItem> dlist   = GetListFromLevel(barnode);
            DecorItem        dcr     = null;

            if (GetStrParam(barnode, "color", null) == null)
            {
                Color coltl = GetColorParam(barnode, "tlcolor", Color.White);
                Color coltr = GetColorParam(barnode, "trcolor", Color.White);
                Color colbl = GetColorParam(barnode, "blcolor", Color.White);
                Color colbr = GetColorParam(barnode, "brcolor", Color.White);
                dcr = new DecorBar(docking, w, coltl, coltr, colbl, colbr);
            }
            else
            {
                Color col = GetColorParam(barnode, "color", Color.White);
                dcr = new DecorBar(docking, w, col);
            }
            dlist.Add(dcr);
            if (name != null)
            {
                dcr.name         = name;
                DecorItems[name] = dcr;
            }
        }
예제 #2
0
        void HandleBars(XmlNode barnode)
        {
            string docking = GetStrParam(barnode, "dock", "n").ToLower();
            int w = GetIntParam(barnode, "width", 100);
            string name = GetStrParam(barnode, "name", null);
            List<DecorItem> dlist = GetListFromLevel(barnode);
            DecorItem dcr = null;
            if (GetStrParam(barnode, "color", null) == null)
            {
                Color coltl = GetColorParam(barnode, "tlcolor", Color.White);
                Color coltr = GetColorParam(barnode, "trcolor", Color.White);
                Color colbl = GetColorParam(barnode, "blcolor", Color.White);
                Color colbr = GetColorParam(barnode, "brcolor", Color.White);
                dcr = new DecorBar(docking, w, coltl, coltr, colbl, colbr);
            }
            else
            {
                Color col = GetColorParam(barnode, "color", Color.White);
                dcr = new DecorBar(docking, w, col);
            }
            dlist.Add(dcr);
            if (name != null)
            {
                dcr.name = name;
                DecorItems[name] = dcr;
            }

        }