private void cropAllToolStripMenuItem_Click(object sender, EventArgs e)
{
btnUndo.Enabled = true;
btnReset.Enabled = true;
listFramesUndo.Clear();
listFramesUndo = new List <Bitmap>(listFramesPrivate);
Crop crop = new Crop(listFramesPrivate[trackBar.Value]);
if (crop.ShowDialog(this) == DialogResult.OK)
{
listFramesPrivate = ImageUtil.Crop(listFramesPrivate, crop.Rectangle);
pictureBitmap.Image = listFramesPrivate[trackBar.Value];
ResizeFormToImage();
}
crop.Dispose();
}