Пример #1
0
        private void LoadSkinMenu()
        {
            SkinConfigMonitor watcher = (SkinConfigMonitor)Application["SkinWatcher"];

            Skin[] skins = watcher.CurrentScreen.Skins;

            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            string format = "<div class=\"Image-skins\"><img style=\"WIDTH: 100%; HEIGHT: 100%\" skinType=\"{1}\"  src=\"{0}\" /></div>";

            foreach (Skin s in skins)
            {
                sb.Append(string.Format(format, s.Icon, s.Name));
            }
            skinBubbleCenter.Text = sb.ToString();
        }
Пример #2
0
        public void LoadSkinMenu()
        {
            SkinConfigMonitor watcher = (SkinConfigMonitor)Application["SkinWatcher"];

            Skin[] skins = watcher.CurrentScreen.Skins;

            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            sb.Append("<iframe  frameBorder='0' style='-moz-opacity:0; -webkit-opacity:0; opacity:0;  position:absolute; visibility:inherit; top:0px; left:-15px;  height:100%;width:150px; z-index:-1;background:none' ></iframe>");
            sb.Append("<ul ID='skin_change'>");
            foreach (Skin s in skins)
            {
                sb.AppendFormat("<LI  title='{0}' name='{2}' ><A href='#'><IMG  class=taskbar_tag_img src='{1}' width=17 height=14><SPAN>{0}</SPAN></A></LI>", s.Title, s.Icon, s.Name);
            }
            sb.Append("</ul>");
            skinBubbleCenter.Text = sb.ToString();
        }