public void BaseControl_SetVisible(DevExpress.XtraEditors.BaseControl control, bool visible) { if (control.InvokeRequired) { control.Invoke(new Action(() => { control.Visible = visible; })); } else { control.Visible = visible; } }
public void BaseControl_SetText(DevExpress.XtraEditors.BaseControl control, string text) { if (control.InvokeRequired) { control.Invoke(new Action(() => { control.Text = text; })); } else { control.Text = text; } }
public void BaseControl_SetEnabled(DevExpress.XtraEditors.BaseControl control, bool enabled) { if (control.InvokeRequired) { control.Invoke(new Action(() => { control.Enabled = enabled; })); } else { control.Enabled = enabled; } }
private void SetControlDataBinding(DevExpress.XtraEditors.BaseControl editorControl, string propertyName, object dataSource, string dataMember) { editorControl.DataBindings.Clear(); editorControl.DataBindings.Add(propertyName, dataSource, dataMember); }