static void isConfigReady() { Config.set_application_path(Application.StartupPath); Updater.check(false); // check for updates if (!Config.settings_upgraded()) { Config.upgrade_settings(); } if (!Config.game_path_exists()) // if AION path is not configured yet, do so { MessageBox.Show( "Please set the path for your AION installation", "Need AION path", MessageBoxButtons.OK, MessageBoxIcon.Exclamation ); frmConfig cfg = new frmConfig(); cfg.ShowDialog(); } }
private void btn_config_Click(object sender, EventArgs e) { frmConfig c = new frmConfig(); c.ShowDialog(); }