private void ListGameSystems_MouseDoubleClick(object sender, MouseEventArgs e) { ListBox list = sender as ListBox; GameSystem sys = list.SelectedItem as GameSystem; ROMImageList roms = LoadROMs(sys); if (roms == null) { return; } if (roms.Count == 0) { MessageBox.Show( "There are no games to display for this system.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } Hide(); ROMSelectionForm romSelector = new ROMSelectionForm(this, roms, sys.Name); romSelector.Show(); }
public ROMNoteEditForm(ROMSelectionForm form, string gameName, string initialText) { InitializeComponent(); Text = gameName; TxtNote.Text = initialText; TxtNote.Font = form.TxtNote.Font; }
private void ShowFavorites() { if (FavoriteROMs.Count == 0) { MessageBox.Show( "There are no favorites.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } Hide(); ROMSelectionForm romSelector = new ROMSelectionForm(this, FavoriteROMs, "Favorites"); romSelector.Show(); }