Ejemplo n.º 1
0
        public static void add(Control ctrl, on_wheel_func on_wheel)
        {
            var filter = new wheel_filter(ctrl, on_wheel);

            Application.AddMessageFilter(filter);
            ctrl.Disposed += (s, e) => Application.RemoveMessageFilter(filter);
        }
Ejemplo n.º 2
0
 public static void add(Control ctrl, on_wheel_func on_wheel)
 {
     var filter = new wheel_filter(ctrl, on_wheel);
     Application.AddMessageFilter(filter);
     ctrl.Disposed += (s, e) => Application.RemoveMessageFilter(filter);
 }