示例#1
0
        public static void doDoubleClick(IfacesEnumsStructsClasses.IHTMLElement e)
        {
            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);
                    rs.loadInfoFromElement(e);
                }
            }
        }
示例#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);
                }
            }
        }
示例#3
0
        public static void deleteRelation(DemoApp.frmHTMLeditor pform, IfacesEnumsStructsClasses.IHTMLElement e)
        {
            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_TEXTAREA)
            {
                controls.textArea t = new DemoApp.eq_controls.controls.textArea(ct);
                t.deletMeRelation(e, pform);
            }
            if (ct == controlTypes.CUS_CTRL_RADIO)
            {
                controls.radioSelection t = new DemoApp.eq_controls.controls.radioSelection(ct);
                t.deletMeRelation(e, pform);
            }
        }
示例#4
0
 public static void deleteRelation(DemoApp.frmHTMLeditor pform, IfacesEnumsStructsClasses.IHTMLElement e)
 {
     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_TEXTAREA)
     {
         controls.textArea t = new DemoApp.eq_controls.controls.textArea(ct);
         t.deletMeRelation(e, pform);
     }
     if (ct == controlTypes.CUS_CTRL_RADIO)
     {
         controls.radioSelection t = new DemoApp.eq_controls.controls.radioSelection(ct);
         t.deletMeRelation(e, pform);
     }
     
 }
示例#5
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);
                }
            }
        }
        public static void doDoubleClick(IfacesEnumsStructsClasses.IHTMLElement e)
        {
            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);
                    rs.loadInfoFromElement(e);
                }
            }
        }