private void openToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog fd = new OpenFileDialog(); fd.Filter = "All Prototype PSB Scripts|*.psb"; if (fd.ShowDialog() != DialogResult.OK) { return; } Editor = new PSB(System.IO.File.ReadAllBytes(fd.FileName)); listBox1.Items.Clear(); foreach (string str in Editor.Import()) { listBox1.Items.Add(str); } }