To create a common set of functions and reuse them across graphic forms in the SmartUI:
- From within Visual Studio, create a new project and choose class library
- Add the functions you require, if you need to access any of the namespaces that you normally have available in scripting remember to add the references to your class library as well.
- Add the compiled DLL as a reference in your script.
More detailed explanation from Visual Studio:
- Create a class library project (this could be C#, VB.Net or any other .NET language you choose for your class library, the example here is C#):
- If you would like to use existing SmartUI references, remember to add them:
Once you have created your DLL, just add it as a reference from within your script.