Creating the definitions class
You use the definitions class for building the UI for the backend view of the module. To create the definitions class, you must perform the following:
-
From the context menu of the folder Resources, click Add » Class...
-
Name the class file JobsDefinitions.cs and click Add.
-
Open the file JobsDefinitions.cs.
-
Define the following constants:
public const string ModuleName = "Jobs";
public const string BackendDefinitionName = "JobsBackend";
public const string BackendEditViewName = "JobsBackendEdit";
public const string BackendListViewName = "JobsBackendList";
public const string EditCommandName = "edit";
public const string DeleteCommandName = "delete";
-
Define DefineJobsBackendContentView method in the following way:
public static ContentViewControlElement DefineJobsBackendContentView(ConfigElement parent)
{
throw new NotImplementedException();
}
You will implement the method later in this tutorial. In it you must return a ContentViewControlElement object that contains the UI for the backend view. For more information, see Creating the backend view.
You must call the DefineJobsBackendContentView method from the configuration class. For more information, see Creating the configuration class.