Scripts and .NET Framework > Configuring Classes
  
Configuring Classes
Classes let you create a repository of class libraries, methods, and functions that you can use across the application. You can call them from tasks, other classes, and displays (code behind).
FactoryStudio comes with the following built-in classes:
ServerMain—Methods library available for all server tasks.
ClientMain—Methods library available for all clients.
To configure classes:
1. Go to Edit > Scripts > Classes.
2. Enter or select information, as needed.
 
Column
Description
Name
Enter a name for the class. The system lets you know if the name is not valid.
Code
Read-only. This defaults to the language selected when you created the project. From the Code Editor tab, you can change the code language. To change the project default, go to Info > Settings.
Domain
Select where the class executes:
Client—Class executes on each client system. These are Classes that apply locally (on the user’s computer), for example, report generation.
Server—Class executes on the server system. These are classes that apply across the application, that is, globally.
BuildStatus
Read-only. Status of the class code from constant compiling process.
Green check mark—Class runs without errors.
Red X—Class has warnings or errors. Double-click to go to the warning or error. Warnings are information only. Errors will prevent the code from running, but only that specific class. The rest of the application will run.
BuildErrors
Read-only. Displays any errors encountered during the last build.
Description
Enter a description of this class.
3. Enter the code for the class.
Double-click the row to access the Code Editor tab. See Working with the Code Editor.
Apply all namespaces that will be used in your code, e.g.
“Using System”
“System.IO.StremReader”
4. Click Save.