private void CheckTrack404(double xPoint, double yPoint) { if (ModbusProtocol.GetDataCoils(2) == false && xPoint < 500 && xPoint != 0) { TrainViewModel.queueTrainTo404Track.Add(trainNumber); storyboard.Pause(); timer.Stop(); } TrackSensorsViewModel.Track408(xPoint, yPoint); TrackSensorsViewModel.Track411(xPoint, yPoint); TrackSensorsViewModel.Track412(xPoint, yPoint); TrackSensorsViewModel.Track404a(xPoint, yPoint); TrackSensorsViewModel.Track404b(xPoint, yPoint); TrackSensorsViewModel.Track404c(xPoint, yPoint); TrackSensorsViewModel.Track404d(xPoint, yPoint); TrackSensorsViewModel.Track404e(xPoint, yPoint); TrackSensorsViewModel.Track441(xPoint, yPoint); TrackSensorsViewModel.Track444(xPoint, yPoint); }