示例#1
0
        internal DOMListener(DOMNode node)
        {
            if (node != null)
            {
                obj = node;

                IDOMEventListenerForFocus f = new IDOMEventListenerForFocus(node);
                f.Fired += new EventHandler(f_Fired);

                IDOMEventListenerForClicks c = new IDOMEventListenerForClicks(node);
                c.Fired += new EventHandler(c_Fired);

                IDOMEventListenerForkeydown kd = new IDOMEventListenerForkeydown(node);
                kd.Fired += new EventHandler(kd_Fired);

                IDOMEventListenerForkeyup ku = new IDOMEventListenerForkeyup(node);
                ku.Fired += new EventHandler(ku_Fired);

                IDOMEventListenerFormouseover mo = new IDOMEventListenerFormouseover(node);
                mo.Fired += new EventHandler(mo_Fired);

                IDOMEventListenerFormousedown md = new IDOMEventListenerFormousedown(node);
                md.Fired += new EventHandler(md_Fired);

                IDOMEventListenerFormouseup mu = new IDOMEventListenerFormouseup(node);
                mu.Fired += new EventHandler(mu_Fired);
                todispose.AddRange(new Object[] { mu, md, mo, ku, kd, c, f });
            }
        }
示例#2
0
        internal DOMListener(DOMNode node)
        {
            if (node != null)
            {
                obj = node;

                IDOMEventListenerForFocus f = new IDOMEventListenerForFocus(node);
                f.Fired += new EventHandler(f_Fired);

                IDOMEventListenerForClicks c = new IDOMEventListenerForClicks(node);
                c.Fired += new EventHandler(c_Fired);

                IDOMEventListenerForkeydown kd = new IDOMEventListenerForkeydown(node);
                kd.Fired += new EventHandler(kd_Fired);

                IDOMEventListenerForkeyup ku = new IDOMEventListenerForkeyup(node);
                ku.Fired += new EventHandler(ku_Fired);

                IDOMEventListenerFormouseover mo = new IDOMEventListenerFormouseover(node);
                mo.Fired += new EventHandler(mo_Fired);

                IDOMEventListenerFormousedown md = new IDOMEventListenerFormousedown(node);
                md.Fired += new EventHandler(md_Fired);

                IDOMEventListenerFormouseup mu = new IDOMEventListenerFormouseup(node);
                mu.Fired += new EventHandler(mu_Fired);
                todispose.AddRange(new Object[] { mu, md, mo, ku, kd, c, f });
            }
        }