Пример #1
0
 static public void ApplyTrainData()
 {
     TrainMethods.SetMasterKeyState((int)RAGLINKCommons.RPlatform.DataManager.processData.trainData[(int)RAGLINKCommons.RPlatform.DataManager.TrainDataMap.MASTER_KEY]);
     TrainMethods.SetTrainReverser((int)RAGLINKCommons.RPlatform.DataManager.processData.trainData[(int)RAGLINKCommons.RPlatform.DataManager.TrainDataMap.REVERSER]);
     TrainMethods.SetTrainPowerHandle((int)RAGLINKCommons.RPlatform.DataManager.processData.trainData[(int)RAGLINKCommons.RPlatform.DataManager.TrainDataMap.POWER]);
     TrainMethods.SetTrainBrakeHandle((int)RAGLINKCommons.RPlatform.DataManager.processData.trainData[(int)RAGLINKCommons.RPlatform.DataManager.TrainDataMap.BRAKE]);
     TrainMethods.SetHornState((int)RAGLINKCommons.RPlatform.DataManager.processData.trainData[(int)RAGLINKCommons.RPlatform.DataManager.TrainDataMap.HORN]);
     TrainMethods.SetEmergencyState((int)RAGLINKCommons.RPlatform.DataManager.processData.trainData[(int)RAGLINKCommons.RPlatform.DataManager.TrainDataMap.EMERGENCY]);
     TrainMethods.SetLeftDoorState((int)RAGLINKCommons.RPlatform.DataManager.processData.trainData[(int)RAGLINKCommons.RPlatform.DataManager.TrainDataMap.LDOOR_OPEN]);
     TrainMethods.SetRightDoorState((int)RAGLINKCommons.RPlatform.DataManager.processData.trainData[(int)RAGLINKCommons.RPlatform.DataManager.TrainDataMap.RDOOR_OPEN]);
     TrainMethods.SetATCSystemState(Convert.ToBoolean(RAGLINKCommons.RPlatform.DataManager.processData.trainData[(int)RAGLINKCommons.RPlatform.DataManager.TrainDataMap.SPEED_CONST]));
     TrainMethods.SetDeadmanSystemEnable(Convert.ToBoolean(RAGLINKCommons.RPlatform.DataManager.processData.trainData[(int)RAGLINKCommons.RPlatform.DataManager.TrainDataMap.DEADMAN_ENABLE]));
     TrainMethods.SetResetDeadmanSystem(Convert.ToBoolean(RAGLINKCommons.RPlatform.DataManager.processData.trainData[(int)RAGLINKCommons.RPlatform.DataManager.TrainDataMap.DEADMAN_PRESS]));
 }