private void button2_Click(object sender, EventArgs e) { string currentEntryFileName = dr.Entries[currentEntry].FileName.ToLower(); while (!currentEntryFileName.EndsWith(".frm")) { currentEntry++; currentEntryFileName = dr.Entries[currentEntry].FileName.ToLower(); } _frames = FrmConverter.FrmConverter.GetImages(dr.GetFile(dr.Entries[currentEntry])); _currentFrame = 0; currentEntry++; }
private void button1_Click(object sender, EventArgs e) { dr = new DatFile(textBox1.Text); string currentEntryFileName = dr.Entries[currentEntry].FileName.ToLower(); while (!currentEntryFileName.EndsWith(".frm")) { currentEntry++; currentEntryFileName = dr.Entries[currentEntry].FileName.ToLower(); } Frame frame = FrmConverter.FrmConverter.GetImage(dr.GetFile(dr.Entries[currentEntry])); Image image = frame.FrameImage; pBox1.Width = image.Width; pBox1.Height = image.Height; pBox1.Image = image; currentEntry++; }