예제 #1
0
 public static DomUIEventArgs Create(nsIDOMUIEvent ev)
 {
     if (ev is nsIDOMMouseEvent)
     {
         return(DomMouseEventArgs.Create((nsIDOMMouseEvent)ev));
     }
     return(new DomUIEventArgs(ev));
 }
예제 #2
0
        public static DomUIEventArgs Create(nsIDOMUIEvent ev)
        {
            if (ev is nsIDOMMouseEvent)
            {
                return(DomMouseEventArgs.Create((nsIDOMMouseEvent)ev));
            }
#if PORTFF60
            else if (ev is nsIDOMKeyEvent)
            {
                return(DomKeyEventArgs.Create((nsIDOMKeyEvent)ev));
            }
#endif

            return(new DomUIEventArgs(ev));
        }