private void TimerTask(object StateObj)
{
TimeObject State = (TimeObject)StateObj;
Interlocked.Increment(ref State.count);
//exec
Program.CommandsExec();
if (!State.enable)
{
State.timer.Dispose();
//Console.WriteLine("Done " + DateTime.Now.ToString());
}
}