Ejemplo n.º 1
0
        public static void RemoveAction(NSObject target, EventHandler handler)
        {
            ActionDispatcher ctarget = target as ActionDispatcher;

            if (ctarget == null)
            {
                return;
            }
            ctarget.Activated -= handler;
        }
Ejemplo n.º 2
0
        public static NSObject SetupDoubleAction(NSObject target, EventHandler doubleHandler)
        {
            ActionDispatcher ctarget = target as ActionDispatcher;

            if (ctarget == null)
            {
                ctarget = new ActionDispatcher();
            }
            ctarget.DoubleActivated += doubleHandler;
            return(ctarget);
        }
Ejemplo n.º 3
0
 public static NSObject SetupDoubleAction(NSObject target, EventHandler doubleHandler)
 {
     ActionDispatcher ctarget = target as ActionDispatcher;
     if (ctarget == null){
         ctarget = new ActionDispatcher ();
     }
     ctarget.DoubleActivated += doubleHandler;
     return ctarget;
 }