private void Menu_Replace_VH() { byte[] data = FileUtil.OpenFile(FileFilters.VH, FileFilters.Any); if (data != null) { vh = VH.Load(data); oldmusicentrycontroller.OldMusicEntry.VH = vh; } }
private void Menu_Import_SEQ() { byte[] data = FileUtil.OpenFile(FileFilters.SEQ, FileFilters.Any); if (data != null) { SEQ seq = SEQ.Load(data); oldmusicentry.SEP.SEQs.Add(seq); AddNode(new OldSEQController(this, seq)); } }
private void Menu_Replace_SEQ() { int i = oldmusicentrycontroller.OldMusicEntry.SEP.SEQs.IndexOf(seq); byte[] data = FileUtil.OpenFile(FileFilters.SEQ, FileFilters.Any); if (data != null) { seq = SEQ.Load(data); oldmusicentrycontroller.OldMusicEntry.SEP.SEQs[i] = seq; } }
private void Menu_Replace_Item() { int i = mysteryentrycontroller.MysteryEntry.Items.IndexOf(item); byte[] data = FileUtil.OpenFile(FileFilters.Any); if (data != null) { item = data; mysteryentrycontroller.MysteryEntry.Items[i] = data; InvalidateEditor(); } }
private void Menu_Import_VH() { if (musicentry.VH != null) { throw new GUIException("This music entry already contains a VH file."); } byte[] data = FileUtil.OpenFile(FileFilters.VH, FileFilters.VAB, FileFilters.Any); if (data != null) { VH vh = VH.Load(data); musicentry.VH = vh; InsertNode(0, new VHController(this, vh)); } }