Example #1
0
        public MouseEvent(Wait Wait, MouseMove Move, ButtonScroll ButtonScroll, ButtonDown ButtonDown, ButtonUp ButtonUp, ButtonClick ButtonClick, ButtonClickHold ButtonClickHold, ButtonDoubleClick ButtonDoubleClick, IReadOnlyCollection <DragStart> DragStarted, IReadOnlyCollection <DragDrop> DragFinished)
        {
            this.Wait              = Wait;
            this.Move              = Move;
            this.ButtonScroll      = ButtonScroll;
            this.ButtonDown        = ButtonDown;
            this.ButtonUp          = ButtonUp;
            this.ButtonClick       = ButtonClick;
            this.ButtonClickHold   = ButtonClickHold;
            this.ButtonDoubleClick = ButtonDoubleClick;

            this.DragStart = DragStarted;
            this.DragStop  = DragFinished;

            {
                var PotentialEvents = new List <IEvent>();
                PotentialEvents.Add(Wait);
                PotentialEvents.Add(Move);
                PotentialEvents.Add(ButtonScroll);
                PotentialEvents.Add(ButtonDown);
                PotentialEvents.Add(ButtonUp);
                PotentialEvents.Add(ButtonClick);
                PotentialEvents.Add(ButtonClickHold);
                PotentialEvents.Add(ButtonDoubleClick);
                if (DragStart is { })
 protected EventSourceEventArgs InvokeEvent(EventSourceEventArgs args, ButtonClickHold Data, object RawData, DateTimeOffset Timestamp) => InvokeEvent(args, ButtonClickHold, Data, RawData, Timestamp);