Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.21 KB

File metadata and controls

28 lines (18 loc) · 1.21 KB

cdfutils

A library of miscellaneous utility functions and classes that I've created for my projects.

Config

  • ConfigStore: A generic configuration class that persists values in a text file.

DotNet

Some general helper classes for use with .NET Windows.Forms

  • CustomMainMenu[^1]: Builds a full MenuStrip from a supplied configuration.
  • CustomToolBar[^1]: Builds a ToolStrip from a supplied configuration.
  • SimpleContextMenu[^1]: Builds a ContextMenuStrip from a supplied configuration.

New in version 1.1.1

  • FTDialogChoose: Select an item from a dropdown menu.
  • FTDialogRadio: Select an option via radio buttons.
  • FTDialogText: Enter free-form text.

[^1] Note: these are all breaking changes from 1.0.8; These now use the newer .NET classes instead of MainMenu, ToolBar and ContextMenu, and they need different handling in the calling application. This article gives some (although not all) of the details.

Textfile

Utility functions for reading from text files

  • randomLine(): Returns a random line from a file.
  • randomSection(): Returns a random section (delimited by lines starting with #) from a file.