Esempio n. 1
0
 /// <summary>
 /// Sets the allow item reorder.
 /// </summary>
 /// <param name="control">The control.</param>
 /// <param name="value">if set to <c>true</c> [value].</param>
 public static void SetAllowItemReorder(this ToolStrip control, bool value)
 {
     if (control.InvokeRequired)
     {
         control.BeginInvoke(new MethodInvoker(() => control.SetAllowItemReorder(value)));
     }
     else
     {
         control.AllowItemReorder = value;
         control.Refresh();
     }
 }