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