private void bOpenExplorer_Click(object sender, EventArgs e) { if (Directory.Exists("mods")) { MyDirectory.OpenInFileManager("mods"); } else { bOpenExplorer.Enabled = false; } }
private void bIOEp2Visit_Click(object sender, EventArgs e) { var status = hiWrapper.GetInstallationStatus(GAME.Episode2); switch (status.Status) { case InstallationStatus.NotInstalled: return; case InstallationStatus.ImproperlyInstalled: return; } MyDirectory.OpenInFileManager(status.Location); }