public Motor()
{
InitializeComponent();
this.timer = new System.Threading.Timer(new System.Threading.TimerCallback(timer_Tick), null,
System.Threading.Timeout.Infinite, System.Threading.Timeout.Infinite);
CurrentPosition = 0;
this.motorFailed = false;
}