예제 #1
0
        public static void InvokeNotify(NotifyEventType eventType, INotifyEventArgs args)
        {
            switch (eventType)
            {
            case NotifyEventType.ConfigChanged:
                ConfigChanged? .Invoke(args as ConfigEventArgs);

                break;

            case NotifyEventType.MousePointDataBind:
                MousePositionDataBind? .Invoke(args as MousePointEventArgs);

                break;

            case NotifyEventType.ScreenCaptureDataBInd:
                ScreenCaptureDataBind? .Invoke(args as CaptureEventArgs);

                break;

            case NotifyEventType.TreeItemOrderChanged:
                TreeItemOrderChanged? .Invoke(args as EventTriggerOrderChangedEventArgs);

                break;

            case NotifyEventType.SelctTreeViewItemChanged:
                SelectTreeViewChanged? .Invoke(args as SelctTreeViewItemChangedEventArgs);

                break;

            case NotifyEventType.EventTriggerOrderChanged:
                EventTriggerOrderChanged? .Invoke(args as EventTriggerOrderChangedEventArgs);

                break;

            case NotifyEventType.EventTriggerInserted:
                EventTriggerInserted?.Invoke(args as EventTriggerEventArgs);
                break;

            case NotifyEventType.EventTriggerRemoved:
                EventTriggerRemoved?.Invoke(args as EventTriggerEventArgs);
                break;

            case NotifyEventType.Save:
                SaveEventTriggerModel?.Invoke(args as SaveEventTriggerModelArgs);
                break;

            case NotifyEventType.Delete:
                DeleteEventTriggerModel?.Invoke(args as DeleteEventTriggerModelArgs);
                break;

            case NotifyEventType.ComboProcessChanged:
                ComboProcessChanged?.Invoke(args as ComboProcessChangedEventArgs);
                break;

            case NotifyEventType.TreeGridViewFocus:
                TreeGridViewFocus?.Invoke(args as TreeGridViewFocusEventArgs);
                break;
            }
        }
예제 #2
0
 public static NotifyEvent CreateEvent(NotifyEventType type, object target = null)
 {
     return(target == null?EmptyEvents.GetOrAdd(type, key => new NotifyEvent(key)) : new NotifyEvent(type, target));
 }
예제 #3
0
 private NotifyEvent(NotifyEventType type, object target = null)
 {
     Type   = type;
     Target = target;
 }