Exemple #1
0
        /// <summary>
        /// Event handler for when the recording is stopped.
        /// </summary>
        private void OnStopRecording()
        {
            if (_model.IsRecording)
            {
                _model.Actions.Add($"{_service.CurrentRecordingTicks} - Recording stopped..");
                ListViewActions.ScrollIntoView(_model.Actions[_model.Actions.Count - 1]);

                // Enable each of the click-zone windows.
                _managedClickZoneViews.ForEach(v => v.EnableAndRemoveTransparency());
                _model.IsRecording = false;
            }
        }
Exemple #2
0
        /// <summary>
        /// Event handler for when the recording is started.
        /// </summary>
        private void OnStartRecording()
        {
            if (!_model.IsRecording)
            {
                _model.Actions.Add($"{_service.CurrentRecordingTicks} - Recording started..");
                ListViewActions.ScrollIntoView(_model.Actions.LastOrDefault());

                // Disable each of the click-zone windows.
                _managedClickZoneViews.ForEach(v => v.DisableAndMakeTransparent());
                _model.IsRecording = true;
            }
        }
Exemple #3
0
 /// <summary>
 /// Event handler for when a key is pressed.
 /// </summary>
 private void OnKeyDown(KeyEventArgs e)
 {
     _model.Actions.Add($"{_service.CurrentRecordingTicks} - Key Down: {e.KeyCode.Consolidate().GetKeyDescription()}");
     ListViewActions.ScrollIntoView(_model.Actions.LastOrDefault());
 }
Exemple #4
0
 /// <summary>
 /// Event handler for when the mouse wheel is scrolled.
 /// </summary>
 private void OnMouseWheel(MouseEventArgs e)
 {
     _model.Actions.Add($"{_service.CurrentRecordingTicks} - Mouse Wheel: {e.Delta}");
     ListViewActions.ScrollIntoView(_model.Actions.LastOrDefault());
 }
Exemple #5
0
 /// <summary>
 /// Event handler for when the mouse is moved
 /// </summary>
 private void OnMouseMove(MouseEventArgs e)
 {
     // Polling rate (hz) = (10000 ticks/ms) * (1000 ms/s) / (# ticks between events).
     _model.Actions.Add($"{_service.CurrentRecordingTicks} - Mouse Move: {e.Location}");
     ListViewActions.ScrollIntoView(_model.Actions.LastOrDefault());
 }