using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using DevExpress.XtraEditors; namespace UI.Framework.Controls { public partial class SettingControl : DevExpress.XtraEditors.XtraUserControl { public SettingControl() { InitializeComponent(); } /// /// 绑定对象 /// /// public void Bind(Object obj, int descriptionHeight = 90) { try { this.PropertyControl.Height = this.Height - (descriptionHeight + 5); this.propertyDescriptionControl1.Height = descriptionHeight; this.PropertyControl.SelectedObject = obj; } catch (Exception) { } } /// /// 绑定对象组 /// /// public void Bind(Object[] objs) { labelControl1.Visible = true; this.PropertyControl.SelectedObjects = objs; labelControl1.Visible = false; } } }