private void SaveData() { this.CurrentRight.RightName = this.te_value.EditValue.ToString(); this.CurrentRight.RightTitle = this.te_title.EditValue.ToString(); this.CurrentRight.DisplayOrder = int.Parse(this.te_order.EditValue.ToString()); using (MetaDataServiceClient _mdc = new MetaDataServiceClient()) { if (_mdc.SaveQueryModelExRight(this.CurrentRight)) { XtraMessageBox.Show("保存成功!"); _haveChange = false; this.RaiseMenuChanged(); } } }