public override void OnKeyDown(PortableKeyEventArgs e)
 {
     if (e.Control)
     {
         MyMouseHandlerService mouseHandler = (MyMouseHandlerService)provider.GetService(typeof(IMouseHandlerService));
         if (mouseHandler != null)
         {
             mouseHandler.myZoomEnabled = !mouseHandler.myZoomEnabled;
         }
     }
     base.OnKeyDown(e);
 }
        private void Form1_Load(object sender, EventArgs e)
        {
            IMouseHandlerService oldMouseHandler = (IMouseHandlerService)schedulerControl1.GetService(typeof(IMouseHandlerService));

            if (oldMouseHandler != null)
            {
                MyMouseHandlerService newMouseHandler = new MyMouseHandlerService(schedulerControl1, oldMouseHandler);
                schedulerControl1.RemoveService(typeof(IMouseHandlerService));
                schedulerControl1.AddService(typeof(IMouseHandlerService), newMouseHandler);
            }

            IKeyboardHandlerService oldKeyboardHandler = (IKeyboardHandlerService)schedulerControl1.GetService(typeof(IKeyboardHandlerService));

            if (oldKeyboardHandler != null)
            {
                MyKeyboardHandlerService newKeyboardHandler = new MyKeyboardHandlerService(schedulerControl1, oldKeyboardHandler);
                schedulerControl1.RemoveService(typeof(IKeyboardHandlerService));
                schedulerControl1.AddService(typeof(IKeyboardHandlerService), newKeyboardHandler);
            }

            CustomizeScheduler();
        }