void BindContent() { Configure_Service.GetValue("About", c => { EConfigure config = c.GetData() as EConfigure; Content.text = config.Value; }); }
void BindData() { Configure_Service.GetValue("IsSendNotic", c => { EConfigure config = c.GetData() as EConfigure; BtnIsSendNotic.isOn = bool.Parse(config.Value); }); }
public MyResult GetValue(string par0) { EConfigure obj = DBBase.Query <EConfigure>("`Key`='" + par0 + "'").FirstOrDefault(); if (obj == null) { return(ServiceErrorResult("未找到数据")); } else { return(ServiceResult(obj)); } }
void OnBtnIsSendNoticClicked(GameObject g) { Configure_Service.GetValue("IsSendNotic", c => { EConfigure config = c.GetData() as EConfigure; if (BtnIsSendNotic.isOn) { config.Value = "True"; } else { config.Value = "False"; } BaseOperation_Service.Change <EConfigure>(config, t => { App.Instance.HintBox.Show("设置成功!"); }); }); }