private void AutoCommand_Click(object sender, RoutedEventArgs e)
        {
            int si, sx, sy, ti, tx, ty;

            SearchCommand(out si, out sx, out sy, out ti, out tx, out ty);
            Test.Text = string.Empty;
            Test.Text = si.ToString() + "," + sx.ToString() + "," + sy.ToString() + ":" + ti.ToString() + "," + tx.ToString() + "," + ty.ToString();
            if (!SearchRailAndCar())
            {
                return;
            }
            myCar.CarAnimation(carPathGeometry);
            myCar.executeAnimation.Begin(myCar, true);
            myCar.InnerBorderBC = "Green";
            //Thread tr = new Thread(CompareNumber(x,y);
        }