public jQuery AddListItem( string text , Action<jQueryEvent> clickHandler, object tag)
        {
            jQuery li = new jQuery("<li>").AddClass("list-group-item").Html(text);
            li.Click(tag, clickHandler);
            List.Append(li);

            return li;
        }
        void MakeComboBox()
        {
            jQuery dd = new jQuery("<div>").AddClass("dropdown").Attr("id","dropDown");

            dropDownButton = new jQuery("<button>").AddClass("btn btn-primary dropdown-toggle").
                Attr("id", "dropDownButton").
                Attr("type", "button").
                Attr("data-toggle", "dropdown").
                Html("Choose geometry ").AppendTo(dd);

            new jQuery("<span>").AddClass("caret").AppendTo(dropDownButton);

            jQuery ul = new jQuery("<ul>").AddClass("dropdown-menu").
                Attr("role", "menu").
                Attr("aria-labelledby", "dropDownButton").
                AppendTo(dd);

            foreach (GeometryFunction kvp in functions)
            {
                jQuery il = new jQuery("<li>").Attr("role", "presentation");

                jQuery a = new jQuery("<a>").
                    Attr("tabindex", "-1").
                    Attr("tabindex", "-1").
                    Attr("href", "#").Html(kvp.name).AppendTo(il);

                il.AppendTo(ul);

                il.Click(kvp, (Action<jQueryEvent>)this.listClick);
            }

            dd.AppendTo(Container);
        }
        private jQuery MakePanelTitle(string title, string href, string dataParent, Action<jQueryEvent> clickHandler, object panelTag)
        {
            jQuery panelHeading = new jQuery("<div>").AddClass("panel-heading");
            jQuery panelTitle = new jQuery("<h4>").AddClass("panel-title");
            jQuery panelAcoordion = new jQuery("<a>").Attr("data-toggle", "collapse").Attr("data-parent",dataParent ).Attr("href", href).Html(title);

            if (clickHandler != null)
                panelAcoordion.Click(panelTag, clickHandler);

            panelTitle.Append(panelAcoordion);
            panelHeading.Append(panelTitle);
            return panelHeading;
        }