private void BindingCB() { string sqlQuery = string.Format("select IsEncryption from sdk_gameInfo where gameid={0}", gameId); bool isEncryption = aideNativeWebFacade.GetObjectBySql(sqlQuery).ToString() == "1" ? true : false; this.CheckBoxIsEncryption.Text = " Unity加密"; if (isEncryption) { this.CheckBoxIsEncryption.Visible = true; this.CheckBoxIsEncryption.Checked = true; } else { this.CheckBoxIsEncryption.Visible = false; this.CheckBoxIsEncryption.Checked = false; } }
public string ValidatePlatformID(int id) { string strSql = string.Format("select platformdisplayname from server_platform where platformid={0}", id); var val = aideNativeWebFacade.GetObjectBySql(strSql) ?? ""; if (string.IsNullOrEmpty(val.ToString())) { return("{success:'success',msg:''}"); } return("{success:'error',msg:'抱歉,当前id已存在(" + val + ")'}"); }