private void mnuMainExtractFrames_Click(object sender, EventArgs e)
{
if (!(sender as ToolStripMenuItem).Enabled) // Shortcut keys still work even when menu is disabled!
return;
if (!GlobalSetting.IsImageError)
{
FolderBrowserDialog f = new FolderBrowserDialog();
f.Description = GlobalSetting.LangPack.Items["frmMain._ExtractFrameText"];
f.ShowNewFolderButton = true;
DialogResult res = f.ShowDialog();
if (res == DialogResult.OK && Directory.Exists(f.SelectedPath))
{
Animation ani = new Animation();
ani.ExtractAllFrames(GlobalSetting.ImageList.GetFileName(GlobalSetting.CurrentIndex),
f.SelectedPath);
}
f = null;
}
}