public static void SetValueTS(this NumericUpDown x, Decimal s)
 {
     if (x.InvokeRequired)
     {
         x.Invoke(new EventHandler(delegate(object o, EventArgs a)
         {
             x.SetValueTS(s);
         }));
     }
     else
     {
         x.Value = s;
     }
 }