void MainFormLoad(object sender, EventArgs e) { string code; if (!SettingHelper.CheckGameCode(Config, out code)) { this.Error(R.ErrorGameCode); Application.Exit(); } DefTitle = R.Title + "-" + Application.ProductVersion.ToString() + " (" + Config.GameCode + ")"; this.Text = DefTitle; if (!SerivceHelper.IsRunningService(Config.SqlServer)) { Hide(); ShowServerManager(true); } else { Init(); } }