private void SaveData() { string _descript = (this.TE_DES.EditValue == null) ? "" : this.TE_DES.EditValue.ToString().Trim(); string _display = (this.TE_DISPLAY.EditValue == null) ? "" : this.TE_DISPLAY.EditValue.ToString().Trim(); if (_display == "") { XtraMessageBox.Show("显示名称不能为空!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } using (MetaDataServiceClient _mdc = new MetaDataServiceClient()) { if (_mdc.SaveQueryModel_UserDefine(QueryModel.QueryModelID, _display, _descript)) { QueryModel.Description = _descript; QueryModel.DisplayTitle = _display; this._haveChange = false; RaiseMenuChanged(); } } }