protected virtual void OnActionRecorded(MouseEvent e) { var handler = ActionRecorded; if (handler != null) { handler(this, e); } }
private void MouseRecorder_ActionRecorded(object sender, MouseEvent e) { AddEvent(e); LogWindowInfo(); OnLogAction(string.Format("Mouse Click: X: {0} Y: {1} Count: {2} Button: {3}", e.X, e.Y, e.Count, e.Button)); }