private void openToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog browseFile = new OpenFileDialog(); browseFile.Filter = "Xenoverse Character Sound (*.cso)|*.cso"; browseFile.Title = "Browse for CSO File"; if (browseFile.ShowDialog() == DialogResult.Cancel) { return; } FileName = browseFile.FileName; Data.AddRange(CSO.Read(FileName)); cbList.Items.Clear(); for (int i = 0; i < Data.Count; i++) { cbList.Items.Add("Character " + Data[i].Char_ID.ToString("000") + " - Costume " + Data[i].Costume_ID.ToString("00")); } }
private void saveToolStripMenuItem_Click(object sender, EventArgs e) { CSO.Write(Data.ToArray(), FileName); MessageBox.Show("File has been saved!!!"); }