private void CheckEnvironment() { if (Directory.Exists(Config.HglDir) == false) { String caption = "Installation"; String message = "Before the Hellgate: Revival Launcher can be used, you must configure the paths.\nPress okay to continue."; DialogResult result = MessageBox.Show(message, caption, MessageBoxButtons.OKCancel, MessageBoxIcon.Information); if (result == DialogResult.Cancel) return; OptionsForm optionsForm = new OptionsForm(); optionsForm.ShowDialog(this); } if (File.Exists(Config.GameClientPath) == false) { Config.GameClientPath = Path.Combine(Config.HglDir, @"SP_x86\hellgate_sp_dx9_x86.exe"); } if (File.Exists(Config.GameClientPath) == false) { Config.GameClientPath = Path.Combine(Config.HglDir, @"SP_x64\hellgate_sp_dx9_x64.exe"); } }
private void optionsToolStripMenuItem_Click(object sender, EventArgs e) { OptionsForm optionsForm = new OptionsForm(); optionsForm.ShowDialog(this); }