File Handling

Windows Forms User's Guide > TX Text Control Words

In chapter Howto: Work With Files is explained how to open, save, export files. These functionalities are encapsulated in a File Handler for handling multiple files (contained in Projectfolder: FileHandling). This FileHander implements some more features like logging and handling recent opened documents, managing the export options and managing the saving state of the active document. The filehandler provides different properties and events which can be used for updating the user interface like in our case setting the window title by filename. The FileHandler's events are handled in FileHandlerEvents for updating the main window's title, showing a message box in any style.

The FileHandler is stored in the MainWindow class. The OptionsDialog provides an User Interface for handling SaveSettings. This dialog interacts with the FileHandler.

The DragDropHandler handles the drag and drop functionality of files and uses the FileHandler for loading them.

For additional information see :