Minor rename

This commit is contained in:
niksedk 2023-02-04 22:59:30 +01:00
parent bbc39e8d8c
commit 56a4bdd20e
2 changed files with 9 additions and 9 deletions

View File

@ -113,8 +113,8 @@ namespace Nikse.SubtitleEdit.Controls
public event ParagraphEventHandler OnDoubleClickNonParagraph;
public event EventHandler OnPause;
public event EventHandler OnZoomedChanged;
public event EventHandler InsertAtVideoPosition;
public event EventHandler PasteAtVideoPosition;
public event EventHandler OnInsertAtVideoPosition;
public event EventHandler OnPasteAtVideoPosition;
private double _wholeParagraphMinMilliseconds;
private double _wholeParagraphMaxMilliseconds = double.MaxValue;
@ -333,7 +333,7 @@ namespace Nikse.SubtitleEdit.Controls
if (_wavePeaks != null)
{
var list = new List<WavePeak>();
for (int i = 0; i < _wavePeaks.Peaks.Count; i++)
for (var i = 0; i < _wavePeaks.Peaks.Count; i++)
{
if (i % 1001 != 0)
{
@ -2199,17 +2199,17 @@ namespace Nikse.SubtitleEdit.Controls
}
else if (e.KeyData == InsertAtVideoPositionShortcut)
{
if (InsertAtVideoPosition != null)
if (OnInsertAtVideoPosition != null)
{
InsertAtVideoPosition.Invoke(this, null);
OnInsertAtVideoPosition.Invoke(this, null);
e.SuppressKeyPress = true;
}
}
else if (e.KeyCode == Keys.V && e.Modifiers == Keys.Control) //Ctrl+v = Paste from clipboard
{
if (PasteAtVideoPosition != null)
if (OnPasteAtVideoPosition != null)
{
PasteAtVideoPosition.Invoke(this, null);
OnPasteAtVideoPosition.Invoke(this, null);
e.SuppressKeyPress = true;
}
}

View File

@ -597,8 +597,8 @@ namespace Nikse.SubtitleEdit.Forms
audioVisualizer.OnPause += AudioWaveform_OnPause;
audioVisualizer.OnTimeChangedAndOffsetRest += AudioWaveform_OnTimeChangedAndOffsetRest;
audioVisualizer.OnZoomedChanged += AudioWaveform_OnZoomedChanged;
audioVisualizer.InsertAtVideoPosition += audioVisualizer_InsertAtVideoPosition;
audioVisualizer.PasteAtVideoPosition += audioVisualizer_PasteAtVideoPosition;
audioVisualizer.OnInsertAtVideoPosition += audioVisualizer_InsertAtVideoPosition;
audioVisualizer.OnPasteAtVideoPosition += audioVisualizer_PasteAtVideoPosition;
audioVisualizer.KeyDown += AudioVisualizer_KeyDown;
SetAudioVisualizerSettings();
if (Configuration.Settings.General.WaveformUpdateIntervalMs > 0 && Configuration.Settings.General.WaveformUpdateIntervalMs < 200)