Esempio n. 1
0
        /// <summary>
        /// 设置皮肤的图层显示
        /// </summary>
        /// <param name="skin"></param>
        private void setSkinLayer(ComSkin skin)
        {
            lbLayer.Text = "";

            foreach (ComLayer layer in skin.SkinLayer)
            {
                lbLayer.Text += (SkinNodeName.getNameByType((int)layer.Layer) + Environment.NewLine);
            }
        }
 /// <summary>
 /// 创建节点事件参数类
 /// </summary>
 /// <param name="type"></param>
 /// <param name="name"></param>
 /// <param name="skin"></param>
 public CreatNodeEventArgs(int type,string name,ComSkin skin)
 {
     Type = type;
     NodeName = name;
     Skin = skin;
 }
Esempio n. 3
0
 /// <summary>
 /// 创建节点
 /// </summary>
 /// <param name="skin"></param>
 /// <param name="nodeName"></param>
 private void creatNode(ComSkin skin,string nodeName)
 {
     XmlNode newNode = xmlDoc.CreateNode("element", nodeName, null);
     foreach (ComLayer layer in skin.SkinLayer)
     {
         if (layer.LayerType == LayerType.name)
         {
             creatSubNode(newNode, SkinNodeName.getNameByType((int)layer.Layer), "", 0, 0, 0, 0);
         }
         else
         {
             creatSubNodeLink(newNode, SkinNodeName.getNameByType((int)layer.Layer), "");
         }
     }
     root.AppendChild(newNode);
 }