Example #1
0
        public static void doDoubleClick(IfacesEnumsStructsClasses.IHTMLElement e, DemoApp.frmHTMLeditor pform)
        {
            if (e == null)
            {
                return;
            }

            if (e.getAttribute("cType", 1).ToString().Equals("eq_ctrl"))
            {
                string dlk = e.getAttribute("dblink", 1).ToString();
                if (e.getAttribute("dblink", 1) == null)
                {
                    return;
                }
                // (markElement.markStateDef)Enum.Parse(typeof(markElement.markStateDef), (string)(dr["state"]));
                controlTypes ct = (controlTypes)Enum.Parse(typeof(controlTypes), dlk);
                if (ct == controlTypes.CUS_CTRL_RADIO)
                {
                    controls.radioSelection rs = new DemoApp.eq_controls.controls.radioSelection(ct);
                    IfacesEnumsStructsClasses.IHTMLElement newe = rs.loadInfoFromElement(e);
                    //  if (newe != null)
                    //      pform.addControl(newe);
                }
                if (ct == controlTypes.CUS_CTRL_EFRAME)
                {
                    pform.iframeLoadCount = 1;

                    controls.eframe rs = new DemoApp.eq_controls.controls.eframe(ct);
                    rs.loadInfoFromElement(e);
                    return;
                }
                if (ct == controlTypes.CUS_CTRL_SUBMIT)
                {
                    controls.submit s = new DemoApp.eq_controls.controls.submit(ct);
                    s.pform = pform;

                    s.loadInfoFromElement(e);
                }
            }
        }
Example #2
0
        public static void doDoubleClick(IfacesEnumsStructsClasses.IHTMLElement e , DemoApp.frmHTMLeditor pform)
        {
            if (e == null)
                return;

            if (e.getAttribute("cType", 1).ToString().Equals("eq_ctrl"))
            {
                string dlk = e.getAttribute("dblink", 1).ToString();
                if (e.getAttribute("dblink", 1) == null)
                    return;
                // (markElement.markStateDef)Enum.Parse(typeof(markElement.markStateDef), (string)(dr["state"]));
                controlTypes ct = (controlTypes)Enum.Parse(typeof(controlTypes), dlk);
                if (ct == controlTypes.CUS_CTRL_RADIO)  
                {
                    controls.radioSelection rs = new DemoApp.eq_controls.controls.radioSelection(ct);
                    IfacesEnumsStructsClasses.IHTMLElement newe = rs.loadInfoFromElement(e);
                  //  if (newe != null)
                  //      pform.addControl(newe);

                }
                if (ct == controlTypes.CUS_CTRL_EFRAME)
                {


                    pform.iframeLoadCount = 1;
                   
                    controls.eframe rs = new DemoApp.eq_controls.controls.eframe(ct);
                    rs.loadInfoFromElement(e);
                    return;
                }
                if (ct == controlTypes.CUS_CTRL_SUBMIT)
                {
                    controls.submit s = new DemoApp.eq_controls.controls.submit(ct);
                    s.pform = pform;

                    s.loadInfoFromElement(e);
                }
            }
        }