Ext.Net.Desktop.Render C# (CSharp) Method

Render() private method

private Render ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter
return void
        protected override void Render(HtmlTextWriter writer)
        {
            this.SimpleRender(writer);
            
            writer.Write("<div id=\"x-desktop\">");

            if (this.Shortcuts.Count>0)
            {
                writer.Write("<dl id=\"x-shortcuts\">");
            }

            foreach (DesktopShortcut shortcut in this.Shortcuts)
            {
                if (shortcut.ModuleID.IsEmpty() && shortcut.ShortcutID.IsEmpty())
                {
                    throw new ArgumentNullException("Shortcut", "You must specify ModuleID or ShortcutID for shortcut");
                }

                string sUrl = this.ResourceManager.GetWebResourceUrl("Ext.Net.Build.Ext.Net.extjs.resources.images.default.s.gif");

                writer.Write("<dt id=\"");
                writer.Write(shortcut.ModuleID.IsEmpty() ? shortcut.ShortcutID : shortcut.ModuleID);
                writer.Write("-shortcut\"");

                if (shortcut.ShortcutID.IsNotEmpty())
                {
                    writer.Write(" ext:custom=\"true\"");
                }

                if (shortcut.X.IsNotEmpty() && shortcut.Y.IsNotEmpty())
                {
                    writer.Write(" ext:X=\"");
                    writer.Write(shortcut.X);
                    writer.Write("\"");

                    writer.Write(" ext:Y=\"");
                    writer.Write(shortcut.Y);
                    writer.Write("\"");
                }

                writer.Write(">");
                writer.Write("<a href=\"#\"><img src=\"");
                writer.Write(sUrl);
                writer.Write("\"");

                if (shortcut.IconCls.IsNotEmpty())
                {
                    writer.Write(" class=\"");
                    writer.Write(shortcut.IconCls);
                    writer.Write("\"");
                }
                
                writer.Write("/><div class=\"x-shortcut-text\">");
                writer.Write(shortcut.Text);
                writer.Write("</div></a></dt>");
            }

            if (this.Shortcuts.Count > 0)
            {
                writer.Write("</dl>");
            }

            foreach (Control control in this.Controls)
            {
                control.RenderControl(writer);
            }

            writer.Write("</div>");
            writer.Write("<div id=\"ux-taskbar\"><div id=\"ux-taskbar-start\"></div><div id=\"ux-taskbuttons-panel\"></div><div class=\"x-clear\"></div></div>");
        }