public static Decimal GetValueTS(this NumericUpDown x)
 {
     if (x.InvokeRequired)
     {
         Decimal m_ret = 0;
         x.Invoke(new EventHandler(delegate(object o, EventArgs a)
         {
             m_ret = x.GetValueTS();
         }));
         return(m_ret);
     }
     else
     {
         return(x.Value);
     }
 }