Пример #1
0
        public void Replay(CanvasWindow window)
        {
            int itemIndex = 0;

            foreach (RecordingItem item in Items)
            {
                item.Replay(itemIndex++, window);
            }
        }
Пример #2
0
        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.");
            }
        }
Пример #3
0
 public override void Replay(int itemIndex, CanvasWindow window)
 {
     window.HandleMouseEvent(Id, X, Y, ClickCount);
 }
Пример #4
0
 public override void Replay(int itemIndex, CanvasWindow window)
 {
     window.HandleKeyEvent(Id, KeyCode, KeyChar);
 }
Пример #5
0
 public abstract void Replay(int itemIndex, CanvasWindow window);