private void putGameOnLvQueue(string[] gamesPath) { Cursor.Current = Cursors.WaitCursor; WiimmsIsoTools wit = new WiimmsIsoTools(); if (gamesPath != null) { foreach (string gamePath in gamesPath) { switch (language) { case "Dutch": lvQueueWiiGames.AddRange(wit.ListGames(gamePath, "nl")); break; case "Italian": lvQueueWiiGames.AddRange(wit.ListGames(gamePath, "it")); break; case "Spanish": lvQueueWiiGames.AddRange(wit.ListGames(gamePath, "es")); break; case "French": lvQueueWiiGames.AddRange(wit.ListGames(gamePath, "fr")); break; case "German": lvQueueWiiGames.AddRange(wit.ListGames(gamePath, "de")); break; case "Japanese": lvQueueWiiGames.AddRange(wit.ListGames(gamePath, "ja")); break; default: lvQueueWiiGames.AddRange(wit.ListGames(gamePath, null)); break; } } if (lvQueueWiiGames.Count > 0) { lbQueue.Visible = true; lbQueueCount.Visible = true; lbQueueDiscard.Visible = true; lbQueueInstall.Visible = true; lbQueueProgressETA.Visible = false; lbQueueProgressGame.Visible = false; lbQueueCount.Text = lvQueueWiiGames.Count.ToString(); } Cursor.Current = Cursors.Default; } }
private void listWiiGame() { lvWiiGames.Items.Clear(); if (Directory.Exists(WiiGamePath)) { WiimmsIsoTools wit = new WiimmsIsoTools(); List<WiiGame> gameList; Cursor.Current = Cursors.WaitCursor; switch (language) { case "Dutch": gameList = wit.ListGames(WiiGamePath, "nl"); break; case "Italian": gameList = wit.ListGames(WiiGamePath, "it"); break; case "Spanish": gameList = wit.ListGames(WiiGamePath, "es"); break; case "French": gameList = wit.ListGames(WiiGamePath, "fr"); break; case "German": gameList = wit.ListGames(WiiGamePath, "de"); break; case "Japanese": gameList = wit.ListGames(WiiGamePath, "ja"); break; default: gameList = wit.ListGames(WiiGamePath, null); break; } foreach (WiiGame game in gameList) { lvWiiGames.Items.Add(new ListViewItem(new string[] { game.id, game.title, game.customTitle, "IOS " + game.iosRequired.ToString(), game.region, game.size.ToString(), game.gameType.ToString(), game.gamePath })); } } foreach (ListViewItem item in lvWiiGames.Items) { if (item.SubItems[6].Text != GameType.fst.ToString()) { item.BackColor = Color.LightPink; } else { item.BackColor = Color.LightGreen; } } lbFileCount.Text = lvWiiGames.Items.Count.ToString(); Cursor.Current = Cursors.Default; }