コード例 #1
0
        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();
        }
コード例 #2
0
 public ROMNoteEditForm(ROMSelectionForm form, string gameName, string initialText)
 {
     InitializeComponent();
     Text         = gameName;
     TxtNote.Text = initialText;
     TxtNote.Font = form.TxtNote.Font;
 }
コード例 #3
0
        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();
        }