示例#1
0
 private void bOpenExplorer_Click(object sender, EventArgs e)
 {
     if (Directory.Exists("mods"))
     {
         MyDirectory.OpenInFileManager("mods");
     }
     else
     {
         bOpenExplorer.Enabled = false;
     }
 }
示例#2
0
        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);
        }