Complete I/O Resource written in C# (.NET)

 

 

Stage 1

 

            The following solution provides a very basic and simple way to implement an I/O Resource that saves to a file whatever the RTS outputs through it.

 

Download: CSharpResourceSample_Stage1.zip

 

Stage 2

 

            The resource presented in “Stage 1” above is enhanced to implement a connection point (TYX.RtsIO._ITextResourceEvents). This makes the resource suitable for use as an “OUTPUT”, “DISPLAY”, “DATALOG”, “INFO”, “WARNING” and “ERROR” resource.

 

Download: CSharpResourceSample_Stage2.zip

 

Stage 3

 

            The resource present in “Stage 2” above is enhanced to present a property page, through which it’s possible to control various properties of the resource. In this case the filename where the output is saved can be configured.

 

Download: CSharpResourceSample_Stage3.zip

 

Stage 4

 

            The resource presented in “Stage 3” above is enhanced to provide persistence of configured properties by implementing the IPersistStream and IPersistStreamInit interfaces. Through these interfaces, the RTS will persist the properties of the resource in the “wrts.ini” file.

 

Download: CSharpResourceSample_Stage4.zip