public void DataNew() { Ghost = new GhostData(this); Ghost.Frames.Add(new GhostFrame { Data = Ghost, HasInput = true }); RefreshView(); }
public void DataOpen() { OpenFileDialog dialog = new OpenFileDialog { Filters = { new FileDialogFilter("Everest Ghost Mod File (*.oshiro)", ".oshiro") } }; DialogResult result = dialog.ShowDialog(this); if (result != DialogResult.Ok) { return; } GhostData data = new GhostData(this, dialog.FileName).Read(); if (data == null) { MessageBox.Show(this, "The selected .oshiro file is not compatible with Omoshiro.", "Unsupported / invalid .oshiro", MessageBoxType.Error); return; } Ghost = data; RefreshView(); }