The MessageDisplayByValue has a property named INIFileName that is used to set up alarms from a text file. This is an example of how the file is formatted:
0,CONTROL OFF
1,20F6/ 24VDC SUPPLY POWER OFF
2,20F8/ 24VDC SUPPLY POWER OFF
3,EMERGENCY STOP
4,46Q1/ CIRCUIT BREAKER FEEDER
This is how I typically use the file feature:
1) Add a text file to the project and name it Alarms.txt
2) Type in the alarms as shown above
3) Set the INIFilename to .\alarms.txt
4) Then set the property "Copy to output directory" of the text file to Copy if Newer