public void Replay(CanvasWindow window) { int itemIndex = 0; foreach (RecordingItem item in Items) { item.Replay(itemIndex++, window); } }
public override void Replay(int itemIndex, CanvasWindow window) { Bitmap img = window.CaptureImage(); if (!CheckImageEqual(img)) { throw new Exception($"Replay: Paint item {itemIndex} does not match."); } }
public override void Replay(int itemIndex, CanvasWindow window) { window.HandleMouseEvent(Id, X, Y, ClickCount); }
public override void Replay(int itemIndex, CanvasWindow window) { window.HandleKeyEvent(Id, KeyCode, KeyChar); }
public abstract void Replay(int itemIndex, CanvasWindow window);