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