public void Save() { //有错误,不保存 _errors.ToString(); this._errors.ToString(); //如果页面有错误内容,不能保存,提示错误. if (this.HasErrors) { string msg = ""; foreach (KeyValuePair <string, string> kv in _errors) { msg += "key=" + kv.Key + ", value=" + kv.Value + "\n"; } MessageBox.Show(msg); return; } DBService.Get(WebClientInfo.BaseAddress).Invoke(this, SaveToJson); }
public void SaveModified() { DBService.Get(WebClientInfo.BaseAddress).Invoke(this, SaveModifiedToJson); }
public void Delete() { DBService.Get(WebClientInfo.BaseAddress).Invoke(this, DeleteToJson); }