private void mnuMain_Opening(object sender, CancelEventArgs e)
{
try
{
mnuMainExtractFrames.Enabled = false;
mnuMainStartStopAnimating.Enabled = false;
Image img = GlobalSetting.ImageList.GetImage(GlobalSetting.CurrentIndex);
FrameDimension dim = new FrameDimension(img.FrameDimensionsList[0]);
int frameCount = img.GetFrameCount(dim);
mnuMainExtractFrames.Text = string.Format(GlobalSetting.LangPack.Items["frmMain.mnuMainExtractFrames"], frameCount);
if (frameCount > 1)
{
mnuMainExtractFrames.Enabled = true;
mnuMainStartStopAnimating.Enabled = true;
}
}
catch { }
}