private static void QueueAndLog(EventBuilder This, MouseEvent Value, string Prefix = " ") { This .Add(Value.Wait) .Add(Value.Move) .Add(Value.ButtonScroll) .Add(Value.ButtonDown) .Add(Value.ButtonUp) ; var ToShow = new List <IEvent>() { Value.Wait, Value.Move, Value.ButtonScroll, Value.ButtonDown, Value.ButtonUp, Value.ButtonClick, Value.ButtonDoubleClick, }; if (Value.DragStart != default) { ToShow.AddRange(Value.DragStart); } if (Value.DragStop != default) { ToShow.AddRange(Value.DragStop); } Show(ToShow); }
private static void QueueAndLog(EventBuilder This, KeyboardEvent Value, string Prefix = " ") { This .Add(Value.Wait) .Add(Value.KeyDown) .Add(Value.KeyUp) ; var ToShow = new List <IEvent>() { Value.Wait, Value.KeyDown, Value.KeyUp, Value.TextClick, }; Show(ToShow); }
private static void QueueAndLog(EventBuilder This, IEvent Value) { This.Add(Value); Console.WriteLine(Value); }