private void nextChunkButton_Click(object sender, EventArgs e)
{
var difference = endFrameNumericUpDown.Value - startFrameNumericUpDown.Value;
startFrameNumericUpDown.Value = endFrameNumericUpDown.Value + 1;
if (endFrameNumericUpDown.Value + difference + 1 > totalFrameCountNumericUpDown.Value)
{
endFrameNumericUpDown.Value = totalFrameCountNumericUpDown.Value;
}
else
{
endFrameNumericUpDown.Value = startFrameNumericUpDown.Value + difference;
}
}