protected override void EnableGenericEvent(GnosisEventHandler.GnosisEventType eventType)
 {
     switch (eventType)
     {
     default:
         base.EnableGenericEvent(eventType);
         break;
     }
 }
示例#2
0
        public void HandleGenericEvent(GnosisEventHandler.GnosisEventType eventType, GnosisVisibleController controller)
        {
            var handlers = EventHandlers.Where(x => x._EventType == eventType).OrderBy(x => x.Order);

            foreach (GnosisEventHandler handler in handlers)
            {
                handler.HandleEvent(controller);
            }
        }
示例#3
0
 protected override void EnableGenericEvent(GnosisEventHandler.GnosisEventType eventType)
 {
     //switch (eventType)
     //{
     //    case GnosisEventHandler.GnosisEventType.GotFrameFocus:
     //        ((IGnosisFrameImplementation)ControlImplementation).SetGotFrameFocusHandler(new Action(GotFrameFocus));
     //        break;
     //    case GnosisEventHandler.GnosisEventType.LostFrameFocus:
     //        ((IGnosisFrameImplementation)ControlImplementation).SetLostFrameFocusHandler(new Action(LostFrameFocus));
     //        break;
     //    default:
     //        base.EnableGenericEvent(eventType);
     //        break;
     //}
 }
        protected virtual void EnableGenericEvent(GnosisEventHandler.GnosisEventType eventType)
        {
            //switch (eventType)
            //{
            //case GnosisEventHandler.GnosisEventType.Click:
            //    ControlImplementation.EnableClickEvent(new Action(OnClick));
            //    break;
            //case GnosisEventHandler.GnosisEventType.MouseOver:
            //    ControlImplementation.EnableMouseOverEvent(new Action(OnMouseOver));
            //    break;
            //case GnosisEventHandler.GnosisEventType.RightClick:
            //    ControlImplementation.EnableRightClickEvent(new Action(OnRightClick));
            //    break;

            // }
        }