Пример #1
0
 public void BaseControl_SetVisible(DevExpress.XtraEditors.BaseControl control, bool visible)
 {
     if (control.InvokeRequired)
     {
         control.Invoke(new Action(() =>
         {
             control.Visible = visible;
         }));
     }
     else
     {
         control.Visible = visible;
     }
 }
Пример #2
0
 public void BaseControl_SetText(DevExpress.XtraEditors.BaseControl control, string text)
 {
     if (control.InvokeRequired)
     {
         control.Invoke(new Action(() =>
         {
             control.Text = text;
         }));
     }
     else
     {
         control.Text = text;
     }
 }
Пример #3
0
 public void BaseControl_SetEnabled(DevExpress.XtraEditors.BaseControl control, bool enabled)
 {
     if (control.InvokeRequired)
     {
         control.Invoke(new Action(() =>
         {
             control.Enabled = enabled;
         }));
     }
     else
     {
         control.Enabled = enabled;
     }
 }
Пример #4
0
 private void SetControlDataBinding(DevExpress.XtraEditors.BaseControl editorControl, string propertyName, object dataSource, string dataMember)
 {
     editorControl.DataBindings.Clear();
     editorControl.DataBindings.Add(propertyName, dataSource, dataMember);
 }