private void ROMOpenButton_Click(object sender, RoutedEventArgs e) { OpenFileDialog od = new OpenFileDialog { Multiselect = false, Title = Utils.GetResource("ROMOpen"), Filter = Utils.GetNDSFilter(), }; if (od.ShowDialog() == System.Windows.Forms.DialogResult.OK) { LoadedROM = ROMUtils.LoadROM(od.FileName); if (LoadedROM == null) { ShowNotification("The selected file is not a valid Nintendo DS ROM."); return; } if (!LoadedROM.IsMKDS()) { ShowNotification("The selected file is not a valid Mario Kart DS ROM."); LoadedROM = null; return; } Title = Utils.GetResource("program") + " - " + Path.GetFileName(od.FileName); ShowNotification("MKDS ROM loaded: " + Path.GetFileName(od.FileName)); ROMPath = od.FileName; AssetsCard.IsEnabled = true; KartsCard.IsEnabled = true; TexturesCard.IsEnabled = true; SoundCard.IsEnabled = true; TextsCard.IsEnabled = true; } }