Example #1
0
        private void saveToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SaveFileDialog fd = new SaveFileDialog();

            fd.Filter = "All Prototype PSB Scripts|*.psb";
            if (fd.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            string[] Strings = listBox1.Items.Cast <string>().ToArray();

            byte[] Output = Editor.Export(Strings);
            System.IO.File.WriteAllBytes(fd.FileName, Output);

            MessageBox.Show("Saved");
        }