private void ReplaceDynamicObservatory(ListViewItem item, string newMapPath) { var mapNumber = item.SubItems[4].Text; switch (mapNumber) { case "1" when !File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.Observatory1): return; case "1": DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.Observatory1); break; case "2" when !File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.Observatory2): return; case "2": DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.Observatory2); break; case "3" when !File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.Observatory3): return; case "3": DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.Observatory3); break; case "4" when !File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.Observatory4): return; case "4": DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.Observatory4); break; } }
private void ReplaceBowsersCastle(string newMapPath) { if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.BowsersCastle)) { return; } DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.BowsersCastle); }
private void ReplaceGoodEggGalaxy(string newMapPath) { if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.GoodEggGalaxy)) { return; } DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.GoodEggGalaxy); }
private void ReplaceSingleColossus(string newMapPath) { if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.Colossus1)) { return; } DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.Colossus1); }
private void ReplaceAlltradesAbbey(string newMapPath) { if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.AlltradesAbbey)) { return; } DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.AlltradesAbbey); }
private void ReplaceMarioStadium(string newMapPath) { if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.MarioStadium)) { return; } DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.MarioStadium); }
private void ReplaceStarshipMario(string newMapPath) { if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.StarshipMario)) { return; } DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.StarshipMario); }
private void ReplaceDelfinoPlaza(string newMapPath) { if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.DelfinoPlaza)) { return; } DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.DelfinoPlaza); }
private void ReplaceStaticMtMagmageddon(string newMapPath) { if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.MtMag1)) { return; } DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.MtMag1); }
private void ReplaceRobbinHoodRuins(string newMapPath) { if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.RobbinHoodRuins)) { return; } DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.RobbinHoodRuins); }
private void ReplaceGhostShip(string newMapPath) { if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.GhostShip)) { return; } DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.GhostShip); }
private void ReplaceSingleObservatory(string newMapPath) { if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.Observatory1)) { return; } DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.Observatory1); }
private void ReplaceCastleTrodain(string newMapPath) { if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.CastleTrodain)) { return; } DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.CastleTrodain); }
private void ReplaceSmb(string newMapPath) { if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.SMB)) { return; } DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.SMB); }
private void ReplaceYoshisIsland(string newMapPath) { if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.YoshisIsland)) { return; } DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.YoshisIsland); }
private void ReplaceAlefgard(string newMapPath) { if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.Alefgard)) { return; } DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.Alefgard); }
private void ReplaceDynamicColossus(ListViewItem item, string newMapPath) { var mapNumber = item.SubItems[4].Text; switch (mapNumber) { case "1" when !File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.Colossus1): return; case "1": DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.Colossus1); break; case "2" when !File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.Colossus2): return; case "2": DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.Colossus2); break; } }